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

Function CobolToInt

src/gpre/languages/fbrmclib.cpp:389–400  ·  view source on GitHub ↗

Return a Cobol BINARY(n) (big-endian) argument as a C integer

Source from the content-addressed store, hash-verified

387
388// Return a Cobol BINARY(n) (big-endian) argument as a C integer
389static ISC_ULONG* CobolToInt(const argument_entry *arg)
390{
391 ISC_ULONG *i = NULL;
392 if (arg->a_address)
393 {
394 ISC_ULONG temp = CvtArgToInt(arg);
395 i = AllocIntPool();
396 if (i)
397 *i = temp;
398 }
399 return (i);
400}
401
402// Return a Cobol BINARY(n) (big-endian) argument as a C short integer
403static ISC_USHORT* CobolToShort(const argument_entry *arg)

Callers 1

RM_ENTRYFunction · 0.85

Calls 2

CvtArgToIntFunction · 0.85
AllocIntPoolFunction · 0.85

Tested by

no test coverage detected