GnuCOBOL
2.0
A free COBOL compiler
|
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <stdarg.h>
#include <string.h>
#include <ctype.h>
#include <errno.h>
#include <time.h>
#include <math.h>
#include "libcob.h"
#include "coblocal.h"
Go to the source code of this file.
Data Structures | |
struct | calc_struct |
struct | time_format |
struct | date_format |
Macros | |
#define | COB_LIB_EXPIMP |
#define | COB_DATESTR_LEN 11 |
#define | COB_DATESTR_MAX (COB_DATESTR_LEN - 1) |
#define | COB_TIMEDEC_MAX 9 |
#define | COB_TIMESTR_LEN 26 /* including max decimal places */ |
#define | COB_TIMESTR_MAX (COB_TIMESTR_LEN - 1) |
#define | COB_DATETIMESTR_LEN 36 |
#define | COB_DATETIMESTR_MAX (COB_DATETIMESTR_LEN - 1) |
#define | COB_PI_LEN 2820UL |
#define | COB_SQRT_TWO_LEN 3827UL |
#define | COB_LOG_HALF_LEN 2784UL |
#define | RETURN_IF_NOT_ZERO(expr) |
#define | SECONDS_IN_DAY 86400 |
#define | GET_VARIANCE(num_args, args) |
Enumerations | |
enum | numval_type { NUMVAL, NUMVAL_C } |
enum | formatted_time_extra { EXTRA_NONE = 0, EXTRA_Z, EXTRA_OFFSET_TIME } |
enum | days_format { DAYS_MMDD, DAYS_DDD, DAYS_WWWD } |
Functions | |
static cob_u32_t | integer_of_date (const int, const int, const int) |
static void | get_iso_week (const int, int *, int *) |
static void | make_field_entry (cob_field *f) |
static int | leap_year (const int year) |
static int | comp_field (const void *m1, const void *m2) |
static void | calc_ref_mod (cob_field *f, const int offset, const int length) |
static COB_INLINE COB_A_INLINE void | cob_decimal_set (cob_decimal *dst, const cob_decimal *src) |
static void | cob_trim_decimal (cob_decimal *d) |
static void | cob_alloc_set_field_int (const int val) |
static void | cob_alloc_set_field_uint (const cob_u32_t val) |
static void | cob_alloc_field (cob_decimal *d) |
static cob_field * | cob_mod_or_rem (cob_field *f1, cob_field *f2, const int func_is_rem) |
static int | cob_check_numval_f (const cob_field *srcfield) |
static void | cob_decimal_set_mpf (cob_decimal *d, const mpf_t src) |
static void | cob_decimal_get_mpf (mpf_t dst, const cob_decimal *d) |
static void | cob_mpf_exp (mpf_t dst_val, const mpf_t src_val) |
static void | cob_mpf_log (mpf_t dst_val, const mpf_t src_val) |
static void | cob_mpf_log10 (mpf_t dst_val, const mpf_t src_val) |
static void | cob_mpf_sin (mpf_t dst_val, const mpf_t src_val) |
static void | cob_mpf_cos (mpf_t dst_val, const mpf_t src_val) |
static void | cob_mpf_tan (mpf_t dst_val, const mpf_t src_val) |
static void | cob_mpf_atan (mpf_t dst_val, const mpf_t src_val) |
static void | cob_mpf_asin (mpf_t dst_val, const mpf_t src_val) |
static void | cob_mpf_acos (mpf_t dst_val, const mpf_t src_val) |
static size_t | get_substituted_size (cob_field *original, cob_field **matches, cob_field **reps, const int numreps, int(*cmp_func)(const void *, const void *, size_t)) |
static void | substitute_matches (cob_field *original, cob_field **matches, cob_field **reps, const int numreps, int(*cmp_func)(const void *, const void *, size_t), unsigned char *replaced_begin) |
static cob_field * | substitute (const int offset, const int length, const int params, int(*cmp_func)(const void *, const void *, size_t), va_list args) |
static int | int_strncasecmp (const void *s1, const void *s2, size_t n) |
static int | in_last_n_chars (const cob_field *field, const size_t n, const int i) |
static int | at_cr_or_db (const cob_field *srcfield, const int pos) |
static cob_field * | numval (cob_field *srcfield, cob_field *currency, const enum numval_type type) |
static void | get_min_and_max_of_args (const int num_args, va_list args, cob_field **min, cob_field **max) |
static void | calc_mean_of_args (const int num_args, va_list args) |
static void | calc_variance_of_args (const int n, va_list numbers, cob_decimal *mean) |
static void | get_interval_and_current_year_from_args (const int num_args, va_list args, int *const interval, int *const current_year) |
static void | cob_alloc_set_field_str (char *str, const int offset, const int length) |
static void | cob_alloc_set_field_spaces (const int n) |
static int | days_in_year (const int year) |
static COB_INLINE COB_A_INLINE int | in_range (const int min, const int max, const int val) |
static int | valid_integer_date (const int days) |
static int | valid_year (const int year) |
static int | valid_month (const int month) |
static int | valid_day_of_year (const int year, const int day) |
static int | valid_day_of_month (const int year, const int month, const int day) |
static int | max_week (int year) |
static int | valid_time (const int seconds_from_midnight) |
static int | valid_decimal_time (cob_decimal *seconds_from_midnight) |
static int | valid_offset_time (const int offset) |
static void | date_of_integer (int days, int *year, int *month, int *day) |
static void | day_of_integer (int days, int *year, int *day) |
static cob_u32_t | days_up_to_year (const int year) |
static cob_u32_t | integer_of_day (const int year, const int days) |
static void | seconds_from_formatted_time (const struct time_format format, const char *str, cob_decimal *seconds_decimal) |
static int | valid_day_and_format (const int day, const char *format) |
static int | num_leading_nonspace (const char *str) |
static void | format_as_yyyymmdd (const int day_num, const int with_hyphen, char *buff) |
static void | format_as_yyyyddd (const int day_num, const int with_hyphen, char *buff) |
static int | get_day_of_week (const int day_num) |
static int | get_iso_week_one (const int day_num, const int day_of_year) |
static void | format_as_yyyywwwd (const int day_num, const int with_hyphen, char *buff) |
static struct date_format | parse_date_format_string (const char *format_str) |
static void | format_date (const struct date_format format, const int days, char *buff) |
static void | get_fractional_seconds (cob_field *time, cob_decimal *fraction) |
static int | decimal_places_for_seconds (const char *str, const ptrdiff_t point_pos) |
static int | rest_is_z (const char *str) |
static int | rest_is_offset_format (const char *str, const int with_colon) |
static unsigned int | int_pow (const unsigned int base, unsigned int power) |
static void | add_decimal_digits (int decimal_places, cob_decimal *second_fraction, char *buff, ptrdiff_t *buff_pos) |
static void | add_z (const ptrdiff_t buff_pos, char *buff) |
static void | add_offset_time (const int with_colon, int const *offset_time, const ptrdiff_t buff_pos, char *buff) |
static struct time_format | parse_time_format_string (const char *str) |
static int | format_time (const struct time_format format, int time, cob_decimal *second_fraction, int *offset_time, char *buff) |
static void | split_around_t (const char *str, char *first, char *second) |
static int | try_get_valid_offset_time (const struct time_format time_format, cob_field *offset_time_field, int *offset_time) |
static int * | get_system_offset_time_ptr (int *const offset_time) |
static int | test_char_cond (const int cond, int *offset) |
static int | test_char (const char wanted, const char *str, int *offset) |
static COB_INLINE COB_A_INLINE int | test_digit (const unsigned char ch, int *offset) |
static COB_INLINE COB_A_INLINE int | test_char_in_range (const char min, const char max, const char ch, int *offset) |
static int | test_millenium (const char *date, int *offset, int *millenium) |
static int | test_century (const char *date, int *offset, int *state) |
static int | test_decade (const char *date, int *offset, int *state) |
static int | test_unit_year (const char *date, int *offset, int *state) |
static int | test_year (const char *date, int *offset, int *state) |
static int | test_hyphen_presence (const int with_hyphens, const char *date, int *offset) |
static int | test_month (const char *date, int *offset, int *month) |
static int | test_day_of_month (const char *date, const int year, const int month, int *offset) |
static int | test_day_of_year (const char *date, const int year, int *offset) |
static int | test_w_presence (const char *date, int *offset) |
static int | test_week (const char *date, const int year, int *offset) |
static int | test_day_of_week (const char *date, int *offset) |
static int | test_date_end (const struct date_format format, const char *date, const int year, int *offset) |
static int | test_no_trailing_junk (const char *str, int offset, int end_of_string) |
static int | test_formatted_date (const struct date_format format, const char *date, const int end_of_string) |
static int | test_less_than_60 (const char *time, int *offset) |
static int | test_hour (const char *time, int *offset) |
static int | test_minute (const char *time, int *offset) |
static int | test_second (const char *time, int *offset) |
static int | test_colon_presence (const int with_colons, const char *time, int *offset) |
static int | test_decimal_places (const int num_decimal_places, const char decimal_point, const char *time, int *offset) |
static int | test_z_presence (const char *time, int *offset) |
static int | test_two_zeroes (const char *str, int *offset) |
static int | test_offset_time (const struct time_format format, const char *time, int *offset) |
static int | test_time_end (const struct time_format format, const char *time, int *offset) |
static int | test_formatted_time (const struct time_format format, const char *time, const char decimal_point) |
static cob_u32_t | integer_of_mmdd (const struct date_format format, const int year, const char *final_part) |
static cob_u32_t | integer_of_ddd (const int year, const char *final_part) |
static cob_u32_t | integer_of_wwwd (const struct date_format format, const int year, const char *final_part) |
static cob_u32_t | integer_of_formatted_date (const struct date_format format, const char *formatted_date) |
static void | format_datetime (const struct date_format date_fmt, const struct time_format time_fmt, const int days, const int whole_seconds, cob_decimal *fractional_seconds, int *offset_time, char *buff) |
static void | format_current_date (const struct date_format date_fmt, const struct time_format time_fmt, char *formatted_datetime) |
cob_field * | cob_switch_value (const int id) |
void | cob_decimal_pow (cob_decimal *pd1, cob_decimal *pd2) |
void | cob_put_indirect_field (cob_field *f) |
void | cob_get_indirect_field (cob_field *f) |
void | cob_decimal_move_temp (cob_field *src, cob_field *dst) |
int | cob_check_numval (const cob_field *srcfield, const cob_field *currency, const int chkcurr, const int anycase) |
int | cob_valid_date_format (const char *format) |
int | cob_valid_time_format (const char *format, const char decimal_point) |
int | cob_valid_datetime_format (const char *format, const char decimal_point) |
cob_field * | cob_intr_binop (cob_field *f1, const int op, cob_field *f2) |
cob_field * | cob_intr_length (cob_field *srcfield) |
cob_field * | cob_intr_byte_length (cob_field *srcfield) |
cob_field * | cob_intr_integer (cob_field *srcfield) |
cob_field * | cob_intr_integer_part (cob_field *srcfield) |
cob_field * | cob_intr_fraction_part (cob_field *srcfield) |
cob_field * | cob_intr_sign (cob_field *srcfield) |
cob_field * | cob_intr_upper_case (const int offset, const int length, cob_field *srcfield) |
cob_field * | cob_intr_lower_case (const int offset, const int length, cob_field *srcfield) |
cob_field * | cob_intr_reverse (const int offset, const int length, cob_field *srcfield) |
cob_field * | cob_intr_module_date (void) |
cob_field * | cob_intr_module_time (void) |
cob_field * | cob_intr_module_id (void) |
cob_field * | cob_intr_module_caller_id (void) |
cob_field * | cob_intr_module_formatted_date (void) |
cob_field * | cob_intr_module_source (void) |
cob_field * | cob_intr_module_path (void) |
cob_field * | cob_intr_concatenate (const int offset, const int length, const int params,...) |
cob_field * | cob_intr_substitute (const int offset, const int length, const int params,...) |
cob_field * | cob_intr_substitute_case (const int offset, const int length, const int params,...) |
cob_field * | cob_intr_trim (const int offset, const int length, cob_field *srcfield, const int direction) |
cob_field * | cob_intr_exception_file (void) |
cob_field * | cob_intr_exception_location (void) |
cob_field * | cob_intr_exception_status (void) |
cob_field * | cob_intr_exception_statement (void) |
cob_field * | cob_intr_when_compiled (const int offset, const int length, cob_field *f) |
cob_field * | cob_intr_current_date (const int offset, const int length) |
cob_field * | cob_intr_char (cob_field *srcfield) |
cob_field * | cob_intr_ord (cob_field *srcfield) |
cob_field * | cob_intr_stored_char_length (cob_field *srcfield) |
cob_field * | cob_intr_combined_datetime (cob_field *srcdays, cob_field *srctime) |
cob_field * | cob_intr_date_of_integer (cob_field *srcdays) |
cob_field * | cob_intr_day_of_integer (cob_field *srcdays) |
cob_field * | cob_intr_integer_of_date (cob_field *srcfield) |
cob_field * | cob_intr_integer_of_day (cob_field *srcfield) |
cob_field * | cob_intr_test_date_yyyymmdd (cob_field *srcfield) |
cob_field * | cob_intr_test_day_yyyyddd (cob_field *srcfield) |
cob_field * | cob_intr_factorial (cob_field *srcfield) |
cob_field * | cob_intr_e (void) |
cob_field * | cob_intr_pi (void) |
cob_field * | cob_intr_exp (cob_field *srcfield) |
cob_field * | cob_intr_exp10 (cob_field *srcfield) |
cob_field * | cob_intr_log (cob_field *srcfield) |
cob_field * | cob_intr_log10 (cob_field *srcfield) |
cob_field * | cob_intr_abs (cob_field *srcfield) |
cob_field * | cob_intr_acos (cob_field *srcfield) |
cob_field * | cob_intr_asin (cob_field *srcfield) |
cob_field * | cob_intr_atan (cob_field *srcfield) |
cob_field * | cob_intr_cos (cob_field *srcfield) |
cob_field * | cob_intr_sin (cob_field *srcfield) |
cob_field * | cob_intr_tan (cob_field *srcfield) |
cob_field * | cob_intr_sqrt (cob_field *srcfield) |
cob_field * | cob_intr_numval (cob_field *srcfield) |
cob_field * | cob_intr_numval_c (cob_field *srcfield, cob_field *currency) |
cob_field * | cob_intr_numval_f (cob_field *srcfield) |
cob_field * | cob_intr_annuity (cob_field *srcfield1, cob_field *srcfield2) |
cob_field * | cob_intr_sum (const int params,...) |
cob_field * | cob_intr_ord_min (const int params,...) |
cob_field * | cob_intr_ord_max (const int params,...) |
cob_field * | cob_intr_min (const int params,...) |
cob_field * | cob_intr_max (const int params,...) |
cob_field * | cob_intr_midrange (const int params,...) |
cob_field * | cob_intr_median (const int params,...) |
cob_field * | cob_intr_mean (const int params,...) |
cob_field * | cob_intr_mod (cob_field *srcfield1, cob_field *srcfield2) |
cob_field * | cob_intr_range (const int params,...) |
cob_field * | cob_intr_rem (cob_field *srcfield1, cob_field *srcfield2) |
cob_field * | cob_intr_random (const int params,...) |
cob_field * | cob_intr_variance (const int num_args,...) |
cob_field * | cob_intr_standard_deviation (const int num_args,...) |
cob_field * | cob_intr_present_value (const int params,...) |
cob_field * | cob_intr_year_to_yyyy (const int params,...) |
cob_field * | cob_intr_date_to_yyyymmdd (const int params,...) |
cob_field * | cob_intr_day_to_yyyyddd (const int params,...) |
cob_field * | cob_intr_seconds_past_midnight (void) |
cob_field * | cob_intr_seconds_from_formatted_time (cob_field *format_field, cob_field *time_field) |
cob_field * | cob_intr_locale_date (const int offset, const int length, cob_field *srcfield, cob_field *locale_field) |
cob_field * | cob_intr_locale_time (const int offset, const int length, cob_field *srcfield, cob_field *locale_field) |
cob_field * | cob_intr_lcl_time_from_secs (const int offset, const int length, cob_field *srcfield, cob_field *locale_field) |
cob_field * | cob_intr_mon_decimal_point (void) |
cob_field * | cob_intr_num_decimal_point (void) |
cob_field * | cob_intr_mon_thousands_sep (void) |
cob_field * | cob_intr_num_thousands_sep (void) |
cob_field * | cob_intr_currency_symbol (void) |
cob_field * | cob_intr_test_numval (cob_field *srcfield) |
cob_field * | cob_intr_test_numval_c (cob_field *srcfield, cob_field *currency) |
cob_field * | cob_intr_test_numval_f (cob_field *srcfield) |
cob_field * | cob_intr_lowest_algebraic (cob_field *srcfield) |
cob_field * | cob_intr_highest_algebraic (cob_field *srcfield) |
cob_field * | cob_intr_locale_compare (const int params,...) |
cob_field * | cob_intr_formatted_date (const int offset, const int length, cob_field *format_field, cob_field *days_field) |
cob_field * | cob_intr_formatted_time (const int offset, const int length, const int params,...) |
cob_field * | cob_intr_formatted_datetime (const int offset, const int length, const int params,...) |
cob_field * | cob_intr_test_formatted_datetime (cob_field *format_field, cob_field *datetime_field) |
cob_field * | cob_intr_integer_of_formatted_date (cob_field *format_field, cob_field *date_field) |
cob_field * | cob_intr_formatted_current_date (const int offset, const int length, cob_field *format_field) |
cob_field * | cob_intr_boolean_of_integer (cob_field *f1, cob_field *f2) |
cob_field * | cob_intr_char_national (cob_field *srcfield) |
cob_field * | cob_intr_display_of (const int offset, const int length, const int params,...) |
cob_field * | cob_intr_exception_file_n (void) |
cob_field * | cob_intr_exception_location_n (void) |
cob_field * | cob_intr_integer_of_boolean (cob_field *srcfield) |
cob_field * | cob_intr_national_of (const int offset, const int length, const int params,...) |
cob_field * | cob_intr_standard_compare (const int params,...) |
void | cob_exit_intrinsic (void) |
void | cob_init_intrinsic (cob_global *lptr) |
Variables | |
static cob_global * | cobglobptr |
static const cob_field_attr | const_alpha_attr |
static cob_field * | move_field |
static cob_decimal | d1 |
static cob_decimal | d2 |
static cob_decimal | d3 |
static cob_decimal | d4 |
static cob_decimal | d5 |
static mpz_t | cob_mexp |
static mpz_t | cob_mpzt |
static mpf_t | cob_mpft |
static mpf_t | cob_mpft2 |
static mpf_t | cob_mpft_get |
static mpf_t | cob_log_half |
static mpf_t | cob_sqrt_two |
static mpf_t | cob_pi |
static struct calc_struct * | calc_base |
static cob_field * | curr_field |
static cob_u32_t | curr_entry |
static const int | normal_days [] |
static const int | leap_days [] |
static const int | normal_month_days [] |
static const int | leap_month_days [] |
static const char | cob_pi_str [] |
static const char | cob_sqrt_two_str [] |
static const char | cob_log_half_str [] |
#define COB_DATESTR_LEN 11 |
Definition at line 119 of file intrinsic.c.
Referenced by cob_intr_formatted_current_date(), cob_intr_formatted_date(), cob_intr_formatted_datetime(), cob_intr_integer_of_formatted_date(), cob_intr_test_formatted_datetime(), and format_datetime().
#define COB_DATESTR_MAX (COB_DATESTR_LEN - 1) |
Definition at line 120 of file intrinsic.c.
Referenced by split_around_t().
#define COB_DATETIMESTR_LEN 36 |
Definition at line 127 of file intrinsic.c.
Referenced by cob_intr_formatted_current_date(), cob_intr_formatted_datetime(), cob_intr_seconds_from_formatted_time(), and cob_valid_datetime_format().
#define COB_DATETIMESTR_MAX (COB_DATETIMESTR_LEN - 1) |
Definition at line 128 of file intrinsic.c.
#define COB_LIB_EXPIMP |
Definition at line 60 of file intrinsic.c.
#define COB_LOG_HALF_LEN 2784UL |
Definition at line 427 of file intrinsic.c.
Referenced by cob_init_intrinsic().
#define COB_PI_LEN 2820UL |
Definition at line 425 of file intrinsic.c.
Referenced by cob_init_intrinsic().
#define COB_SQRT_TWO_LEN 3827UL |
Definition at line 426 of file intrinsic.c.
Referenced by cob_init_intrinsic().
#define COB_TIMEDEC_MAX 9 |
Definition at line 122 of file intrinsic.c.
Referenced by cob_valid_time_format().
#define COB_TIMESTR_LEN 26 /* including max decimal places */ |
Definition at line 124 of file intrinsic.c.
Referenced by cob_intr_formatted_current_date(), cob_intr_formatted_datetime(), cob_intr_formatted_time(), and format_datetime().
#define COB_TIMESTR_MAX (COB_TIMESTR_LEN - 1) |
Definition at line 125 of file intrinsic.c.
Referenced by split_around_t().
#define GET_VARIANCE | ( | num_args, | |
args | |||
) |
Definition at line 5062 of file intrinsic.c.
Referenced by cob_intr_standard_deviation(), and cob_intr_variance().
#define RETURN_IF_NOT_ZERO | ( | expr | ) |
Definition at line 429 of file intrinsic.c.
Referenced by test_century(), test_colon_presence(), test_date_end(), test_day_of_month(), test_day_of_week(), test_day_of_year(), test_decade(), test_decimal_places(), test_formatted_date(), test_formatted_time(), test_hour(), test_less_than_60(), test_millenium(), test_minute(), test_month(), test_offset_time(), test_second(), test_time_end(), test_two_zeroes(), test_unit_year(), test_week(), and test_year().
#define SECONDS_IN_DAY 86400 |
Definition at line 1833 of file intrinsic.c.
Referenced by valid_decimal_time(), and valid_time().
enum days_format |
Enumerator | |
---|---|
DAYS_MMDD | |
DAYS_DDD | |
DAYS_WWWD |
Definition at line 2119 of file intrinsic.c.
enum formatted_time_extra |
Enumerator | |
---|---|
EXTRA_NONE | |
EXTRA_Z | |
EXTRA_OFFSET_TIME |
Definition at line 1949 of file intrinsic.c.
enum numval_type |
Enumerator | |
---|---|
NUMVAL | |
NUMVAL_C |
Definition at line 1450 of file intrinsic.c.
|
static |
Definition at line 2227 of file intrinsic.c.
References COB_MODULE_PTR, int_pow(), cob_decimal::scale, and cob_decimal::value.
Referenced by format_time().
|
static |
Definition at line 2263 of file intrinsic.c.
Referenced by cob_intr_current_date(), and format_time().
|
static |
Definition at line 2257 of file intrinsic.c.
Referenced by format_time().
|
static |
Definition at line 1444 of file intrinsic.c.
References cob_field::data.
Referenced by numval().
|
static |
Definition at line 1564 of file intrinsic.c.
References cob_decimal_add(), cob_decimal_div(), cob_decimal_set_field(), cob_uli_t, cob_decimal::scale, and cob_decimal::value.
|
static |
Definition at line 488 of file intrinsic.c.
References cob_field::data, and cob_field::size.
Referenced by cob_alloc_set_field_str(), cob_intr_concatenate(), cob_intr_current_date(), cob_intr_formatted_current_date(), cob_intr_formatted_date(), cob_intr_formatted_datetime(), cob_intr_formatted_time(), cob_intr_lower_case(), cob_intr_reverse(), cob_intr_trim(), cob_intr_upper_case(), cob_intr_when_compiled(), and substitute().
|
static |
Definition at line 1585 of file intrinsic.c.
References cob_decimal_add(), cob_decimal_div(), cob_decimal_mul(), cob_decimal_set(), cob_decimal_set_field(), cob_decimal_sub(), cob_uli_t, d2, d3, d4, cob_decimal::scale, and cob_decimal::value.
|
static |
Definition at line 565 of file intrinsic.c.
References COB_ATTR_INIT, COB_DECIMAL_NAN, COB_EC_ARGUMENT_FUNCTION, COB_FIELD_INIT, COB_FLAG_HAVE_SIGN, cob_set_exception(), cob_trim_decimal(), COB_TYPE_NUMERIC_BINARY, COB_TYPE_NUMERIC_DISPLAY, make_field_entry(), NULL, cob_decimal::scale, sign, unlikely, and cob_decimal::value.
Referenced by cob_intr_acos(), cob_intr_annuity(), cob_intr_asin(), cob_intr_atan(), cob_intr_binop(), cob_intr_combined_datetime(), cob_intr_cos(), cob_intr_e(), cob_intr_exp(), cob_intr_exp10(), cob_intr_factorial(), cob_intr_fraction_part(), cob_intr_highest_algebraic(), cob_intr_integer(), cob_intr_integer_part(), cob_intr_log(), cob_intr_log10(), cob_intr_lowest_algebraic(), cob_intr_mean(), cob_intr_median(), cob_intr_midrange(), cob_intr_numval_f(), cob_intr_pi(), cob_intr_present_value(), cob_intr_range(), cob_intr_seconds_from_formatted_time(), cob_intr_sin(), cob_intr_sqrt(), cob_intr_standard_deviation(), cob_intr_sum(), cob_intr_tan(), cob_intr_variance(), cob_mod_or_rem(), and numval().
|
static |
Definition at line 533 of file intrinsic.c.
References COB_ATTR_INIT, COB_FIELD_INIT, COB_FLAG_HAVE_SIGN, COB_TYPE_NUMERIC_BINARY, cob_u16_t, cob_field::data, make_field_entry(), and NULL.
Referenced by cob_intr_date_to_yyyymmdd(), cob_intr_day_to_yyyyddd(), cob_intr_seconds_past_midnight(), cob_intr_sign(), cob_intr_test_numval(), cob_intr_test_numval_c(), cob_intr_test_numval_f(), cob_intr_year_to_yyyy(), and cob_switch_value().
|
static |
Definition at line 1764 of file intrinsic.c.
References COB_FIELD_INIT, cob_field::data, make_field_entry(), and NULL.
Referenced by cob_intr_lcl_time_from_secs(), cob_intr_locale_date(), and cob_intr_locale_time().
|
static |
Definition at line 1749 of file intrinsic.c.
References calc_ref_mod(), COB_FIELD_INIT, cob_field::data, make_field_entry(), NULL, and unlikely.
Referenced by cob_intr_lcl_time_from_secs(), cob_intr_locale_date(), and cob_intr_locale_time().
|
static |
Definition at line 552 of file intrinsic.c.
References COB_ATTR_INIT, COB_FIELD_INIT, COB_TYPE_NUMERIC_BINARY, cob_u32_t, cob_field::data, make_field_entry(), and NULL.
Referenced by cob_intr_acos(), cob_intr_annuity(), cob_intr_asin(), cob_intr_atan(), cob_intr_byte_length(), cob_intr_combined_datetime(), cob_intr_date_to_yyyymmdd(), cob_intr_day_to_yyyyddd(), cob_intr_exp(), cob_intr_exp10(), cob_intr_factorial(), cob_intr_highest_algebraic(), cob_intr_integer_of_date(), cob_intr_integer_of_day(), cob_intr_length(), cob_intr_log(), cob_intr_log10(), cob_intr_lowest_algebraic(), cob_intr_numval_f(), cob_intr_ord(), cob_intr_ord_max(), cob_intr_ord_min(), cob_intr_seconds_from_formatted_time(), cob_intr_sqrt(), cob_intr_stored_char_length(), cob_intr_test_date_yyyymmdd(), cob_intr_test_day_yyyyddd(), cob_intr_year_to_yyyy(), cob_mod_or_rem(), and numval().
int cob_check_numval | ( | const cob_field * | srcfield, |
const cob_field * | currency, | ||
const int | chkcurr, | ||
const int | anycase | ||
) |
Definition at line 3132 of file intrinsic.c.
References COB_MAX_DIGITS, COB_MODULE_PTR, cob_field::data, NULL, and cob_field::size.
Referenced by cob_intr_test_numval(), cob_intr_test_numval_c(), numval(), and valid_field_data().
|
static |
Definition at line 677 of file intrinsic.c.
References COB_MAX_DIGITS, COB_MODULE_PTR, cob_field::data, and cob_field::size.
Referenced by cob_intr_numval_f(), and cob_intr_test_numval_f().
|
static |
Definition at line 847 of file intrinsic.c.
References cob_mexp, cob_mpft_get, cob_sli_t, cob_uli_t, cob_decimal::scale, and cob_decimal::value.
Referenced by cob_decimal_pow(), cob_intr_acos(), cob_intr_asin(), cob_intr_atan(), cob_intr_cos(), cob_intr_exp(), cob_intr_log(), cob_intr_log10(), cob_intr_sin(), and cob_intr_tan().
Definition at line 3104 of file intrinsic.c.
References COB_ATTR_INIT, cob_decimal_get_field(), cob_decimal_set_field(), COB_FIELD_INIT, COB_FLAG_HAVE_SIGN, cob_move(), cob_trim_decimal(), COB_TYPE_NUMERIC_DISPLAY, make_field_entry(), NULL, cob_decimal::scale, and cob_decimal::value.
Referenced by cob_move().
void cob_decimal_pow | ( | cob_decimal * | pd1, |
cob_decimal * | pd2 | ||
) |
Definition at line 2990 of file intrinsic.c.
References cob_decimal_div(), cob_decimal_get_mpf(), COB_DECIMAL_NAN, cob_decimal_set(), cob_decimal_set_mpf(), COB_EC_SIZE_EXPONENTIATION, cob_mpf_exp(), cob_mpf_log(), cob_mpft, cob_mpft2, cob_set_exception(), cob_trim_decimal(), cob_uli_t, cob_decimal::scale, sign, unlikely, and cob_decimal::value.
Referenced by cob_intr_annuity(), cob_intr_binop(), cob_intr_exp10(), cob_intr_sqrt(), and cob_intr_standard_deviation().
|
static |
Definition at line 509 of file intrinsic.c.
References cob_decimal::scale, and cob_decimal::value.
Referenced by calc_variance_of_args(), and cob_decimal_pow().
|
static |
Definition at line 816 of file intrinsic.c.
References cob_gmp_free(), cob_mexp, cob_sli_t, cob_uli_t, NULL, cob_decimal::scale, and cob_decimal::value.
Referenced by cob_decimal_pow(), cob_intr_acos(), cob_intr_asin(), cob_intr_atan(), cob_intr_cos(), cob_intr_e(), cob_intr_exp(), cob_intr_log(), cob_intr_log10(), cob_intr_pi(), cob_intr_sin(), and cob_intr_tan().
void cob_exit_intrinsic | ( | void | ) |
Definition at line 6521 of file intrinsic.c.
References calc_base, calc_struct::calc_field, COB_DEPTH_LEVEL, cob_free(), cob_log_half, cob_mexp, cob_mpft, cob_mpft2, cob_mpft_get, cob_mpzt, cob_pi, cob_sqrt_two, cob_u32_t, cob_field::data, and cob_decimal::value.
Referenced by cob_terminate_routines().
void cob_get_indirect_field | ( | cob_field * | f | ) |
Definition at line 3096 of file intrinsic.c.
References cob_move().
Referenced by cobxref_().
void cob_init_intrinsic | ( | cob_global * | lptr | ) |
Definition at line 6555 of file intrinsic.c.
References calc_base, calc_struct::calc_field, calc_struct::calc_size, COB_DEPTH_LEVEL, cob_log_half, COB_LOG_HALF_LEN, cob_log_half_str, cob_malloc(), cob_mexp, COB_MPF_PREC, cob_mpft, cob_mpft2, cob_mpft_get, COB_MPZ_DEF, cob_mpzt, cob_pi, COB_PI_LEN, cob_pi_str, cob_sqrt_two, COB_SQRT_TWO_LEN, cob_sqrt_two_str, cob_u32_t, curr_entry, cob_field::data, NULL, cob_decimal::scale, cob_field::size, and cob_decimal::value.
Referenced by cob_init().
Definition at line 4414 of file intrinsic.c.
References cob_decimal_get_field(), cob_decimal_set_field(), curr_field, make_field_entry(), and cob_decimal::value.
Definition at line 4425 of file intrinsic.c.
References cob_alloc_field(), cob_alloc_set_field_uint(), cob_decimal_cmp(), cob_decimal_get_field(), cob_decimal_get_mpf(), cob_decimal_set_field(), cob_decimal_set_mpf(), COB_EC_ARGUMENT_FUNCTION, cob_mpf_acos(), cob_mpft, cob_set_exception(), curr_field, cob_decimal::scale, and cob_decimal::value.
Definition at line 4712 of file intrinsic.c.
References cob_alloc_field(), cob_alloc_set_field_uint(), cob_decimal_add(), cob_decimal_div(), cob_decimal_get_field(), cob_decimal_pow(), cob_decimal_set_field(), cob_decimal_sub(), COB_EC_ARGUMENT_FUNCTION, cob_set_exception(), cob_trim_decimal(), curr_field, cob_decimal::scale, sign, and cob_decimal::value.
Definition at line 4455 of file intrinsic.c.
References cob_alloc_field(), cob_alloc_set_field_uint(), cob_decimal_cmp(), cob_decimal_get_field(), cob_decimal_get_mpf(), cob_decimal_set_field(), cob_decimal_set_mpf(), COB_EC_ARGUMENT_FUNCTION, cob_mpf_asin(), cob_mpft, cob_set_exception(), curr_field, cob_decimal::scale, and cob_decimal::value.
Definition at line 4491 of file intrinsic.c.
References cob_alloc_field(), cob_alloc_set_field_uint(), cob_decimal_get_field(), cob_decimal_get_mpf(), cob_decimal_set_field(), cob_decimal_set_mpf(), cob_mpf_atan(), cob_mpft, cob_set_exception(), curr_field, and cob_decimal::value.
Definition at line 3429 of file intrinsic.c.
References cob_alloc_field(), cob_decimal_add(), cob_decimal_div(), cob_decimal_get_field(), cob_decimal_mul(), cob_decimal_pow(), cob_decimal_set_field(), cob_decimal_sub(), COB_EC_SIZE_ZERO_DIVIDE, cob_set_exception(), curr_field, cob_decimal::scale, and cob_decimal::value.
Definition at line 6453 of file intrinsic.c.
References cob_fatal_error(), COB_FERROR_FUNCTION, and COB_UNUSED.
Definition at line 3480 of file intrinsic.c.
References cob_alloc_set_field_uint(), cob_u32_t, curr_field, and cob_field::size.
Definition at line 3977 of file intrinsic.c.
References COB_FIELD_INIT, cob_get_int(), curr_field, cob_field::data, make_field_entry(), and NULL.
Definition at line 6462 of file intrinsic.c.
References cob_fatal_error(), COB_FERROR_FUNCTION, and COB_UNUSED.
Definition at line 4020 of file intrinsic.c.
References cob_alloc_field(), cob_alloc_set_field_uint(), cob_decimal_add(), cob_decimal_div(), cob_decimal_get_field(), cob_decimal_set_field(), COB_EC_ARGUMENT_FUNCTION, cob_get_int(), cob_set_exception(), curr_field, d1, d2, d3, cob_decimal::scale, valid_decimal_time(), valid_integer_date(), and cob_decimal::value.
cob_field* cob_intr_concatenate | ( | const int | offset, |
const int | length, | ||
const int | params, | ||
... | |||
) |
Definition at line 3723 of file intrinsic.c.
References calc_ref_mod(), COB_FIELD_INIT, cob_free(), cob_malloc(), curr_field, cob_field::data, make_field_entry(), NULL, params, cob_field::size, and unlikely.
Referenced by GCic_().
Definition at line 4513 of file intrinsic.c.
References cob_alloc_field(), cob_decimal_get_field(), cob_decimal_get_mpf(), cob_decimal_set_field(), cob_decimal_set_mpf(), cob_mpf_cos(), cob_mpft, cob_set_exception(), and curr_field.
cob_field* cob_intr_currency_symbol | ( | void | ) |
Definition at line 5738 of file intrinsic.c.
References COB_FIELD_INIT, COB_MODULE_PTR, cob_set_exception(), curr_field, cob_field::data, make_field_entry(), NULL, and cob_field::size.
cob_field* cob_intr_current_date | ( | const int | offset, |
const int | length | ||
) |
Definition at line 3952 of file intrinsic.c.
References add_offset_time(), calc_ref_mod(), COB_FIELD_INIT, cob_get_current_date_and_time(), curr_field, cob_field::data, cob_time::day_of_month, cob_time::hour, make_field_entry(), cob_time::minute, cob_time::month, cob_time::nanosecond, NULL, cob_time::second, unlikely, cob_time::utc_offset, and cob_time::year.
Referenced by cobxref_().
Definition at line 4067 of file intrinsic.c.
References COB_ATTR_INIT, COB_EC_ARGUMENT_FUNCTION, COB_FIELD_INIT, cob_get_int(), cob_set_exception(), COB_TYPE_NUMERIC_DISPLAY, curr_field, cob_field::data, date_of_integer(), make_field_entry(), cob_time::month, NULL, valid_integer_date(), and cob_time::year.
cob_field* cob_intr_date_to_yyyymmdd | ( | const int | params, |
... | |||
) |
Definition at line 5208 of file intrinsic.c.
References cob_alloc_set_field_int(), cob_alloc_set_field_uint(), COB_EC_ARGUMENT_FUNCTION, cob_get_int(), cob_set_exception(), curr_field, get_interval_and_current_year_from_args(), and valid_year().
Definition at line 4097 of file intrinsic.c.
References COB_ATTR_INIT, COB_EC_ARGUMENT_FUNCTION, COB_FIELD_INIT, cob_get_int(), cob_set_exception(), COB_TYPE_NUMERIC_DISPLAY, curr_field, cob_field::data, day_of_integer(), make_field_entry(), NULL, and valid_integer_date().
cob_field* cob_intr_day_to_yyyyddd | ( | const int | params, |
... | |||
) |
Definition at line 5254 of file intrinsic.c.
References cob_alloc_set_field_int(), cob_alloc_set_field_uint(), COB_EC_ARGUMENT_FUNCTION, cob_get_int(), cob_set_exception(), curr_field, get_interval_and_current_year_from_args(), and valid_year().
cob_field* cob_intr_display_of | ( | const int | offset, |
const int | length, | ||
const int | params, | ||
... | |||
) |
Definition at line 6470 of file intrinsic.c.
References cob_fatal_error(), COB_FERROR_FUNCTION, and COB_UNUSED.
cob_field* cob_intr_e | ( | void | ) |
Definition at line 4262 of file intrinsic.c.
References cob_alloc_field(), cob_decimal_get_field(), cob_decimal_set_mpf(), cob_mpf_exp(), cob_mpft, and curr_field.
cob_field* cob_intr_exception_file | ( | void | ) |
Definition at line 3833 of file intrinsic.c.
References __cob_global::cob_error_file, __cob_global::cob_exception_code, COB_FIELD_INIT, curr_field, cob_field::data, cob_file::file_status, make_field_entry(), NULL, cob_file::select_name, and cob_field::size.
cob_field* cob_intr_exception_file_n | ( | void | ) |
Definition at line 6481 of file intrinsic.c.
References cob_fatal_error(), and COB_FERROR_FUNCTION.
cob_field* cob_intr_exception_location | ( | void | ) |
Definition at line 3857 of file intrinsic.c.
References COB_FIELD_INIT, cob_free(), __cob_global::cob_got_exception, cob_malloc(), __cob_global::cob_orig_line, __cob_global::cob_orig_paragraph, __cob_global::cob_orig_program_id, __cob_global::cob_orig_section, COB_SMALL_BUFF, COB_SMALL_MAX, curr_field, cob_field::data, make_field_entry(), NULL, and cob_field::size.
cob_field* cob_intr_exception_location_n | ( | void | ) |
Definition at line 6487 of file intrinsic.c.
References cob_fatal_error(), and COB_FERROR_FUNCTION.
cob_field* cob_intr_exception_statement | ( | void | ) |
Definition at line 3920 of file intrinsic.c.
References __cob_global::cob_exception_code, COB_FIELD_INIT, __cob_global::cob_orig_statement, curr_field, cob_field::data, make_field_entry(), and NULL.
cob_field* cob_intr_exception_status | ( | void | ) |
Definition at line 3900 of file intrinsic.c.
References __cob_global::cob_exception_code, COB_FIELD_INIT, cob_get_exception_name(), curr_field, cob_field::data, make_field_entry(), and NULL.
Definition at line 4285 of file intrinsic.c.
References cob_alloc_field(), cob_alloc_set_field_uint(), cob_decimal_get_field(), cob_decimal_get_mpf(), cob_decimal_set_field(), cob_decimal_set_mpf(), cob_mpf_exp(), cob_mpft, cob_set_exception(), curr_field, and cob_decimal::value.
Definition at line 4307 of file intrinsic.c.
References cob_alloc_field(), cob_alloc_set_field_uint(), cob_decimal_get_field(), cob_decimal_pow(), cob_decimal_set_field(), cob_set_exception(), cob_trim_decimal(), curr_field, cob_decimal::scale, sign, and cob_decimal::value.
Definition at line 4241 of file intrinsic.c.
References cob_alloc_field(), cob_alloc_set_field_uint(), cob_decimal_get_field(), COB_EC_ARGUMENT_FUNCTION, cob_get_int(), cob_set_exception(), cob_uli_t, curr_field, cob_decimal::scale, and cob_decimal::value.
cob_field* cob_intr_formatted_current_date | ( | const int | offset, |
const int | length, | ||
cob_field * | format_field | ||
) |
Definition at line 6407 of file intrinsic.c.
References calc_ref_mod(), COB_DATESTR_LEN, COB_DATETIMESTR_LEN, COB_EC_ARGUMENT_FUNCTION, COB_FIELD_INIT, COB_MODULE_PTR, cob_set_exception(), COB_TIMESTR_LEN, cob_valid_datetime_format(), curr_field, cob_field::data, format_current_date(), make_field_entry(), NULL, num_leading_nonspace(), parse_date_format_string(), parse_time_format_string(), split_around_t(), and unlikely.
cob_field* cob_intr_formatted_date | ( | const int | offset, |
const int | length, | ||
cob_field * | format_field, | ||
cob_field * | days_field | ||
) |
Definition at line 6035 of file intrinsic.c.
References calc_ref_mod(), COB_DATESTR_LEN, COB_EC_ARGUMENT_FUNCTION, COB_FIELD_INIT, cob_get_int(), cob_set_exception(), curr_field, cob_field::data, format_date(), make_field_entry(), NULL, num_leading_nonspace(), parse_date_format_string(), unlikely, and valid_day_and_format().
cob_field* cob_intr_formatted_datetime | ( | const int | offset, |
const int | length, | ||
const int | params, | ||
... | |||
) |
Definition at line 6169 of file intrinsic.c.
References calc_ref_mod(), COB_DATESTR_LEN, COB_DATETIMESTR_LEN, COB_EC_ARGUMENT_FUNCTION, COB_FIELD_INIT, cob_get_int(), COB_MODULE_PTR, cob_set_exception(), COB_TIMESTR_LEN, cob_valid_datetime_format(), curr_field, d1, cob_field::data, format_datetime(), get_fractional_seconds(), get_system_offset_time_ptr(), make_field_entry(), NULL, num_leading_nonspace(), parse_date_format_string(), parse_time_format_string(), split_around_t(), try_get_valid_offset_time(), unlikely, valid_integer_date(), and valid_time().
cob_field* cob_intr_formatted_time | ( | const int | offset, |
const int | length, | ||
const int | params, | ||
... | |||
) |
Definition at line 6076 of file intrinsic.c.
References calc_ref_mod(), COB_EC_ARGUMENT_FUNCTION, COB_FIELD_INIT, cob_get_int(), COB_MODULE_PTR, cob_set_exception(), COB_TIMESTR_LEN, cob_valid_time_format(), curr_field, d2, cob_field::data, format_field(), format_time(), get_fractional_seconds(), get_system_offset_time_ptr(), make_field_entry(), NULL, num_leading_nonspace(), parse_time_format_string(), try_get_valid_offset_time(), unlikely, and valid_time().
Definition at line 3532 of file intrinsic.c.
References cob_alloc_field(), cob_decimal_get_field(), cob_decimal_set_field(), cob_mexp, cob_uli_t, curr_field, cob_decimal::scale, and cob_decimal::value.
Definition at line 5866 of file intrinsic.c.
References cob_alloc_field(), cob_alloc_set_field_uint(), cob_decimal_get_field(), COB_EC_ARGUMENT_FUNCTION, COB_FIELD_BINARY_TRUNC, COB_FIELD_DIGITS, COB_FIELD_HAVE_SIGN, COB_FIELD_INIT, COB_FIELD_REAL_BINARY, COB_FIELD_SCALE, COB_FIELD_SIZE, COB_FIELD_TYPE, cob_set_exception(), COB_TYPE_ALPHANUMERIC, COB_TYPE_ALPHANUMERIC_EDITED, COB_TYPE_NATIONAL, COB_TYPE_NATIONAL_EDITED, COB_TYPE_NUMERIC_BINARY, COB_TYPE_NUMERIC_DISPLAY, COB_TYPE_NUMERIC_DOUBLE, COB_TYPE_NUMERIC_EDITED, COB_TYPE_NUMERIC_FLOAT, COB_TYPE_NUMERIC_PACKED, cob_uli_t, curr_field, cob_field::data, make_field_entry(), NULL, cob_decimal::scale, and cob_decimal::value.
Definition at line 3487 of file intrinsic.c.
References cob_alloc_field(), cob_decimal_get_field(), cob_decimal_set_field(), cob_mexp, cob_mpzt, cob_uli_t, curr_field, cob_decimal::scale, sign, and cob_decimal::value.
Definition at line 6493 of file intrinsic.c.
References cob_fatal_error(), COB_FERROR_FUNCTION, and COB_UNUSED.
Definition at line 4126 of file intrinsic.c.
References cob_alloc_set_field_uint(), COB_EC_ARGUMENT_FUNCTION, cob_get_int(), cob_set_exception(), curr_field, integer_of_date(), cob_time::month, valid_day_of_month(), valid_month(), valid_year(), and cob_time::year.
Definition at line 4161 of file intrinsic.c.
References cob_alloc_set_field_uint(), COB_EC_ARGUMENT_FUNCTION, cob_get_int(), cob_set_exception(), curr_field, integer_of_day(), valid_day_of_year(), valid_year(), and cob_time::year.
Definition at line 6361 of file intrinsic.c.
References COB_DATESTR_LEN, and cob_field::data.
Definition at line 3513 of file intrinsic.c.
References cob_alloc_field(), cob_decimal_get_field(), cob_decimal_set_field(), cob_mexp, cob_uli_t, curr_field, cob_decimal::scale, and cob_decimal::value.
cob_field* cob_intr_lcl_time_from_secs | ( | const int | offset, |
const int | length, | ||
cob_field * | srcfield, | ||
cob_field * | locale_field | ||
) |
Definition at line 5557 of file intrinsic.c.
References cob_alloc_set_field_spaces(), cob_alloc_set_field_str(), COB_EC_ARGUMENT_FUNCTION, COB_FIELD_IS_NUMERIC, cob_get_int(), cob_set_exception(), curr_field, and valid_time().
Definition at line 3469 of file intrinsic.c.
References cob_alloc_set_field_uint(), COB_FIELD_IS_NATIONAL, COB_NATIONAL_SIZE, cob_u32_t, curr_field, and cob_field::size.
Referenced by GCic_(), and LISTING_().
cob_field* cob_intr_locale_compare | ( | const int | params, |
... | |||
) |
Definition at line 5937 of file intrinsic.c.
References COB_EC_ARGUMENT_FUNCTION, COB_FIELD_INIT, cob_field_to_string(), cob_free(), __cob_global::cob_locale, cob_malloc(), cob_set_exception(), curr_field, cob_field::data, f1, f2, make_field_entry(), NULL, and cob_field::size.
cob_field* cob_intr_locale_date | ( | const int | offset, |
const int | length, | ||
cob_field * | srcfield, | ||
cob_field * | locale_field | ||
) |
Definition at line 5375 of file intrinsic.c.
References cob_alloc_set_field_spaces(), cob_alloc_set_field_str(), COB_EC_ARGUMENT_FUNCTION, COB_FIELD_IS_NUMERIC, cob_field_to_string(), cob_get_int(), __cob_global::cob_locale, cob_set_exception(), COB_SMALL_BUFF, COB_SMALL_MAX, curr_field, cob_field::data, NULL, cob_field::size, valid_day_of_month(), valid_month(), valid_year(), and WORD.
cob_field* cob_intr_locale_time | ( | const int | offset, |
const int | length, | ||
cob_field * | srcfield, | ||
cob_field * | locale_field | ||
) |
Definition at line 5496 of file intrinsic.c.
References cob_alloc_set_field_spaces(), cob_alloc_set_field_str(), COB_EC_ARGUMENT_FUNCTION, COB_FIELD_IS_NUMERIC, cob_get_int(), cob_set_exception(), curr_field, cob_field::data, and cob_field::size.
Definition at line 4352 of file intrinsic.c.
References cob_alloc_field(), cob_alloc_set_field_uint(), cob_decimal_get_field(), cob_decimal_get_mpf(), cob_decimal_set_field(), cob_decimal_set_mpf(), COB_EC_ARGUMENT_FUNCTION, cob_mpf_log(), cob_mpft, cob_set_exception(), cob_trim_decimal(), curr_field, cob_decimal::scale, and cob_decimal::value.
Definition at line 4383 of file intrinsic.c.
References cob_alloc_field(), cob_alloc_set_field_uint(), cob_decimal_get_field(), cob_decimal_get_mpf(), cob_decimal_set_field(), cob_decimal_set_mpf(), COB_EC_ARGUMENT_FUNCTION, cob_mpf_log10(), cob_mpft, cob_set_exception(), cob_trim_decimal(), curr_field, cob_decimal::scale, and cob_decimal::value.
Definition at line 3576 of file intrinsic.c.
References calc_ref_mod(), cob_u8_t, curr_field, cob_field::data, make_field_entry(), cob_field::size, and unlikely.
Referenced by cobxref_(), GCic_(), and LISTING_().
Definition at line 5794 of file intrinsic.c.
References cob_alloc_field(), cob_alloc_set_field_uint(), cob_decimal_get_field(), COB_EC_ARGUMENT_FUNCTION, COB_FIELD_BINARY_TRUNC, COB_FIELD_DIGITS, COB_FIELD_HAVE_SIGN, COB_FIELD_INIT, COB_FIELD_REAL_BINARY, COB_FIELD_SCALE, COB_FIELD_SIZE, COB_FIELD_TYPE, cob_set_exception(), COB_TYPE_ALPHANUMERIC, COB_TYPE_ALPHANUMERIC_EDITED, COB_TYPE_NATIONAL, COB_TYPE_NATIONAL_EDITED, COB_TYPE_NUMERIC_BINARY, COB_TYPE_NUMERIC_DISPLAY, COB_TYPE_NUMERIC_DOUBLE, COB_TYPE_NUMERIC_EDITED, COB_TYPE_NUMERIC_FLOAT, COB_TYPE_NUMERIC_PACKED, cob_uli_t, curr_field, make_field_entry(), NULL, cob_decimal::scale, and cob_decimal::value.
cob_field* cob_intr_max | ( | const int | params, |
... | |||
) |
Definition at line 4859 of file intrinsic.c.
References cob_cmp(), curr_field, cob_field::data, make_field_entry(), params, and cob_field::size.
cob_field* cob_intr_mean | ( | const int | params, |
... | |||
) |
Definition at line 4955 of file intrinsic.c.
References cob_alloc_field(), cob_decimal_add(), cob_decimal_div(), cob_decimal_get_field(), cob_decimal_set_field(), cob_uli_t, curr_field, cob_field::data, make_field_entry(), params, cob_decimal::scale, cob_field::size, and cob_decimal::value.
cob_field* cob_intr_median | ( | const int | params, |
... | |||
) |
Definition at line 4907 of file intrinsic.c.
References cob_alloc_field(), cob_decimal_add(), cob_decimal_div(), cob_decimal_get_field(), cob_decimal_set_field(), cob_free(), cob_malloc(), comp_field(), curr_field, cob_field::data, make_field_entry(), params, cob_decimal::scale, cob_field::size, and cob_decimal::value.
cob_field* cob_intr_midrange | ( | const int | params, |
... | |||
) |
Definition at line 4883 of file intrinsic.c.
References cob_alloc_field(), cob_decimal_add(), cob_decimal_div(), cob_decimal_get_field(), cob_decimal_set_field(), curr_field, get_min_and_max_of_args(), cob_decimal::scale, and cob_decimal::value.
cob_field* cob_intr_min | ( | const int | params, |
... | |||
) |
Definition at line 4835 of file intrinsic.c.
References cob_cmp(), curr_field, cob_field::data, make_field_entry(), params, and cob_field::size.
Definition at line 4992 of file intrinsic.c.
References cob_mod_or_rem().
cob_field* cob_intr_module_caller_id | ( | void | ) |
Definition at line 3653 of file intrinsic.c.
References COB_FIELD_INIT, COB_MODULE_PTR, curr_field, cob_field::data, make_field_entry(), NULL, and cob_field::size.
cob_field* cob_intr_module_date | ( | void | ) |
Definition at line 3610 of file intrinsic.c.
References COB_ATTR_INIT, COB_FIELD_INIT, COB_MODULE_PTR, COB_TYPE_NUMERIC_DISPLAY, curr_field, cob_field::data, make_field_entry(), and NULL.
cob_field* cob_intr_module_formatted_date | ( | void | ) |
Definition at line 3674 of file intrinsic.c.
References COB_FIELD_INIT, COB_MODULE_PTR, curr_field, cob_field::data, make_field_entry(), and NULL.
cob_field* cob_intr_module_id | ( | void | ) |
Definition at line 3640 of file intrinsic.c.
References COB_FIELD_INIT, COB_MODULE_PTR, curr_field, cob_field::data, make_field_entry(), and NULL.
cob_field* cob_intr_module_path | ( | void | ) |
Definition at line 3701 of file intrinsic.c.
References COB_FIELD_INIT, COB_MODULE_PTR, curr_field, cob_field::data, make_field_entry(), NULL, and cob_field::size.
cob_field* cob_intr_module_source | ( | void | ) |
Definition at line 3688 of file intrinsic.c.
References COB_FIELD_INIT, COB_MODULE_PTR, curr_field, cob_field::data, make_field_entry(), and NULL.
cob_field* cob_intr_module_time | ( | void | ) |
Definition at line 3625 of file intrinsic.c.
References COB_ATTR_INIT, COB_FIELD_INIT, COB_MODULE_PTR, COB_TYPE_NUMERIC_DISPLAY, curr_field, cob_field::data, make_field_entry(), and NULL.
cob_field* cob_intr_mon_decimal_point | ( | void | ) |
Definition at line 5598 of file intrinsic.c.
References COB_FIELD_INIT, COB_MODULE_PTR, cob_set_exception(), curr_field, cob_field::data, make_field_entry(), NULL, and cob_field::size.
cob_field* cob_intr_mon_thousands_sep | ( | void | ) |
Definition at line 5668 of file intrinsic.c.
References COB_FIELD_INIT, COB_MODULE_PTR, cob_set_exception(), curr_field, cob_field::data, make_field_entry(), NULL, and cob_field::size.
cob_field* cob_intr_national_of | ( | const int | offset, |
const int | length, | ||
const int | params, | ||
... | |||
) |
Definition at line 6501 of file intrinsic.c.
References cob_fatal_error(), COB_FERROR_FUNCTION, and COB_UNUSED.
cob_field* cob_intr_num_decimal_point | ( | void | ) |
Definition at line 5633 of file intrinsic.c.
References COB_FIELD_INIT, COB_MODULE_PTR, cob_set_exception(), curr_field, cob_field::data, make_field_entry(), NULL, and cob_field::size.
cob_field* cob_intr_num_thousands_sep | ( | void | ) |
Definition at line 5703 of file intrinsic.c.
References COB_FIELD_INIT, COB_MODULE_PTR, cob_set_exception(), curr_field, cob_field::data, make_field_entry(), NULL, and cob_field::size.
Definition at line 4584 of file intrinsic.c.
References NULL, NUMVAL, and numval().
Referenced by format_field(), and LISTING_().
Definition at line 4590 of file intrinsic.c.
References numval(), and NUMVAL_C.
Referenced by format_field().
Definition at line 4596 of file intrinsic.c.
References cob_alloc_field(), cob_alloc_set_field_uint(), cob_check_numval_f(), cob_decimal_get_field(), COB_EC_ARGUMENT_FUNCTION, cob_free(), cob_malloc(), cob_mexp, COB_MODULE_PTR, cob_set_exception(), cob_uli_t, curr_field, cob_field::data, cob_decimal::scale, cob_field::size, and cob_decimal::value.
Definition at line 3995 of file intrinsic.c.
References cob_alloc_set_field_uint(), cob_u32_t, curr_field, and cob_field::data.
cob_field* cob_intr_ord_max | ( | const int | params, |
... | |||
) |
Definition at line 4809 of file intrinsic.c.
References cob_alloc_set_field_uint(), cob_cmp(), cob_u32_t, curr_field, and params.
cob_field* cob_intr_ord_min | ( | const int | params, |
... | |||
) |
Definition at line 4783 of file intrinsic.c.
References cob_alloc_set_field_uint(), cob_cmp(), cob_u32_t, curr_field, and params.
cob_field* cob_intr_pi | ( | void | ) |
Definition at line 4274 of file intrinsic.c.
References cob_alloc_field(), cob_decimal_get_field(), cob_decimal_set_mpf(), cob_mpft, cob_pi, and curr_field.
cob_field* cob_intr_present_value | ( | const int | params, |
... | |||
) |
Definition at line 5113 of file intrinsic.c.
References cob_alloc_field(), cob_decimal_add(), cob_decimal_div(), cob_decimal_get_field(), cob_decimal_set_field(), cob_uli_t, curr_field, params, cob_decimal::scale, and cob_decimal::value.
cob_field* cob_intr_random | ( | const int | params, |
... | |||
) |
Definition at line 5023 of file intrinsic.c.
References COB_ATTR_INIT, COB_FIELD_INIT, COB_FLAG_HAVE_SIGN, cob_get_int(), COB_TYPE_NUMERIC_DOUBLE, curr_field, cob_field::data, make_field_entry(), and NULL.
cob_field* cob_intr_range | ( | const int | params, |
... | |||
) |
Definition at line 4998 of file intrinsic.c.
References cob_alloc_field(), cob_decimal_get_field(), cob_decimal_set_field(), cob_decimal_sub(), curr_field, and get_min_and_max_of_args().
Definition at line 5017 of file intrinsic.c.
References cob_mod_or_rem().
Definition at line 3593 of file intrinsic.c.
References calc_ref_mod(), curr_field, cob_field::data, make_field_entry(), cob_field::size, and unlikely.
cob_field* cob_intr_seconds_from_formatted_time | ( | cob_field * | format_field, |
cob_field * | time_field | ||
) |
Definition at line 5325 of file intrinsic.c.
References cob_alloc_field(), cob_alloc_set_field_uint(), COB_DATETIMESTR_LEN, cob_decimal_get_field(), COB_EC_ARGUMENT_FUNCTION, COB_MODULE_PTR, cob_set_exception(), cob_valid_datetime_format(), cob_valid_time_format(), curr_field, d1, cob_field::data, NULL, num_leading_nonspace(), parse_time_format_string(), seconds_from_formatted_time(), split_around_t(), and test_formatted_time().
cob_field* cob_intr_seconds_past_midnight | ( | void | ) |
Definition at line 5306 of file intrinsic.c.
References cob_alloc_set_field_int(), curr_field, and NULL.
Definition at line 3551 of file intrinsic.c.
References cob_alloc_set_field_int(), cob_decimal_set_field(), curr_field, and cob_decimal::value.
Definition at line 4529 of file intrinsic.c.
References cob_alloc_field(), cob_decimal_get_field(), cob_decimal_get_mpf(), cob_decimal_set_field(), cob_decimal_set_mpf(), cob_mpf_sin(), cob_mpft, cob_set_exception(), and curr_field.
Definition at line 4561 of file intrinsic.c.
References cob_alloc_field(), cob_alloc_set_field_uint(), cob_decimal_get_field(), cob_decimal_pow(), cob_decimal_set_field(), COB_EC_ARGUMENT_FUNCTION, cob_set_exception(), cob_trim_decimal(), curr_field, cob_decimal::scale, and cob_decimal::value.
cob_field* cob_intr_standard_compare | ( | const int | params, |
... | |||
) |
Definition at line 6511 of file intrinsic.c.
References cob_fatal_error(), COB_FERROR_FUNCTION, and COB_UNUSED.
cob_field* cob_intr_standard_deviation | ( | const int | num_args, |
... | |||
) |
Definition at line 5090 of file intrinsic.c.
References cob_alloc_field(), cob_decimal_get_field(), cob_decimal_pow(), cob_set_exception(), cob_trim_decimal(), curr_field, GET_VARIANCE, cob_decimal::scale, and cob_decimal::value.
Definition at line 4002 of file intrinsic.c.
References cob_alloc_set_field_uint(), cob_u32_t, curr_field, cob_field::data, and cob_field::size.
cob_field* cob_intr_substitute | ( | const int | offset, |
const int | length, | ||
const int | params, | ||
... | |||
) |
Definition at line 3762 of file intrinsic.c.
References substitute().
cob_field* cob_intr_substitute_case | ( | const int | offset, |
const int | length, | ||
const int | params, | ||
... | |||
) |
Definition at line 3776 of file intrinsic.c.
References int_strncasecmp(), and substitute().
cob_field* cob_intr_sum | ( | const int | params, |
... | |||
) |
Definition at line 4759 of file intrinsic.c.
References cob_alloc_field(), cob_decimal_add(), cob_decimal_get_field(), cob_decimal_set_field(), curr_field, params, cob_decimal::scale, and cob_decimal::value.
Definition at line 4545 of file intrinsic.c.
References cob_alloc_field(), cob_decimal_get_field(), cob_decimal_get_mpf(), cob_decimal_set_field(), cob_decimal_set_mpf(), cob_mpf_tan(), cob_mpft, cob_set_exception(), and curr_field.
Definition at line 4188 of file intrinsic.c.
References cob_alloc_set_field_uint(), cob_get_int(), curr_field, cob_time::month, valid_day_of_month(), valid_month(), valid_year(), and cob_time::year.
Definition at line 4218 of file intrinsic.c.
References cob_alloc_set_field_uint(), cob_get_int(), curr_field, valid_day_of_year(), valid_year(), and cob_time::year.
cob_field* cob_intr_test_formatted_datetime | ( | cob_field * | format_field, |
cob_field * | datetime_field | ||
) |
Definition at line 6273 of file intrinsic.c.
References COB_DATESTR_LEN, and cob_field::data.
Definition at line 5773 of file intrinsic.c.
References cob_alloc_set_field_int(), cob_check_numval(), curr_field, and NULL.
Definition at line 5780 of file intrinsic.c.
References cob_alloc_set_field_int(), cob_check_numval(), and curr_field.
Definition at line 5787 of file intrinsic.c.
References cob_alloc_set_field_int(), cob_check_numval_f(), and curr_field.
cob_field* cob_intr_trim | ( | const int | offset, |
const int | length, | ||
cob_field * | srcfield, | ||
const int | direction | ||
) |
Definition at line 3790 of file intrinsic.c.
References calc_ref_mod(), curr_field, cob_field::data, make_field_entry(), cob_field::size, and unlikely.
Referenced by GCic_(), and LISTING_().
Definition at line 3559 of file intrinsic.c.
References calc_ref_mod(), cob_u8_t, curr_field, cob_field::data, make_field_entry(), cob_field::size, and unlikely.
Referenced by CHECKSRC_(), cobxref_(), and LISTING_().
cob_field* cob_intr_variance | ( | const int | num_args, |
... | |||
) |
Definition at line 5078 of file intrinsic.c.
References cob_alloc_field(), cob_decimal_get_field(), curr_field, and GET_VARIANCE.
Definition at line 3940 of file intrinsic.c.
References calc_ref_mod(), curr_field, cob_field::data, make_field_entry(), cob_field::size, and unlikely.
Referenced by GCic_().
cob_field* cob_intr_year_to_yyyy | ( | const int | params, |
... | |||
) |
Definition at line 5151 of file intrinsic.c.
References cob_alloc_set_field_int(), cob_alloc_set_field_uint(), COB_EC_ARGUMENT_FUNCTION, cob_get_int(), cob_set_exception(), curr_field, NULL, and valid_year().
Definition at line 624 of file intrinsic.c.
References cob_alloc_field(), cob_alloc_set_field_uint(), cob_decimal_div(), cob_decimal_get_field(), cob_decimal_mul(), cob_decimal_set_field(), cob_decimal_sub(), COB_EC_SIZE_ZERO_DIVIDE, cob_mexp, cob_mpzt, cob_set_exception(), cob_uli_t, curr_field, cob_decimal::scale, sign, and cob_decimal::value.
Referenced by cob_intr_mod(), and cob_intr_rem().
|
static |
Definition at line 1243 of file intrinsic.c.
References cob_mpf_atan(), COB_MPF_PREC, and cob_pi.
Referenced by cob_intr_acos().
|
static |
Definition at line 1196 of file intrinsic.c.
References cob_mpf_atan(), COB_MPF_PREC, and cob_pi.
Referenced by cob_intr_asin().
|
static |
Definition at line 1132 of file intrinsic.c.
References COB_MPF_PREC, cob_pi, cob_sqrt_two, and cob_uli_t.
Referenced by cob_intr_atan(), cob_mpf_acos(), and cob_mpf_asin().
|
static |
Definition at line 1095 of file intrinsic.c.
References COB_MPF_PREC, cob_mpf_sin(), and cob_pi.
Referenced by cob_intr_cos(), and cob_mpf_tan().
|
static |
Definition at line 871 of file intrinsic.c.
References COB_MPF_CUTOFF, COB_MPF_PREC, cob_sli_t, cob_u32_t, and cob_uli_t.
Referenced by cob_decimal_pow(), cob_intr_e(), and cob_intr_exp().
|
static |
Definition at line 931 of file intrinsic.c.
References cob_log_half, COB_MPF_CUTOFF, COB_MPF_PREC, cob_sli_t, and cob_uli_t.
Referenced by cob_decimal_pow(), cob_intr_log(), and cob_mpf_log10().
|
static |
Definition at line 991 of file intrinsic.c.
References cob_mpf_log(), and COB_MPF_PREC.
Referenced by cob_intr_log10().
|
static |
Definition at line 1016 of file intrinsic.c.
References COB_MPF_PREC, cob_pi, cob_uli_t, and sign.
Referenced by cob_intr_sin(), cob_mpf_cos(), and cob_mpf_tan().
|
static |
Definition at line 1113 of file intrinsic.c.
References cob_mpf_cos(), COB_MPF_PREC, and cob_mpf_sin().
Referenced by cob_intr_tan().
void cob_put_indirect_field | ( | cob_field * | f | ) |
Definition at line 3088 of file intrinsic.c.
References curr_field, cob_field::data, make_field_entry(), and cob_field::size.
Referenced by cobxref_().
cob_field* cob_switch_value | ( | const int | id | ) |
Definition at line 2980 of file intrinsic.c.
References cob_alloc_set_field_int(), cob_get_switch(), and curr_field.
|
static |
Definition at line 517 of file intrinsic.c.
References cob_decimal::scale, and cob_decimal::value.
Referenced by cob_alloc_field(), cob_decimal_move_temp(), cob_decimal_pow(), cob_intr_annuity(), cob_intr_exp10(), cob_intr_log(), cob_intr_log10(), cob_intr_sqrt(), and cob_intr_standard_deviation().
int cob_valid_date_format | ( | const char * | format | ) |
Definition at line 3355 of file intrinsic.c.
Referenced by cob_valid_datetime_format(), valid_day_and_format(), and valid_format().
int cob_valid_datetime_format | ( | const char * | format, |
const char | decimal_point | ||
) |
Definition at line 3402 of file intrinsic.c.
References COB_DATETIMESTR_LEN, cob_valid_date_format(), cob_valid_time_format(), parse_date_format_string(), parse_time_format_string(), split_around_t(), time_format::with_colons, and date_format::with_hyphens.
Referenced by cob_intr_formatted_current_date(), cob_intr_formatted_datetime(), cob_intr_seconds_from_formatted_time(), and valid_format().
int cob_valid_time_format | ( | const char * | format, |
const char | decimal_point | ||
) |
Definition at line 3366 of file intrinsic.c.
References COB_TIMEDEC_MAX, decimal_places_for_seconds(), rest_is_offset_format(), and rest_is_z().
Referenced by cob_intr_formatted_time(), cob_intr_seconds_from_formatted_time(), cob_valid_datetime_format(), and valid_format().
|
static |
Definition at line 476 of file intrinsic.c.
References cob_cmp(), f1, and f2.
Referenced by cob_intr_median().
|
static |
Definition at line 1862 of file intrinsic.c.
References days_in_year(), leap_days, leap_year(), and normal_days.
Referenced by cob_intr_date_of_integer(), and format_as_yyyymmdd().
|
static |
Definition at line 1893 of file intrinsic.c.
References days_in_year().
Referenced by cob_intr_day_of_integer(), format_as_yyyyddd(), format_as_yyyywwwd(), and get_iso_week().
|
static |
Definition at line 1776 of file intrinsic.c.
References leap_year().
Referenced by date_of_integer(), day_of_integer(), days_up_to_year(), get_iso_week(), max_week(), and valid_day_of_year().
|
static |
Definition at line 1909 of file intrinsic.c.
References cob_u32_t, and days_in_year().
Referenced by integer_of_date(), integer_of_day(), and integer_of_wwwd().
|
static |
Definition at line 2181 of file intrinsic.c.
Referenced by cob_valid_time_format(), and parse_time_format_string().
|
static |
Definition at line 2031 of file intrinsic.c.
References day_of_integer().
Referenced by format_date().
|
static |
Definition at line 2017 of file intrinsic.c.
References date_of_integer().
Referenced by format_date().
|
static |
Definition at line 2103 of file intrinsic.c.
References day_of_integer(), get_day_of_week(), and get_iso_week().
Referenced by format_date().
|
static |
Definition at line 2950 of file intrinsic.c.
References cob_get_current_date_and_time(), d1, cob_time::day_of_month, format_datetime(), cob_time::hour, integer_of_date(), cob_time::minute, cob_time::month, cob_time::nanosecond, NULL, cob_time::offset_known, cob_decimal::scale, cob_time::second, cob_time::utc_offset, cob_decimal::value, and cob_time::year.
Referenced by cob_intr_formatted_current_date().
|
static |
Definition at line 2149 of file intrinsic.c.
References date_format::days, DAYS_DDD, DAYS_MMDD, format_as_yyyyddd(), format_as_yyyymmdd(), format_as_yyyywwwd(), and date_format::with_hyphens.
Referenced by cob_intr_formatted_date(), and format_datetime().
|
static |
Definition at line 2929 of file intrinsic.c.
References COB_DATESTR_LEN, COB_TIMESTR_LEN, format_date(), format_time(), and overflow.
Referenced by cob_intr_formatted_datetime(), and format_current_date().
|
static |
Definition at line 2316 of file intrinsic.c.
References add_decimal_digits(), add_offset_time(), add_z(), COB_EC_IMP_UTC_UNKNOWN, cob_set_exception(), time_format::decimal_places, time_format::extra, EXTRA_OFFSET_TIME, EXTRA_Z, NULL, and time_format::with_colons.
Referenced by cob_intr_formatted_time(), and format_datetime().
|
static |
Definition at line 2045 of file intrinsic.c.
Referenced by format_as_yyyywwwd(), and get_iso_week_one().
|
static |
Definition at line 2165 of file intrinsic.c.
References cob_decimal_set_field(), cob_decimal_sub(), cob_get_int(), d5, cob_decimal::scale, and cob_decimal::value.
Referenced by cob_intr_formatted_datetime(), and cob_intr_formatted_time().
|
static |
Definition at line 1624 of file intrinsic.c.
References cob_get_int(), and NULL.
Referenced by cob_intr_date_to_yyyymmdd(), and cob_intr_day_to_yyyyddd().
|
static |
Definition at line 2064 of file intrinsic.c.
References day_of_integer(), days_in_year(), and get_iso_week_one().
Referenced by format_as_yyyywwwd(), and max_week().
|
static |
Definition at line 2051 of file intrinsic.c.
References get_day_of_week().
Referenced by get_iso_week(), and integer_of_wwwd().
|
static |
Definition at line 1543 of file intrinsic.c.
References cob_cmp().
Referenced by cob_intr_midrange(), and cob_intr_range().
|
static |
Definition at line 1289 of file intrinsic.c.
References cob_field::data, and cob_field::size.
Referenced by substitute().
|
static |
Definition at line 2436 of file intrinsic.c.
References cob_get_current_date_and_time(), and NULL.
Referenced by cob_intr_formatted_datetime(), and cob_intr_formatted_time().
|
static |
Definition at line 1438 of file intrinsic.c.
References cob_field::size.
Referenced by numval().
|
static |
Definition at line 1782 of file intrinsic.c.
Referenced by valid_day_of_month(), valid_day_of_year(), valid_integer_date(), valid_month(), valid_time(), and valid_year().
|
static |
Definition at line 2214 of file intrinsic.c.
Referenced by add_decimal_digits().
|
static |
Definition at line 1430 of file intrinsic.c.
Referenced by cob_intr_substitute_case().
|
static |
Definition at line 1922 of file intrinsic.c.
References cob_u32_t, days_up_to_year(), leap_days, leap_year(), and normal_days.
Referenced by cob_intr_integer_of_date(), format_current_date(), integer_of_mmdd(), and max_week().
|
static |
Definition at line 1939 of file intrinsic.c.
References cob_u32_t, and days_up_to_year().
Referenced by cob_intr_integer_of_day(), and integer_of_ddd().
|
static |
Definition at line 2878 of file intrinsic.c.
References cob_fatal_error(), COB_FERROR_CODEGEN, integer_of_day(), and unlikely.
Referenced by integer_of_formatted_date().
|
static |
Definition at line 2908 of file intrinsic.c.
References cob_fatal_error(), COB_FERROR_CODEGEN, date_format::days, DAYS_DDD, DAYS_MMDD, integer_of_ddd(), integer_of_mmdd(), integer_of_wwwd(), unlikely, date_format::with_hyphens, and cob_time::year.
|
static |
Definition at line 2863 of file intrinsic.c.
References cob_fatal_error(), COB_FERROR_CODEGEN, integer_of_date(), cob_time::month, unlikely, and date_format::with_hyphens.
Referenced by integer_of_formatted_date().
|
static |
Definition at line 2889 of file intrinsic.c.
References cob_fatal_error(), COB_FERROR_CODEGEN, cob_u32_t, cob_time::day_of_week, days_up_to_year(), get_iso_week_one(), unlikely, and date_format::with_hyphens.
Referenced by integer_of_formatted_date().
|
static |
Definition at line 470 of file intrinsic.c.
Referenced by date_of_integer(), days_in_year(), integer_of_date(), test_day_of_month(), test_day_of_year(), and valid_day_of_month().
|
static |
Definition at line 440 of file intrinsic.c.
References cob_field::attr, calc_struct::calc_attr, calc_struct::calc_field, calc_struct::calc_size, COB_DEPTH_LEVEL, cob_free(), cob_malloc(), curr_entry, cob_field::data, and cob_field::size.
Referenced by cob_alloc_field(), cob_alloc_set_field_int(), cob_alloc_set_field_spaces(), cob_alloc_set_field_str(), cob_alloc_set_field_uint(), cob_decimal_move_temp(), cob_intr_abs(), cob_intr_char(), cob_intr_concatenate(), cob_intr_currency_symbol(), cob_intr_current_date(), cob_intr_date_of_integer(), cob_intr_day_of_integer(), cob_intr_exception_file(), cob_intr_exception_location(), cob_intr_exception_statement(), cob_intr_exception_status(), cob_intr_formatted_current_date(), cob_intr_formatted_date(), cob_intr_formatted_datetime(), cob_intr_formatted_time(), cob_intr_highest_algebraic(), cob_intr_locale_compare(), cob_intr_lower_case(), cob_intr_lowest_algebraic(), cob_intr_max(), cob_intr_mean(), cob_intr_median(), cob_intr_min(), cob_intr_module_caller_id(), cob_intr_module_date(), cob_intr_module_formatted_date(), cob_intr_module_id(), cob_intr_module_path(), cob_intr_module_source(), cob_intr_module_time(), cob_intr_mon_decimal_point(), cob_intr_mon_thousands_sep(), cob_intr_num_decimal_point(), cob_intr_num_thousands_sep(), cob_intr_random(), cob_intr_reverse(), cob_intr_trim(), cob_intr_upper_case(), cob_intr_when_compiled(), cob_put_indirect_field(), and substitute().
|
static |
Definition at line 1822 of file intrinsic.c.
References days_in_year(), get_iso_week(), and integer_of_date().
Referenced by test_week().
|
static |
Definition at line 2007 of file intrinsic.c.
Referenced by cob_intr_formatted_current_date(), cob_intr_formatted_date(), cob_intr_formatted_datetime(), cob_intr_formatted_time(), and cob_intr_seconds_from_formatted_time().
|
static |
Definition at line 1456 of file intrinsic.c.
References at_cr_or_db(), cob_alloc_field(), cob_alloc_set_field_uint(), cob_check_numval(), cob_decimal_get_field(), COB_EC_ARGUMENT_FUNCTION, cob_free(), cob_malloc(), COB_MAX_DIGITS, COB_MODULE_PTR, cob_set_exception(), curr_field, cob_field::data, in_last_n_chars(), NULL, NUMVAL_C, cob_decimal::scale, sign, cob_field::size, and cob_decimal::value.
Referenced by cob_intr_numval(), cob_intr_numval_c(), get_config_val(), and set_config_val().
|
static |
Definition at line 2131 of file intrinsic.c.
References date_format::days, DAYS_DDD, DAYS_MMDD, DAYS_WWWD, and date_format::with_hyphens.
Referenced by cob_intr_formatted_current_date(), cob_intr_formatted_date(), cob_intr_formatted_datetime(), and cob_valid_datetime_format().
|
static |
Definition at line 2282 of file intrinsic.c.
References time_format::decimal_places, decimal_places_for_seconds(), time_format::extra, EXTRA_NONE, EXTRA_OFFSET_TIME, EXTRA_Z, rest_is_z(), and time_format::with_colons.
Referenced by cob_intr_formatted_current_date(), cob_intr_formatted_datetime(), cob_intr_formatted_time(), cob_intr_seconds_from_formatted_time(), and cob_valid_datetime_format().
|
static |
Definition at line 2200 of file intrinsic.c.
Referenced by cob_valid_time_format().
|
static |
Definition at line 2194 of file intrinsic.c.
Referenced by cob_valid_time_format(), and parse_time_format_string().
|
static |
Definition at line 1963 of file intrinsic.c.
References cob_ctoi(), cob_decimal_add(), cob_fatal_error(), COB_FERROR_CODEGEN, d2, time_format::decimal_places, cob_decimal::scale, unlikely, cob_decimal::value, and time_format::with_colons.
Referenced by cob_intr_seconds_from_formatted_time().
|
static |
Definition at line 2384 of file intrinsic.c.
References COB_DATESTR_MAX, COB_TIMESTR_MAX, and NULL.
Referenced by cob_intr_formatted_current_date(), cob_intr_formatted_datetime(), cob_intr_seconds_from_formatted_time(), and cob_valid_datetime_format().
|
static |
Definition at line 1380 of file intrinsic.c.
References calc_ref_mod(), COB_FIELD_INIT, cob_free(), cob_malloc(), curr_field, cob_field::data, get_substituted_size(), make_field_entry(), NULL, cob_field::size, substitute_matches(), and unlikely.
Referenced by cob_intr_substitute(), and cob_intr_substitute_case().
|
static |
Definition at line 1335 of file intrinsic.c.
References cob_field::data, and cob_field::size.
Referenced by substitute().
|
static |
Definition at line 2487 of file intrinsic.c.
References cob_ctoi(), RETURN_IF_NOT_ZERO, test_char_in_range(), and test_digit().
Referenced by test_year().
|
static |
Definition at line 2461 of file intrinsic.c.
References test_char_cond().
Referenced by test_colon_presence(), test_decimal_places(), test_hyphen_presence(), test_two_zeroes(), test_w_presence(), and test_z_presence().
|
static |
Definition at line 2450 of file intrinsic.c.
Referenced by test_char(), test_char_in_range(), test_digit(), and test_month().
|
static |
Definition at line 2473 of file intrinsic.c.
References test_char_cond().
Referenced by test_century(), test_day_of_month(), test_day_of_week(), test_day_of_year(), test_hour(), test_less_than_60(), test_millenium(), test_month(), test_unit_year(), and test_week().
|
static |
Definition at line 2766 of file intrinsic.c.
References RETURN_IF_NOT_ZERO, and test_char().
Referenced by test_formatted_time(), and test_offset_time().
|
static |
Definition at line 2674 of file intrinsic.c.
References date_format::days, DAYS_DDD, DAYS_MMDD, cob_time::month, RETURN_IF_NOT_ZERO, test_day_of_month(), test_day_of_week(), test_day_of_year(), test_hyphen_presence(), test_month(), test_w_presence(), test_week(), and date_format::with_hyphens.
Referenced by test_formatted_date().
|
static |
Definition at line 2563 of file intrinsic.c.
References leap_month_days, leap_year(), cob_time::month, normal_month_days, RETURN_IF_NOT_ZERO, test_char_in_range(), and test_digit().
Referenced by test_date_end().
|
static |
Definition at line 2667 of file intrinsic.c.
References RETURN_IF_NOT_ZERO, and test_char_in_range().
Referenced by test_date_end().
|
static |
Definition at line 2599 of file intrinsic.c.
References cob_ctoi(), leap_year(), RETURN_IF_NOT_ZERO, test_char_in_range(), and test_digit().
Referenced by test_date_end().
|
static |
Definition at line 2501 of file intrinsic.c.
References cob_ctoi(), RETURN_IF_NOT_ZERO, and test_digit().
Referenced by test_year().
|
static |
Definition at line 2777 of file intrinsic.c.
References RETURN_IF_NOT_ZERO, test_char(), and test_digit().
Referenced by test_formatted_time().
|
static |
Definition at line 2467 of file intrinsic.c.
References test_char_cond().
Referenced by test_century(), test_day_of_month(), test_day_of_year(), test_decade(), test_decimal_places(), test_hour(), test_less_than_60(), test_unit_year(), and test_week().
|
static |
Definition at line 2713 of file intrinsic.c.
References RETURN_IF_NOT_ZERO, test_date_end(), test_hyphen_presence(), test_no_trailing_junk(), test_year(), date_format::with_hyphens, and cob_time::year.
|
static |
Definition at line 2842 of file intrinsic.c.
References time_format::decimal_places, RETURN_IF_NOT_ZERO, test_colon_presence(), test_decimal_places(), test_hour(), test_minute(), test_no_trailing_junk(), test_second(), test_time_end(), and time_format::with_colons.
Referenced by cob_intr_seconds_from_formatted_time().
|
static |
Definition at line 2735 of file intrinsic.c.
References cob_ctoi(), RETURN_IF_NOT_ZERO, test_char_in_range(), and test_digit().
Referenced by test_formatted_time(), and test_offset_time().
|
static |
Definition at line 2534 of file intrinsic.c.
References test_char().
Referenced by test_date_end(), and test_formatted_date().
|
static |
Definition at line 2727 of file intrinsic.c.
References RETURN_IF_NOT_ZERO, test_char_in_range(), and test_digit().
Referenced by test_minute(), and test_second().
|
static |
Definition at line 2478 of file intrinsic.c.
References cob_ctoi(), RETURN_IF_NOT_ZERO, and test_char_in_range().
Referenced by test_year().
|
static |
Definition at line 2752 of file intrinsic.c.
References RETURN_IF_NOT_ZERO, and test_less_than_60().
Referenced by test_formatted_time(), and test_offset_time().
|
static |
Definition at line 2540 of file intrinsic.c.
References cob_ctoi(), RETURN_IF_NOT_ZERO, test_char_cond(), and test_char_in_range().
Referenced by test_date_end().
|
static |
Definition at line 2695 of file intrinsic.c.
Referenced by test_formatted_date(), and test_formatted_time().
|
static |
Definition at line 2807 of file intrinsic.c.
References RETURN_IF_NOT_ZERO, test_colon_presence(), test_hour(), test_minute(), test_two_zeroes(), and time_format::with_colons.
Referenced by test_time_end().
|
static |
Definition at line 2759 of file intrinsic.c.
References RETURN_IF_NOT_ZERO, and test_less_than_60().
Referenced by test_formatted_time().
|
static |
Definition at line 2829 of file intrinsic.c.
References time_format::extra, EXTRA_OFFSET_TIME, EXTRA_Z, RETURN_IF_NOT_ZERO, test_offset_time(), and test_z_presence().
Referenced by test_formatted_time().
|
static |
Definition at line 2799 of file intrinsic.c.
References RETURN_IF_NOT_ZERO, and test_char().
Referenced by test_offset_time().
|
static |
Definition at line 2509 of file intrinsic.c.
References cob_ctoi(), RETURN_IF_NOT_ZERO, test_char_in_range(), and test_digit().
Referenced by test_year().
|
static |
Definition at line 2636 of file intrinsic.c.
References test_char().
Referenced by test_date_end().
|
static |
Definition at line 2642 of file intrinsic.c.
References cob_ctoi(), max_week(), RETURN_IF_NOT_ZERO, test_char_in_range(), and test_digit().
Referenced by test_date_end().
|
static |
Definition at line 2523 of file intrinsic.c.
References RETURN_IF_NOT_ZERO, test_century(), test_decade(), test_millenium(), and test_unit_year().
Referenced by test_formatted_date().
|
static |
Definition at line 2793 of file intrinsic.c.
References test_char().
Referenced by test_time_end().
|
static |
Definition at line 2419 of file intrinsic.c.
References cob_get_int(), NULL, and valid_offset_time().
Referenced by cob_intr_formatted_datetime(), and cob_intr_formatted_time().
|
static |
Definition at line 2001 of file intrinsic.c.
References cob_valid_date_format(), and valid_integer_date().
Referenced by cob_intr_formatted_date().
|
static |
Definition at line 1812 of file intrinsic.c.
References in_range(), leap_month_days, leap_year(), and normal_month_days.
Referenced by cob_intr_integer_of_date(), cob_intr_locale_date(), and cob_intr_test_date_yyyymmdd().
|
static |
Definition at line 1806 of file intrinsic.c.
References days_in_year(), and in_range().
Referenced by cob_intr_integer_of_day(), and cob_intr_test_day_yyyyddd().
|
static |
Definition at line 1843 of file intrinsic.c.
References cob_decimal_cmp(), d5, cob_decimal::scale, SECONDS_IN_DAY, and cob_decimal::value.
Referenced by cob_intr_combined_datetime().
|
static |
Definition at line 1788 of file intrinsic.c.
References in_range().
Referenced by cob_intr_combined_datetime(), cob_intr_date_of_integer(), cob_intr_day_of_integer(), cob_intr_formatted_datetime(), and valid_day_and_format().
|
static |
Definition at line 1800 of file intrinsic.c.
References in_range().
Referenced by cob_intr_integer_of_date(), cob_intr_locale_date(), and cob_intr_test_date_yyyymmdd().
|
static |
Definition at line 1855 of file intrinsic.c.
Referenced by try_get_valid_offset_time().
|
static |
Definition at line 1836 of file intrinsic.c.
References in_range(), and SECONDS_IN_DAY.
Referenced by cob_intr_formatted_datetime(), cob_intr_formatted_time(), and cob_intr_lcl_time_from_secs().
|
static |
Definition at line 1794 of file intrinsic.c.
References in_range().
Referenced by cob_intr_date_to_yyyymmdd(), cob_intr_day_to_yyyyddd(), cob_intr_integer_of_date(), cob_intr_integer_of_day(), cob_intr_locale_date(), cob_intr_test_date_yyyymmdd(), cob_intr_test_day_yyyyddd(), and cob_intr_year_to_yyyy().
|
static |
Definition at line 104 of file intrinsic.c.
Referenced by cob_exit_intrinsic(), and cob_init_intrinsic().
|
static |
Definition at line 91 of file intrinsic.c.
Referenced by cob_exit_intrinsic(), cob_init_intrinsic(), and cob_mpf_log().
|
static |
Definition at line 405 of file intrinsic.c.
Referenced by cob_init_intrinsic().
|
static |
Definition at line 85 of file intrinsic.c.
Referenced by cob_decimal_get_mpf(), cob_decimal_set_mpf(), cob_exit_intrinsic(), cob_init_intrinsic(), cob_intr_fraction_part(), cob_intr_integer(), cob_intr_integer_part(), cob_intr_numval_f(), and cob_mod_or_rem().
|
static |
Definition at line 88 of file intrinsic.c.
Referenced by cob_decimal_pow(), cob_exit_intrinsic(), cob_init_intrinsic(), cob_intr_acos(), cob_intr_asin(), cob_intr_atan(), cob_intr_cos(), cob_intr_e(), cob_intr_exp(), cob_intr_log(), cob_intr_log10(), cob_intr_pi(), cob_intr_sin(), and cob_intr_tan().
|
static |
Definition at line 89 of file intrinsic.c.
Referenced by cob_decimal_pow(), cob_exit_intrinsic(), and cob_init_intrinsic().
|
static |
Definition at line 90 of file intrinsic.c.
Referenced by cob_decimal_get_mpf(), cob_exit_intrinsic(), and cob_init_intrinsic().
|
static |
Definition at line 86 of file intrinsic.c.
Referenced by cob_exit_intrinsic(), cob_init_intrinsic(), cob_intr_integer(), and cob_mod_or_rem().
|
static |
Definition at line 93 of file intrinsic.c.
Referenced by cob_exit_intrinsic(), cob_init_intrinsic(), cob_intr_pi(), cob_mpf_acos(), cob_mpf_asin(), cob_mpf_atan(), cob_mpf_cos(), and cob_mpf_sin().
|
static |
Definition at line 359 of file intrinsic.c.
Referenced by cob_init_intrinsic().
|
static |
Definition at line 92 of file intrinsic.c.
Referenced by cob_exit_intrinsic(), cob_init_intrinsic(), and cob_mpf_atan().
|
static |
Definition at line 379 of file intrinsic.c.
Referenced by cob_init_intrinsic().
|
static |
Definition at line 71 of file intrinsic.c.
|
static |
Definition at line 73 of file intrinsic.c.
|
static |
Definition at line 106 of file intrinsic.c.
Referenced by cob_init_intrinsic(), and make_field_entry().
|
static |
Definition at line 105 of file intrinsic.c.
Referenced by cob_intr_abs(), cob_intr_acos(), cob_intr_annuity(), cob_intr_asin(), cob_intr_atan(), cob_intr_binop(), cob_intr_byte_length(), cob_intr_char(), cob_intr_combined_datetime(), cob_intr_concatenate(), cob_intr_cos(), cob_intr_currency_symbol(), cob_intr_current_date(), cob_intr_date_of_integer(), cob_intr_date_to_yyyymmdd(), cob_intr_day_of_integer(), cob_intr_day_to_yyyyddd(), cob_intr_e(), cob_intr_exception_file(), cob_intr_exception_location(), cob_intr_exception_statement(), cob_intr_exception_status(), cob_intr_exp(), cob_intr_exp10(), cob_intr_factorial(), cob_intr_formatted_current_date(), cob_intr_formatted_date(), cob_intr_formatted_datetime(), cob_intr_formatted_time(), cob_intr_fraction_part(), cob_intr_highest_algebraic(), cob_intr_integer(), cob_intr_integer_of_date(), cob_intr_integer_of_day(), cob_intr_integer_part(), cob_intr_lcl_time_from_secs(), cob_intr_length(), cob_intr_locale_compare(), cob_intr_locale_date(), cob_intr_locale_time(), cob_intr_log(), cob_intr_log10(), cob_intr_lower_case(), cob_intr_lowest_algebraic(), cob_intr_max(), cob_intr_mean(), cob_intr_median(), cob_intr_midrange(), cob_intr_min(), cob_intr_module_caller_id(), cob_intr_module_date(), cob_intr_module_formatted_date(), cob_intr_module_id(), cob_intr_module_path(), cob_intr_module_source(), cob_intr_module_time(), cob_intr_mon_decimal_point(), cob_intr_mon_thousands_sep(), cob_intr_num_decimal_point(), cob_intr_num_thousands_sep(), cob_intr_numval_f(), cob_intr_ord(), cob_intr_ord_max(), cob_intr_ord_min(), cob_intr_pi(), cob_intr_present_value(), cob_intr_random(), cob_intr_range(), cob_intr_reverse(), cob_intr_seconds_from_formatted_time(), cob_intr_seconds_past_midnight(), cob_intr_sign(), cob_intr_sin(), cob_intr_sqrt(), cob_intr_standard_deviation(), cob_intr_stored_char_length(), cob_intr_sum(), cob_intr_tan(), cob_intr_test_date_yyyymmdd(), cob_intr_test_day_yyyyddd(), cob_intr_test_numval(), cob_intr_test_numval_c(), cob_intr_test_numval_f(), cob_intr_trim(), cob_intr_upper_case(), cob_intr_variance(), cob_intr_when_compiled(), cob_intr_year_to_yyyy(), cob_mod_or_rem(), cob_put_indirect_field(), cob_switch_value(), numval(), and substitute().
|
static |
Definition at line 79 of file intrinsic.c.
Referenced by cob_intr_combined_datetime(), cob_intr_formatted_datetime(), cob_intr_seconds_from_formatted_time(), and format_current_date().
|
static |
Definition at line 80 of file intrinsic.c.
Referenced by calc_variance_of_args(), cb_build_cond(), cob_cmp_float(), cob_intr_combined_datetime(), cob_intr_formatted_time(), and seconds_from_formatted_time().
|
static |
Definition at line 81 of file intrinsic.c.
Referenced by calc_variance_of_args(), and cob_intr_combined_datetime().
|
static |
Definition at line 82 of file intrinsic.c.
Referenced by calc_variance_of_args().
|
static |
Definition at line 83 of file intrinsic.c.
Referenced by get_fractional_seconds(), and valid_decimal_time().
|
static |
Definition at line 111 of file intrinsic.c.
Referenced by date_of_integer(), and integer_of_date().
|
static |
Definition at line 115 of file intrinsic.c.
Referenced by test_day_of_month(), and valid_day_of_month().
|
static |
Definition at line 77 of file intrinsic.c.
|
static |
Definition at line 109 of file intrinsic.c.
Referenced by date_of_integer(), and integer_of_date().
|
static |
Definition at line 113 of file intrinsic.c.
Referenced by test_day_of_month(), and valid_day_of_month().