36 #define COB_LIB_EXPIMP
47 { 1, 3, 5, 8, 10, 13, 15, 17, 20 };
58 unsigned short digits;
68 fputs (
_(
"(Not representable)"), fp);
84 for (i = 0; i < size; ++i) {
85 putc (temp.
data[i], fp);
95 unsigned short digits;
100 unsigned char pic[32];
105 + (scale > 0 ? 1 : 0));
107 fputs (
_(
"(Not representable)"), fp);
118 memset (pic, 0,
sizeof (pic));
124 memcpy (p, (
unsigned char *)&i,
sizeof(
int));
131 memcpy (p, (
unsigned char *)&i,
sizeof(
int));
136 memcpy (p, (
unsigned char *)&i,
sizeof(
int));
140 memcpy (p, (
unsigned char *)&i,
sizeof(
int));
145 memcpy (p, (
unsigned char *)&i,
sizeof(
int));
151 for (i = 0; i < size; ++i) {
161 for (i = 0; i < f->
size; ++i) {
162 putc (f->
data[i], fp);
185 memcpy (&un.f1doub, f->
data, sizeof (
double));
186 fprintf (fp,
"%-.16G", un.f1doub);
189 memcpy (&un.f1float, f->
data, sizeof (
float));
190 fprintf (fp,
"%-.8G", (
double)un.f1float);
201 #ifdef WORDS_BIGENDIAN
203 for (n = 0; n <
sizeof(
void *); ++n, ++p) {
205 p = f->
data +
sizeof(
void *) - 1;
206 for (n =
sizeof(
void *) - 1; n >= 0; --n, --p) {
208 fprintf (fp,
"%x%x", *p >> 4, *p & 0xF);
238 cob_display (
const int to_stderr,
const int newline,
const int varcnt, ...)
262 va_start (args, varcnt);
263 for (i = 0; i < varcnt; ++i) {
274 if (newline && !disp_redirect) {
307 if (ipchr ==
'\n' || ipchr == EOF) {
328 }
else if (ipchr ==
'\n') {
331 p[size++] = (char) ipchr;
#define COB_FIELD_SCALE(f)
static const unsigned short bin_digits[]
static const cob_field_attr const_alpha_attr
#define COB_FIELD_IS_NUMERIC(f)
void cob_move(cob_field *, cob_field *)
#define COB_TYPE_ALPHANUMERIC
#define COB_FIELD_TYPE(f)
void cob_print_realbin(const cob_field *, FILE *, const int)
void cob_display(const int to_stderr, const int newline, const int varcnt,...)
#define COB_ATTR_INIT(u, v, x, y, z)
#define COB_FLAG_HAVE_SIGN
static void pretty_display_numeric(cob_field *f, FILE *fp)
void cob_field_accept(cob_field *, cob_field *, cob_field *, cob_field *, cob_field *, cob_field *, cob_field *, cob_field *, cob_field *, const int)
#define COB_TYPE_NUMERIC_FP_DEC64
#define COB_SCREEN_EMULATE_NL
static cob_settings * cobsetptr
#define COB_TYPE_NUMERIC_FLOAT
#define COB_FIELD_REAL_BINARY(f)
void cob_field_display(cob_field *, cob_field *, cob_field *, cob_field *, cob_field *, cob_field *, cob_field *, const int)
EC ARGUMENT EC EC BOUND EC BOUND EC BOUND EC BOUND TABLE EC DATA EC DATA EC DATA PTR NULL
static void display_common(cob_field *f, FILE *fp)
#define COB_FLAG_SIGN_LEADING
#define COB_TYPE_NUMERIC_BINARY
void cob_set_exception(const int id)
#define COB_FLAG_SIGN_SEPARATE
#define COB_TYPE_NUMERIC_DISPLAY
void cob_set_int(cob_field *, const int)
static cob_global * cobglobptr
void cob_print_ieeedec(const cob_field *, FILE *)
#define COB_SCREEN_PROMPT
unsigned int cob_screen_initialized
static void display_numeric(cob_field *f, FILE *fp)
#define COB_TYPE_NUMERIC_DOUBLE
void cob_init_termio(cob_global *lptr, cob_settings *sptr)
const cob_field_attr * attr
void cob_accept(cob_field *f)
#define COB_FIELD_HAVE_SIGN(f)
#define COB_TYPE_NUMERIC_FP_DEC128
static void display_alnum(cob_field *f, FILE *fp)
#define COB_FIELD_DIGITS(f)
#define COB_TYPE_NUMERIC_EDITED
#define COB_FIELD_IS_POINTER(f)
#define COB_FIELD_SIGN_LEADING(f)
#define COB_DISP_TO_STDERR