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

Function CobolToShort

src/gpre/languages/fbrmclib.cpp:403–414  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

401
402// Return a Cobol BINARY(n) (big-endian) argument as a C short integer
403static ISC_USHORT* CobolToShort(const argument_entry *arg)
404{
405 ISC_USHORT *i = NULL;
406 if (arg->a_address)
407 {
408 ISC_USHORT temp = (ISC_USHORT)CvtArgToInt(arg);
409 i = AllocShortPool();
410 if (i)
411 *i = temp;
412 }
413 return (i);
414}
415
416// Store a Cobol array of BINARY(4) fields into a status vector
417static void CobolToStatus(ISC_STATUS *stat, const argument_entry *arg)

Callers 1

RM_ENTRYFunction · 0.85

Calls 2

CvtArgToIntFunction · 0.85
AllocShortPoolFunction · 0.85

Tested by

no test coverage detected