ReactOS 0.4.16-dev-2332-g4cba65d
infblock.c File Reference
#include "zutil.h"
#include "infblock.h"
#include "inftrees.h"
#include "infcodes.h"
#include "infutil.h"
Include dependency graph for infblock.c:

Go to the source code of this file.

Macros

#define exop   word.what.Exop
 
#define bits   word.what.Bits
 

Functions

void inflate_blocks_reset (inflate_blocks_statef *s, z_streamp z, uLongf *c)
 
inflate_blocks_statefinflate_blocks_new (z_streamp z, check_func c, uInt w)
 
int inflate_blocks (inflate_blocks_statef *s, z_streamp z, int r)
 
int inflate_blocks_free (inflate_blocks_statef *s, z_streamp z)
 

Variables

const uInt border []
 

Macro Definition Documentation

◆ bits

typedef GLenum GLint GLint GLsizei GLenum GLsizei const GLvoid * bits   word.what.Bits

Definition at line 15 of file infblock.c.

Referenced by add_mf_comment(), alpha_blend_image(), ARGB2BMP(), BITMAP_CopyImage(), bmi_has_alpha(), Mapdesc::clipbits(), create_dib(), create_hatch_bitmap(), create_render_dc(), CRYPT_FormatKeyUsage(), CRYPT_FormatNetscapeCertType(), Mapdesc::cullCheck(), CURSORICON_LoadFromFileW(), CURSORICON_LoadImageW(), DataCache_Draw(), deflatePrime(), EMFDRV_CreateBrushIndirect(), ext3_max_bitmap_size(), fixedtables(), FxSetPnpDeviceStateBit(), GdipCreateBitmapFromScan0(), GdipCreateHBITMAPFromBitmap(), gen_bitlen(), gen_codes(), get_bitmap_info(), HBITMAP_UserUnmarshal(), HLPFILE_BrowseParagraph(), HLPFILE_RtfAddMetaFile(), Horizontal_Sweep_Drop(), Horizontal_Sweep_Span(), ImagingFactory_CreateBitmapFromHICON(), inflate(), inflate_fast(), inflate_table(), inflateBack(), inflatePrime(), jpeg_std_huff_table(), load_mf_pict(), MFDRV_CreateBrushIndirect(), mi_paint_rect(), mp_montgomery_calc_normalization(), netcon_secure_connect_setup(), OLEPictureImpl_LoadWICSource(), msl::utilities::SafeInt< T, E >::operator>>=(), PlayEnhMetaFileRecord(), PropStgNameToFmtId(), rdp_in_present(), read_bitmap(), request_query_option(), SIC_OverlayShortcutImage(), sinc_set_converter(), sqrt(), stretch_blt_icon(), synthesize_emf(), test_alpha_hdc(), test_ARGB_conversion(), test_buffered_paint(), test_clipping(), test_CopyImage_Bitmap(), test_CreateIcon(), test_data_handles(), test_dib_formats(), test_dibsections(), test_emf_BitBlt(), test_GdiAlphaBlend(), test_GdiGradientFill(), test_GdipCreateBitmapFromHBITMAP(), test_GetDIBits_selected_DDB(), test_GetDIBits_selected_DIB(), test_hdc_caching(), test_Image_StretchMode(), test_path_state(), test_pattern_brush(), test_raw_decompress(), test_simple_graphics(), test_WICCreateBitmapFromSectionEx(), tr_static_init(), translate_record(), type_new_bitfield(), UTF16BEToUTF8(), UTF16LEToUTF8(), Mapdesc::xformAndCullCheck(), and xmlCopyCharMultiByte().

◆ exop

#define exop   word.what.Exop

Definition at line 14 of file infblock.c.

Function Documentation

◆ inflate_blocks()

int inflate_blocks ( inflate_blocks_statef s,
z_streamp  z,
int  r 
)

Definition at line 119 of file infblock.c.

123{
124 uInt t; /* temporary storage */
125 uLong b; /* bit buffer */
126 uInt k; /* bits in bit buffer */
127 Bytef *p; /* input data pointer */
128 uInt n; /* bytes available there */
129 Bytef *q; /* output window write pointer */
130 uInt m; /* bytes to end of window or read pointer */
131
132 /* copy input/output information to locals (UPDATE macro restores) */
133 LOAD
134
135 /* process input based on current state */
136 while (1) switch (s->mode)
137 {
138 case TYPE:
139 NEEDBITS(3)
140 t = (uInt)b & 7;
141 s->last = t & 1;
142 switch (t >> 1)
143 {
144 case 0: /* stored */
145 Tracev((stderr, "inflate: stored block%s\n",
146 s->last ? " (last)" : ""));
147 DUMPBITS(3)
148 t = k & 7; /* go to byte boundary */
149 DUMPBITS(t)
150 s->mode = LENS; /* get length of stored block */
151 break;
152 case 1: /* fixed */
153 Tracev((stderr, "inflate: fixed codes block%s\n",
154 s->last ? " (last)" : ""));
155 {
156 uInt bl, bd;
157 inflate_huft *tl, *td;
158
159 inflate_trees_fixed(&bl, &bd, (const inflate_huft**)&tl,
160 (const inflate_huft**)&td, z);
161 s->sub.decode.codes = inflate_codes_new(bl, bd, tl, td, z);
162 if (s->sub.decode.codes == Z_NULL)
163 {
164 r = Z_MEM_ERROR;
165 LEAVE
166 }
167 }
168 DUMPBITS(3)
169 s->mode = CODES;
170 break;
171 case 2: /* dynamic */
172 Tracev((stderr, "inflate: dynamic codes block%s\n",
173 s->last ? " (last)" : ""));
174 DUMPBITS(3)
175 s->mode = TABLE;
176 break;
177 case 3: /* illegal */
178 DUMPBITS(3)
179 s->mode = BAD;
180 z->msg = (char*)"invalid block type";
181 r = Z_DATA_ERROR;
182 LEAVE
183 }
184 break;
185 case LENS:
186 NEEDBITS(32)
187 if ((((~b) >> 16) & 0xffff) != (b & 0xffff))
188 {
189 s->mode = BAD;
190 z->msg = (char*)"invalid stored block lengths";
191 r = Z_DATA_ERROR;
192 LEAVE
193 }
194 s->sub.left = (uInt)b & 0xffff;
195 b = k = 0; /* dump bits */
196 Tracev((stderr, "inflate: stored length %u\n", s->sub.left));
197 s->mode = s->sub.left ? STORED : (s->last ? DRY : TYPE);
198 break;
199 case STORED:
200 if (n == 0)
201 LEAVE
202 NEEDOUT
203 t = s->sub.left;
204 if (t > n) t = n;
205 if (t > m) t = m;
206 zmemcpy(q, p, t);
207 p += t; n -= t;
208 q += t; m -= t;
209 if ((s->sub.left -= t) != 0)
210 break;
211 Tracev((stderr, "inflate: stored end, %lu total out\n",
212 z->total_out + (q >= s->read ? q - s->read :
213 (s->end - s->read) + (q - s->window))));
214 s->mode = s->last ? DRY : TYPE;
215 break;
216 case TABLE:
217 NEEDBITS(14)
218 s->sub.trees.table = t = (uInt)b & 0x3fff;
219#ifndef PKZIP_BUG_WORKAROUND
220 if ((t & 0x1f) > 29 || ((t >> 5) & 0x1f) > 29)
221 {
222 s->mode = BAD;
223 z->msg = (char*)"too many length or distance symbols";
224 r = Z_DATA_ERROR;
225 LEAVE
226 }
227#endif
228 t = 258 + (t & 0x1f) + ((t >> 5) & 0x1f);
229 if ((s->sub.trees.blens = (uIntf*)ZALLOC(z, t, sizeof(uInt))) == Z_NULL)
230 {
231 r = Z_MEM_ERROR;
232 LEAVE
233 }
234 DUMPBITS(14)
235 s->sub.trees.index = 0;
237 s->mode = BTREE;
238 /* fall through */
239 case BTREE:
240 while (s->sub.trees.index < 4 + (s->sub.trees.table >> 10))
241 {
242 NEEDBITS(3)
243 s->sub.trees.blens[border[s->sub.trees.index++]] = (uInt)b & 7;
244 DUMPBITS(3)
245 }
246 while (s->sub.trees.index < 19)
247 s->sub.trees.blens[border[s->sub.trees.index++]] = 0;
248 s->sub.trees.bb = 7;
249 t = inflate_trees_bits(s->sub.trees.blens, &s->sub.trees.bb,
250 &s->sub.trees.tb, s->hufts, z);
251 if (t != Z_OK)
252 {
253 r = t;
254 if (r == Z_DATA_ERROR)
255 {
256 ZFREE(z, s->sub.trees.blens);
257 s->mode = BAD;
258 }
259 LEAVE
260 }
261 s->sub.trees.index = 0;
262 Tracev((stderr, "inflate: bits tree ok\n"));
263 s->mode = DTREE;
264 /* fall through */
265 case DTREE:
266 while (t = s->sub.trees.table,
267 s->sub.trees.index < 258 + (t & 0x1f) + ((t >> 5) & 0x1f))
268 {
270 uInt i, j, c;
271
272 t = s->sub.trees.bb;
273 NEEDBITS(t)
274 h = s->sub.trees.tb + ((uInt)b & inflate_mask[t]);
275 t = h->bits;
276 c = h->base;
277 if (c < 16)
278 {
279 DUMPBITS(t)
280 s->sub.trees.blens[s->sub.trees.index++] = c;
281 }
282 else /* c == 16..18 */
283 {
284 i = c == 18 ? 7 : c - 14;
285 j = c == 18 ? 11 : 3;
286 NEEDBITS(t + i)
287 DUMPBITS(t)
288 j += (uInt)b & inflate_mask[i];
289 DUMPBITS(i)
290 i = s->sub.trees.index;
291 t = s->sub.trees.table;
292 if (i + j > 258 + (t & 0x1f) + ((t >> 5) & 0x1f) ||
293 (c == 16 && i < 1))
294 {
295 ZFREE(z, s->sub.trees.blens);
296 s->mode = BAD;
297 z->msg = (char*)"invalid bit length repeat";
298 r = Z_DATA_ERROR;
299 LEAVE
300 }
301 c = c == 16 ? s->sub.trees.blens[i - 1] : 0;
302 do {
303 s->sub.trees.blens[i++] = c;
304 } while (--j);
305 s->sub.trees.index = i;
306 }
307 }
308 s->sub.trees.tb = Z_NULL;
309 {
310 uInt bl, bd;
311 inflate_huft *tl, *td;
313
314 bl = 9; /* must be <= 9 for lookahead assumptions */
315 bd = 6; /* must be <= 9 for lookahead assumptions */
316 t = s->sub.trees.table;
317 t = inflate_trees_dynamic(257 + (t & 0x1f), 1 + ((t >> 5) & 0x1f),
318 s->sub.trees.blens, &bl, &bd, &tl, &td,
319 s->hufts, z);
320 if (t != Z_OK)
321 {
322 if (t == (uInt)Z_DATA_ERROR)
323 {
324 ZFREE(z, s->sub.trees.blens);
325 s->mode = BAD;
326 }
327 r = t;
328 LEAVE
329 }
330 Tracev((stderr, "inflate: trees ok\n"));
331 if ((c = inflate_codes_new(bl, bd, tl, td, z)) == Z_NULL)
332 {
333 r = Z_MEM_ERROR;
334 LEAVE
335 }
336 s->sub.decode.codes = c;
337 }
338 ZFREE(z, s->sub.trees.blens);
339 s->mode = CODES;
340 /* fall through */
341 case CODES:
342 UPDATE
343 if ((r = inflate_codes(s, z, r)) != Z_STREAM_END)
344 return inflate_flush(s, z, r);
345 r = Z_OK;
346 inflate_codes_free(s->sub.decode.codes, z);
347 LOAD
348 Tracev((stderr, "inflate: codes end, %lu total out\n",
349 z->total_out + (q >= s->read ? q - s->read :
350 (s->end - s->read) + (q - s->window))));
351 if (!s->last)
352 {
353 s->mode = TYPE;
354 break;
355 }
356 s->mode = DRY;
357 /* fall through */
358 case DRY:
359 FLUSH
360 if (s->read != s->write)
361 LEAVE
362 s->mode = DONE;
363 /* fall through */
364 case DONE:
365 r = Z_STREAM_END;
366 LEAVE
367 case BAD:
368 r = Z_DATA_ERROR;
369 LEAVE
370 default:
372 LEAVE
373 }
374#ifdef NEED_DUMMY_RETURN
375 return 0;
376#endif
377}
#define ok(value,...)
Definition: atltest.h:57
#define msg(x)
Definition: auth_time.c:54
while(CdLookupNextInitialFileDirent(IrpContext, Fcb, FileContext))
#define LEAVE
Definition: classpnp.h:115
#define LOAD()
Definition: inflate.c:1111
@ CODES
Definition: inflate.c:151
@ LENS
Definition: inflate.c:152
@ TABLE
Definition: inflate.c:174
@ STORED
Definition: inflate.c:171
#define zmemcpy
Definition: inflate.c:38
#define ZALLOC(strm, items, size)
Definition: inflate.c:49
#define UPDATE(check, buf, len)
Definition: inflate.c:1085
#define Tracev(x)
Definition: inflate.c:43
#define ZFREE(strm, addr)
Definition: inflate.c:51
int inflate(z_streamp strm, int flush)
Definition: inflate.c:1257
#define NEEDBITS(n)
Definition: inflate.c:1151
unsigned long uLong
Definition: zlib.h:39
#define Z_STREAM_END
Definition: zlib.h:115
unsigned int uInt
Definition: zlib.h:38
#define Z_OK
Definition: zlib.h:114
#define Z_DATA_ERROR
Definition: zlib.h:119
#define Z_STREAM_ERROR
Definition: zlib.h:118
#define Z_NULL
Definition: zlib.h:149
#define Z_MEM_ERROR
Definition: zlib.h:120
Byte FAR Bytef
Definition: zlib.h:41
#define stderr
switch(r->id)
Definition: btrfs.c:3046
TYPE
Definition: eventcreate.c:652
int inflate_trees_bits(uIntf *c, uIntf *bb, inflate_huft *FAR *tb, inflate_huft *hp, z_streamp z)
Definition: inftrees.c:299
int inflate_trees_fixed(uIntf *bl, uIntf *bd, const inflate_huft *FAR *tl, const inflate_huft *FAR *td, z_streamp z)
Definition: inftrees.c:409
int inflate_trees_dynamic(uInt nl, uInt nd, uIntf *c, uIntf *bl, uIntf *bd, inflate_huft *FAR *tl, inflate_huft *FAR *td, inflate_huft *hp, z_streamp z)
Definition: inftrees.c:327
struct inflate_huft_s FAR inflate_huft
Definition: inftrees.h:17
GLint GLint GLsizei GLsizei GLsizei GLint border
Definition: gl.h:1546
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
GLdouble s
Definition: gl.h:2039
GLdouble GLdouble GLdouble r
Definition: gl.h:2055
GLdouble GLdouble t
Definition: gl.h:2047
GLdouble GLdouble GLdouble GLdouble q
Definition: gl.h:2063
GLdouble n
Definition: glext.h:7729
const GLubyte * c
Definition: glext.h:8905
GLuint index
Definition: glext.h:6031
GLboolean GLboolean GLboolean b
Definition: glext.h:6204
GLenum mode
Definition: glext.h:6217
GLfloat GLfloat p
Definition: glext.h:8902
GLdouble GLdouble z
Definition: glext.h:5874
const GLfloat * m
Definition: glext.h:10848
GLfloat GLfloat GLfloat GLfloat h
Definition: glext.h:7723
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint GLint GLint j
Definition: glfuncs.h:250
void inflate_codes_free(inflate_codes_statef *c, z_streamp z)
Definition: infcodes.c:248
inflate_codes_statef * inflate_codes_new(uInt bl, uInt bd, inflate_huft *tl, inflate_huft *td, z_streamp z)
Definition: infcodes.c:58
int inflate_codes(inflate_blocks_statef *s, z_streamp z, int r)
Definition: infcodes.c:80
struct inflate_codes_state FAR inflate_codes_statef
Definition: infcodes.h:15
int inflate_flush(inflate_blocks_statef *s, z_streamp z, int r)
Definition: infutil.c:22
const uInt inflate_mask[17]
Definition: infutil.c:14
#define FLUSH
Definition: infutil.h:81
@ BTREE
Definition: infutil.h:19
@ DTREE
Definition: infutil.h:20
@ DRY
Definition: infutil.h:22
#define NEEDOUT
Definition: infutil.h:82
#define DUMPBITS(j)
Definition: infutil.h:76
#define c
Definition: ke_i.h:80
#define b
Definition: ke_i.h:79
if(dx< 0)
Definition: linetemp.h:194
static UINT UINT last
Definition: font.c:45
static const WCHAR tb[]
Definition: suminfo.c:285
static const struct @561 sizes[]
int k
Definition: mpi.c:3369
#define DONE
Definition: rnr20lib.h:14
#define BAD
Definition: inflate.c:10
static unsigned int block
Definition: xmlmemory.c:101
uInt FAR uIntf
Definition: zconf.h:410

◆ inflate_blocks_free()

int inflate_blocks_free ( inflate_blocks_statef s,
z_streamp  z 
)

Definition at line 380 of file infblock.c.

383{
385 ZFREE(z, s->window);
386 ZFREE(z, s->hufts);
387 ZFREE(z, s);
388 Tracev((stderr, "inflate: blocks freed\n"));
389 return Z_OK;
390}
void inflate_blocks_reset(inflate_blocks_statef *s, z_streamp z, uLongf *c)
Definition: infblock.c:67

◆ inflate_blocks_new()

inflate_blocks_statef * inflate_blocks_new ( z_streamp  z,
check_func  c,
uInt  w 
)

Definition at line 88 of file infblock.c.

92{
94
96 (z,1,sizeof(struct inflate_blocks_state))) == Z_NULL)
97 return s;
98 if ((s->hufts =
99 (inflate_huft *)ZALLOC(z, sizeof(inflate_huft), MANY)) == Z_NULL)
100 {
101 ZFREE(z, s);
102 return Z_NULL;
103 }
104 if ((s->window = (Bytef *)ZALLOC(z, 1, w)) == Z_NULL)
105 {
106 ZFREE(z, s->hufts);
107 ZFREE(z, s);
108 return Z_NULL;
109 }
110 s->end = s->window + w;
111 s->checkfn = c;
112 s->mode = TYPE;
113 Tracev((stderr, "inflate: blocks allocated\n"));
115 return s;
116}
#define MANY
Definition: inftrees.h:36
GLubyte GLubyte GLubyte GLubyte w
Definition: glext.h:6102
struct inflate_blocks_state FAR inflate_blocks_statef
Definition: infblock.h:15

◆ inflate_blocks_reset()

void inflate_blocks_reset ( inflate_blocks_statef s,
z_streamp  z,
uLongf c 
)

Definition at line 67 of file infblock.c.

71{
72 if (c != Z_NULL)
73 *c = s->check;
74 if (s->mode == BTREE || s->mode == DTREE)
75 ZFREE(z, s->sub.trees.blens);
76 if (s->mode == CODES)
77 inflate_codes_free(s->sub.decode.codes, z);
78 s->mode = TYPE;
79 s->bitk = 0;
80 s->bitb = 0;
81 s->read = s->write = s->window;
82 if (s->checkfn != Z_NULL)
83 z->adler = s->check = (*s->checkfn)(0L, (const Bytef *)Z_NULL, 0);
84 Tracev((stderr, "inflate: blocks reset\n"));
85}
#define L(x)
Definition: resources.c:13

Referenced by inflate_blocks_free(), inflate_blocks_new(), and ZEXPORT().

Variable Documentation

◆ border

Initial value:
= {
16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15}

Definition at line 18 of file infblock.c.