| 620 | |
| 621 | |
| 622 | static 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 | |
| 651 | static ISC_STATUS stuff_string(gen_t* gen, UCHAR sdl, const SCHAR* string) |
no test coverage detected