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

Function stuff_literal

src/yvalve/array.cpp:622–648  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

620
621
622static ISC_STATUS stuff_literal(gen_t* gen, SLONG literal)
623{
624/**************************************
625 *
626 * s t u f f _ l i t e r a l
627 *
628 **************************************
629 *
630 * Functional description
631 * Stuff an SDL literal.
632 *
633 **************************************/
634 ISC_STATUS* status = gen->gen_status;
635
636 if (literal >= -128 && literal <= 127)
637 return stuff_args(gen, 2, isc_sdl_tiny_integer, literal);
638
639 if (literal >= -32768 && literal <= 32767)
640 return stuff_args(gen, 3, isc_sdl_short_integer, literal, literal >> 8);
641
642 if (stuff_sdl(gen, isc_sdl_long_integer))
643 return status[1];
644 if (stuff_sdl_long(gen, literal))
645 return status[1];
646
647 return FB_SUCCESS;
648}
649
650
651static ISC_STATUS stuff_string(gen_t* gen, UCHAR sdl, const SCHAR* string)

Callers 1

gen_sdlFunction · 0.85

Calls 3

stuff_argsFunction · 0.85
stuff_sdlFunction · 0.85
stuff_sdl_longFunction · 0.85

Tested by

no test coverage detected