GnuCOBOL
2.0
A free COBOL compiler
|
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include <stdarg.h>
#include <errno.h>
#include <time.h>
#include "libcob.h"
#include "coblocal.h"
Go to the source code of this file.
Macros | |
#define | COB_LIB_EXPIMP |
Functions | |
static void | display_numeric (cob_field *f, FILE *fp) |
static void | pretty_display_numeric (cob_field *f, FILE *fp) |
static void | display_alnum (cob_field *f, FILE *fp) |
static void | display_common (cob_field *f, FILE *fp) |
void | cob_display (const int to_stderr, const int newline, const int varcnt,...) |
void | cob_accept (cob_field *f) |
void | cob_init_termio (cob_global *lptr, cob_settings *sptr) |
Variables | |
static cob_global * | cobglobptr |
static cob_settings * | cobsetptr |
static const unsigned short | bin_digits [] |
static const cob_field_attr | const_alpha_attr |
void cob_accept | ( | cob_field * | f | ) |
Definition at line 283 of file termio.c.
References cob_field::attr, COB_EC_IMP_ACCEPT, cob_field_accept(), COB_FIELD_IS_NUMERIC, COB_FIELD_TYPE, COB_MEDIUM_MAX, COB_MODULE_PTR, cob_move(), __cob_global::cob_screen_initialized, COB_SCREEN_PROMPT, cob_set_exception(), cob_set_int(), COB_TERM_BUFF, COB_TYPE_NUMERIC_DISPLAY, const_alpha_attr, cob_field::data, NULL, cob_field::size, and unlikely.
void cob_display | ( | const int | to_stderr, |
const int | newline, | ||
const int | varcnt, | ||
... | |||
) |
Definition at line 238 of file termio.c.
References COB_DISP_TO_STDERR, cob_field_display(), COB_SCREEN_EMULATE_NL, __cob_global::cob_screen_initialized, cob_u32_t, display_common(), NULL, and unlikely.
Referenced by cobxref_(), GCic_(), and get__reserved__lists_().
void cob_init_termio | ( | cob_global * | lptr, |
cob_settings * | sptr | ||
) |
Definition at line 343 of file termio.c.
Referenced by cob_init().
|
static |
Definition at line 157 of file termio.c.
References cob_field::data, and cob_field::size.
Referenced by display_common().
|
static |
Definition at line 167 of file termio.c.
References cob_field::attr, bin_digits, COB_FIELD_IS_NUMERIC, COB_FIELD_IS_POINTER, COB_FIELD_REAL_BINARY, COB_FIELD_TYPE, COB_MODULE_PTR, cob_print_ieeedec(), cob_print_realbin(), COB_TYPE_NUMERIC_BINARY, COB_TYPE_NUMERIC_DOUBLE, COB_TYPE_NUMERIC_FLOAT, COB_TYPE_NUMERIC_FP_DEC128, COB_TYPE_NUMERIC_FP_DEC64, cob_field::data, cob_field_attr::digits, display_alnum(), display_numeric(), pretty_display_numeric(), and cob_field::size.
Referenced by cob_display().
|
static |
Definition at line 55 of file termio.c.
References _, cob_field::attr, COB_ATTR_INIT, COB_FIELD_DIGITS, COB_FIELD_HAVE_SIGN, COB_FIELD_SCALE, COB_FIELD_SIGN_LEADING, COB_FIELD_TYPE, COB_FLAG_HAVE_SIGN, COB_FLAG_SIGN_LEADING, COB_FLAG_SIGN_SEPARATE, COB_MEDIUM_MAX, cob_move(), COB_TERM_BUFF, COB_TYPE_NUMERIC_DISPLAY, cob_field::data, cob_field_attr::flags, NULL, and cob_field::size.
Referenced by display_common().
|
static |
Definition at line 90 of file termio.c.
References _, cob_field::attr, COB_ATTR_INIT, COB_FIELD_DIGITS, COB_FIELD_HAVE_SIGN, COB_FIELD_SCALE, COB_MEDIUM_MAX, COB_MODULE_PTR, cob_move(), COB_TERM_BUFF, COB_TYPE_NUMERIC_EDITED, cob_field::data, and cob_field::size.
Referenced by display_common().
|
static |
Definition at line 46 of file termio.c.
Referenced by display_common().
|
static |
|
static |
|
static |
Definition at line 49 of file termio.c.
Referenced by cob_accept().