GnuCOBOL
2.0
A free COBOL compiler
|
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include <ctype.h>
#include <errno.h>
#include <math.h>
#include "libcob.h"
#include "coblocal.h"
Go to the source code of this file.
Macros | |
#define | COB_LIB_EXPIMP |
Variables | |
static cob_global * | cobglobptr |
static cob_settings * | cobsetptr |
static const cob_field_attr | const_alpha_attr |
static const cob_field_attr | const_binll_attr |
static const int | cob_exp10 [10] |
static const cob_s64_t | cob_exp10_ll [19] |
|
static |
Definition at line 163 of file move.c.
References COB_BSWAP_64, COB_FIELD_BINARY_SWAP, COB_FIELD_HAVE_SIGN, cob_s64_t, cob_field::data, own_byte_memcpy(), and cob_field::size.
Referenced by cob_get_int(), cob_get_llint(), cob_move_binary_to_binary(), and cob_move_binary_to_display().
|
static |
Definition at line 201 of file move.c.
References COB_BSWAP_64, COB_FIELD_BINARY_SWAP, cob_u64_t, cob_field::data, own_byte_memcpy(), and cob_field::size.
Referenced by cob_move_binary_to_binary(), and cob_move_binary_to_display().
|
static |
Definition at line 221 of file move.c.
References COB_BSWAP_64, COB_FIELD_BINARY_SWAP, cob_field::data, own_byte_memcpy(), and cob_field::size.
Referenced by cob_move_binary_to_binary(), and cob_move_display_to_binary().
|
static |
Definition at line 239 of file move.c.
References COB_BSWAP_64, COB_FIELD_BINARY_SWAP, cob_field::data, own_byte_memcpy(), and cob_field::size.
Referenced by cob_move_binary_to_binary(), and cob_move_display_to_binary().
|
static |
Definition at line 1534 of file move.c.
References COB_D2I, cob_exp10, COB_FIELD_DATA, COB_FIELD_SCALE, COB_FIELD_SIZE, COB_GET_SIGN, COB_PUT_SIGN, and sign.
Referenced by cob_get_int().
Definition at line 1573 of file move.c.
References COB_D2I, cob_exp10_ll, COB_FIELD_DATA, COB_FIELD_SCALE, COB_FIELD_SIZE, COB_GET_SIGN, COB_PUT_SIGN, cob_s64_t, and sign.
Referenced by cob_get_llint().
int cob_get_int | ( | cob_field * | f | ) |
Definition at line 1626 of file move.c.
References cob_field::attr, COB_ATTR_INIT, cob_binary_mget_sint64(), cob_display_get_int(), COB_FIELD_SCALE, COB_FIELD_TYPE, COB_FLAG_HAVE_SIGN, cob_move(), cob_packed_get_int(), cob_s64_t, COB_TYPE_NUMERIC_BINARY, COB_TYPE_NUMERIC_DISPLAY, COB_TYPE_NUMERIC_PACKED, cob_field::data, NULL, and cob_field::size.
Referenced by cob_allocate(), cob_intr_char(), cob_intr_combined_datetime(), cob_intr_date_of_integer(), cob_intr_date_to_yyyymmdd(), cob_intr_day_of_integer(), cob_intr_day_to_yyyyddd(), cob_intr_factorial(), cob_intr_formatted_date(), cob_intr_formatted_datetime(), cob_intr_formatted_time(), cob_intr_integer_of_date(), cob_intr_integer_of_day(), cob_intr_lcl_time_from_secs(), cob_intr_locale_date(), cob_intr_locale_time(), cob_intr_random(), cob_intr_test_date_yyyymmdd(), cob_intr_test_day_yyyyddd(), cob_intr_year_to_yyyy(), cob_linage_write_opt(), cob_rewrite(), cob_screen_attr(), cob_screen_moveyx(), cob_start(), cob_string_init(), cob_sys_getopt_long_long(), cob_sys_parameter_size(), cob_sys_sleep(), cob_unstring_init(), cob_write(), field_accept(), field_display(), file_linage_check(), get_fractional_seconds(), get_interval_and_current_year_from_args(), get_line_column(), pos_to_line_column(), relative_delete(), relative_read(), relative_rewrite(), relative_start(), relative_write(), screen_accept(), and try_get_valid_offset_time().
Definition at line 1656 of file move.c.
References cob_field::attr, cob_binary_mget_sint64(), cob_display_get_long_long(), COB_FIELD_SCALE, COB_FIELD_TYPE, cob_move(), cob_packed_get_long_long(), cob_s64_t, COB_TYPE_NUMERIC_BINARY, COB_TYPE_NUMERIC_DISPLAY, COB_TYPE_NUMERIC_PACKED, const_binll_attr, cob_field::data, and cob_field::size.
Referenced by cob_sys_oc_nanosleep(), cobxref_(), and LISTING_().
void cob_init_move | ( | cob_global * | lptr, |
cob_settings * | sptr | ||
) |
Definition at line 1683 of file move.c.
Referenced by cob_init().
|
static |
Definition at line 102 of file move.c.
Referenced by cob_move(), and store_common_region().
|
static |
Definition at line 93 of file move.c.
Referenced by cob_move_display_to_alphanum(), and store_common_region().
Definition at line 1170 of file move.c.
References cob_field::attr, cob_decimal_move_temp(), cob_decimal_setget_fld(), COB_FIELD_BINARY_TRUNC, COB_FIELD_DIGITS, COB_FIELD_REAL_BINARY, COB_FIELD_SCALE, COB_FIELD_TYPE, COB_MAX_DIGITS, cob_max_int(), cob_move_all(), cob_move_alphanum_to_alphanum(), cob_move_alphanum_to_display(), cob_move_alphanum_to_edited(), cob_move_binary_to_binary(), cob_move_binary_to_display(), cob_move_display_to_alphanum(), cob_move_display_to_binary(), cob_move_display_to_display(), cob_move_display_to_edited(), cob_move_display_to_packed(), cob_move_edited_to_display(), cob_move_fp_to_fp(), cob_move_packed_to_display(), COB_STORE_TRUNC_ON_OVERFLOW, COB_TYPE_ALPHANUMERIC_ALL, COB_TYPE_ALPHANUMERIC_EDITED, COB_TYPE_GROUP, COB_TYPE_NUMERIC_BINARY, COB_TYPE_NUMERIC_DISPLAY, COB_TYPE_NUMERIC_DOUBLE, COB_TYPE_NUMERIC_EDITED, COB_TYPE_NUMERIC_FLOAT, COB_TYPE_NUMERIC_FP_BIN128, COB_TYPE_NUMERIC_FP_BIN32, COB_TYPE_NUMERIC_FP_BIN64, COB_TYPE_NUMERIC_FP_DEC128, COB_TYPE_NUMERIC_FP_DEC64, COB_TYPE_NUMERIC_L_DOUBLE, COB_TYPE_NUMERIC_PACKED, const_alpha_attr, cob_field::data, indirect_move(), cob_field::size, and unlikely.
Referenced by CHECKSRC_(), cob_accept(), cob_accept_arg_number(), cob_allocate(), cob_cmp(), cob_decimal_get_field(), cob_decimal_move_temp(), cob_display_arg_number(), cob_get_indirect_field(), cob_get_int(), cob_get_llint(), cob_memcpy(), cob_move_all(), cob_set_int(), cob_str_memcpy(), cobxref_(), display_numeric(), field_accept(), format_field(), GCic_(), get__reserved__lists_(), indirect_move(), LISTING_(), and pretty_display_numeric().
Definition at line 1126 of file move.c.
References cob_field::attr, COB_ATTR_INIT, COB_FIELD_IS_ALNUM, COB_FIELD_IS_NUMERIC, cob_free(), cob_malloc(), COB_MAX_DIGITS, cob_move(), COB_TYPE_ALPHANUMERIC, COB_TYPE_NUMERIC_DISPLAY, cob_field::data, cob_field_attr::digits, likely, NULL, cob_field::size, and cob_field_attr::type.
Referenced by cob_move().
Definition at line 418 of file move.c.
References COB_FIELD_JUSTIFIED, cob_field::data, and cob_field::size.
Referenced by cob_move().
Definition at line 259 of file move.c.
References COB_FIELD_DATA, COB_FIELD_SCALE, COB_FIELD_SIZE, COB_MODULE_PTR, COB_PUT_SIGN, cob_field::data, sign, and cob_field::size.
Referenced by cob_move().
Definition at line 1065 of file move.c.
References COB_FIELD_DATA, COB_FIELD_PIC, COB_FIELD_SIZE, COB_GET_SIGN, COB_PUT_SIGN, cob_field::data, and sign.
Referenced by cob_move().
Definition at line 564 of file move.c.
References cob_binary_mget_sint64(), cob_binary_mget_uint64(), cob_binary_mset_sint64(), cob_binary_mset_uint64(), COB_FIELD_HAVE_SIGN, cob_s64_t, cob_u64_t, and sign.
Referenced by cob_move().
Definition at line 637 of file move.c.
References cob_binary_mget_sint64(), cob_binary_mget_uint64(), COB_FIELD_HAVE_SIGN, COB_FIELD_SCALE, COB_I2D, COB_PUT_SIGN, cob_s64_t, cob_u64_t, cob_u8_ptr, sign, and store_common_region().
Referenced by cob_move().
Definition at line 355 of file move.c.
References COB_FIELD_DATA, COB_FIELD_JUSTIFIED, COB_FIELD_SCALE, COB_FIELD_SIZE, COB_GET_SIGN, cob_min_int(), COB_PUT_SIGN, cob_field::data, sign, cob_field::size, and unlikely.
Referenced by cob_move().
Definition at line 593 of file move.c.
References cob_binary_mset_sint64(), cob_binary_mset_uint64(), COB_D2I, cob_exp10_ll, COB_FIELD_BINARY_TRUNC, COB_FIELD_DATA, COB_FIELD_DIGITS, COB_FIELD_HAVE_SIGN, COB_FIELD_REAL_BINARY, COB_FIELD_SCALE, COB_FIELD_SIZE, COB_GET_SIGN, COB_PUT_SIGN, cob_s64_t, cob_u64_t, and sign.
Referenced by cob_move().
Definition at line 342 of file move.c.
References COB_FIELD_DATA, COB_FIELD_SCALE, COB_FIELD_SIZE, COB_GET_SIGN, COB_PUT_SIGN, sign, and store_common_region().
Referenced by cob_move().
Definition at line 676 of file move.c.
References COB_FIELD_BLANK_ZERO, COB_FIELD_DATA, COB_FIELD_PIC, COB_FIELD_SCALE, COB_FIELD_SIZE, COB_GET_SIGN, COB_MODULE_PTR, COB_PUT_SIGN, cob_field::data, NULL, sign, and cob_field::size.
Referenced by cob_move().
Definition at line 451 of file move.c.
References COB_D2I, COB_FIELD_DATA, COB_FIELD_DIGITS, COB_FIELD_HAVE_SIGN, COB_FIELD_NO_SIGN_NIBBLE, COB_FIELD_SCALE, COB_GET_SIGN, COB_PUT_SIGN, cob_field::data, sign, and cob_field::size.
Referenced by cob_move().
Definition at line 984 of file move.c.
References COB_FIELD_PIC, cob_free(), cob_malloc(), COB_MODULE_PTR, COB_PUT_SIGN, cob_field::data, sign, cob_field::size, and store_common_region().
Referenced by cob_move().
Definition at line 541 of file move.c.
References COB_FIELD_TYPE, COB_TYPE_NUMERIC_FLOAT, and cob_field::data.
Referenced by cob_move().
Definition at line 506 of file move.c.
References COB_FIELD_DIGITS, COB_FIELD_NO_SIGN_NIBBLE, COB_FIELD_SCALE, COB_I2D, cob_packed_get_sign(), COB_PUT_SIGN, cob_field::data, sign, and store_common_region().
Referenced by cob_move().
|
static |
Definition at line 1472 of file move.c.
References COB_FIELD_DIGITS, COB_FIELD_NO_SIGN_NIBBLE, COB_FIELD_SCALE, cob_packed_get_sign(), cob_field::data, and sign.
Referenced by cob_get_int().
Definition at line 1503 of file move.c.
References COB_FIELD_DIGITS, COB_FIELD_NO_SIGN_NIBBLE, COB_FIELD_SCALE, cob_packed_get_sign(), cob_s64_t, cob_field::data, and sign.
Referenced by cob_get_llint().
|
static |
Definition at line 119 of file move.c.
References COB_FIELD_HAVE_SIGN, cob_field::data, and cob_field::size.
Referenced by cob_move_packed_to_display(), cob_packed_get_int(), and cob_packed_get_long_long().
void cob_set_int | ( | cob_field * | f, |
const int | n | ||
) |
Definition at line 1612 of file move.c.
References cob_field::attr, COB_ATTR_INIT, COB_FLAG_HAVE_SIGN, COB_FLAG_REAL_BINARY, cob_move(), COB_TYPE_NUMERIC_BINARY, cob_field::data, NULL, and cob_field::size.
Referenced by cob_accept(), cob_accept_escape_key(), cob_accept_exception_status(), cob_check_pos_status(), cob_file_open(), cob_linage_write_opt(), cob_read(), cob_read_next(), cob_screen_line_col(), cob_string_finish(), cob_sys_chdir(), cob_sys_getopt_long_long(), cob_sys_return_args(), cob_unstring_finish(), cob_unstring_into(), cobxref_(), field_accept(), file_linage_check(), relative_read_next(), relative_start(), and relative_write().
|
static |
Definition at line 1108 of file move.c.
References cob_field::attr, COB_ATTR_INIT, COB_FLAG_HAVE_SIGN, cob_free(), cob_malloc(), cob_move(), COB_TYPE_NUMERIC_DISPLAY, cob_field::data, NULL, and cob_field::size.
Referenced by cob_move().
|
static |
Definition at line 111 of file move.c.
Referenced by cob_binary_mget_sint64(), cob_binary_mget_uint64(), cob_binary_mset_sint64(), and cob_binary_mset_uint64().
|
static |
Definition at line 131 of file move.c.
References COB_FIELD_DATA, COB_FIELD_SCALE, COB_FIELD_SIZE, cob_max_int(), cob_min_int(), and unlikely.
Referenced by cob_move_binary_to_display(), cob_move_display_to_display(), cob_move_edited_to_display(), and cob_move_packed_to_display().
|
static |
Definition at line 57 of file move.c.
Referenced by cob_display_get_int().
|
static |
Definition at line 70 of file move.c.
Referenced by cob_display_get_long_long(), and cob_move_display_to_binary().
|
static |
|
static |
|
static |
Definition at line 51 of file move.c.
Referenced by cob_move().
|
static |
Definition at line 53 of file move.c.
Referenced by cob_get_llint().