MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / get_long

Function get_long

src/utilities/analyse.cpp:270–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268
269
270static SLONG get_long()
271{
272/**************************************
273 *
274 * g e t _ l o n g
275 *
276 **************************************
277 *
278 * Functional description
279 *
280 **************************************/
281 union {
282 SLONG l;
283 SSHORT i;
284 SCHAR c;
285 } value;
286
287 SCHAR* p = (SCHAR *) & value.l;
288 SLONG i = getc(trace);
289 const SLONG x = i;
290
291 while (--i >= 0)
292 *p++ = getc(trace);
293
294 if (x == 1)
295 return value.c;
296
297 if (x == 2)
298 return value.i;
299
300 return value.l;
301}
302
303
304static void db_error( int status)

Callers 3

mainFunction · 0.70
getUnpackedLengthMethod · 0.50
unpackMethod · 0.50

Calls 1

getcFunction · 0.85

Tested by

no test coverage detected