PostgreSQL Source Code
git master
|
#include <ecpglib.h>
#include <ecpgerrno.h>
#include <sqlca.h>
#include <stdio.h>
#include <stdlib.h>
#include <pgtypes_numeric.h>
#include <pgtypes_error.h>
#include <decimal.h>
Go to the source code of this file.
Macros | |
#define | ECPGdebug(X, Y) ECPGdebug((X)+100,(Y)) |
Functions | |
static void | print_double (double x) |
static void | check_errno (void) |
int | main (void) |
Variables | |
char * | nums [] |
#define ECPGdebug | ( | X, | |
Y | |||
) | ECPGdebug((X)+100,(Y)) |
Definition at line 7 of file pgtypeslib-num_test2.c.
|
static |
Definition at line 265 of file pgtypeslib-num_test2.c.
References PGTYPES_NUM_BAD_NUMERIC, PGTYPES_NUM_DIVIDE_ZERO, PGTYPES_NUM_OVERFLOW, PGTYPES_NUM_UNDERFLOW, printf, and strerror.
Referenced by main().
int main | ( | void | ) |
Definition at line 78 of file pgtypeslib-num_test2.c.
References a, calloc, check_errno(), ECPGdebug, free, i, j, nums, PGTYPESchar_free(), PGTYPESdecimal_free(), PGTYPESdecimal_new(), PGTYPESnumeric_add(), PGTYPESnumeric_cmp(), PGTYPESnumeric_div(), PGTYPESnumeric_free(), PGTYPESnumeric_from_asc(), PGTYPESnumeric_from_decimal(), PGTYPESnumeric_from_int(), PGTYPESnumeric_from_long(), PGTYPESnumeric_mul(), PGTYPESnumeric_new(), PGTYPESnumeric_sub(), PGTYPESnumeric_to_asc(), PGTYPESnumeric_to_decimal(), PGTYPESnumeric_to_double(), PGTYPESnumeric_to_int(), PGTYPESnumeric_to_long(), print_double(), printf, and realloc.
|
static |
char* nums[] |
Definition at line 63 of file pgtypeslib-num_test2.c.
Referenced by main().