26 #define cob_s8_t signed char
27 #define cob_u8_t unsigned char
28 #define cob_s16_t short
29 #define cob_u16_t unsigned short
31 #define cob_u32_t unsigned int
32 #define cob_sli_t long int
33 #define cob_uli_t unsigned long int
35 #if defined(_WIN32) && !defined(__MINGW32__) && !defined(__MINGW64__)
37 #define cob_s64_t __int64
38 #define cob_u64_t unsigned __int64
40 #define COB_S64_C(x) x ## I64
41 #define COB_U64_C(x) x ## UI64
42 #define CB_FMT_LLD "%I64d"
43 #define CB_FMT_LLU "%I64u"
44 #define CB_FMT_PLLD "%+*.*I64d"
45 #define CB_FMT_PLLU "%*.*I64u"
46 #define CB_FMT_LLD_F "%I64dI64"
47 #define CB_FMT_LLU_F "%I64uUI64"
51 #define cob_s64_t long long
52 #define cob_u64_t unsigned long long
54 #define COB_S64_C(x) x ## LL
55 #define COB_U64_C(x) x ## ULL
56 #define CB_FMT_LLD "%lld"
57 #define CB_FMT_LLU "%llu"
58 #define CB_FMT_PLLD "%+*.*lld"
59 #define CB_FMT_PLLU "%*.*llu"
60 #define CB_FMT_LLD_F "%lldLL"
61 #define CB_FMT_LLU_F "%lluULL"
65 #define cob_c8_ptr cob_c8_t *
66 #define cob_u8_ptr cob_u8_t *
67 #define cob_s8_ptr cob_s8_t *
68 #define cob_u16_ptr cob_u16_t *
69 #define cob_s16_ptr cob_s16_t *
70 #define cob_u32_ptr cob_u32_t *
71 #define cob_s32_ptr cob_s32_t *
72 #define cob_u64_ptr cob_u64_t *
73 #define cob_s64_ptr cob_s64_t *
75 #define cob_void_ptr void *
76 #define cob_field_ptr cob_field *
77 #define cob_file_ptr cob_file *
78 #define cob_module_ptr cob_module *
79 #define cob_screen_ptr cob_screen *
80 #define cob_file_key_ptr cob_file_key *
86 #define COB_USE_VC2005_OR_GREATER 1
88 #define COB_USE_VC2005_OR_GREATER 0
92 #define COB_USE_VC2008_OR_GREATER 1
94 #define COB_USE_VC2008_OR_GREATER 0
98 #define COB_USE_VC2013_OR_GREATER 1
100 #define COB_USE_VC2013_OR_GREATER 0
114 #undef COB_BSWAP_16_CONSTANT
115 #undef COB_BSWAP_32_CONSTANT
116 #undef COB_BSWAP_64_CONSTANT
121 #define COB_BSWAP_16_CONSTANT(val) ((cob_u16_t) ( \
122 (((cob_u16_t)(val) & (cob_u16_t) 0x00FFU) << 8) | \
123 (((cob_u16_t)(val) & (cob_u16_t) 0xFF00U) >> 8)))
125 #define COB_BSWAP_32_CONSTANT(val) ((cob_u32_t) ( \
126 (((cob_u32_t) (val) & (cob_u32_t) 0x000000FFU) << 24) | \
127 (((cob_u32_t) (val) & (cob_u32_t) 0x0000FF00U) << 8) | \
128 (((cob_u32_t) (val) & (cob_u32_t) 0x00FF0000U) >> 8) | \
129 (((cob_u32_t) (val) & (cob_u32_t) 0xFF000000U) >> 24)))
131 #define COB_BSWAP_64_CONSTANT(val) ((cob_u64_t) ( \
132 (((cob_u64_t) (val) & \
133 (cob_u64_t) COB_U64_C(0x00000000000000FF)) << 56) | \
134 (((cob_u64_t) (val) & \
135 (cob_u64_t) COB_U64_C(0x000000000000FF00)) << 40) | \
136 (((cob_u64_t) (val) & \
137 (cob_u64_t) COB_U64_C(0x0000000000FF0000)) << 24) | \
138 (((cob_u64_t) (val) & \
139 (cob_u64_t) COB_U64_C(0x00000000FF000000)) << 8) | \
140 (((cob_u64_t) (val) & \
141 (cob_u64_t) COB_U64_C(0x000000FF00000000)) >> 8) | \
142 (((cob_u64_t) (val) & \
143 (cob_u64_t) COB_U64_C(0x0000FF0000000000)) >> 24) | \
144 (((cob_u64_t) (val) & \
145 (cob_u64_t) COB_U64_C(0x00FF000000000000)) >> 40) | \
146 (((cob_u64_t) (val) & \
147 (cob_u64_t) COB_U64_C(0xFF00000000000000)) >> 56)))
153 #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
155 #define COB_BSWAP_16(val) (COB_BSWAP_16_CONSTANT (val))
156 #define COB_BSWAP_32(val) (__builtin_bswap32 (val))
157 #define COB_BSWAP_64(val) (__builtin_bswap64 (val))
159 #elif defined(__i386__)
161 #define COB_BSWAP_16(val) (COB_BSWAP_16_CONSTANT (val))
162 #define COB_BSWAP_32(val) \
164 ({ register cob_u32_t __v, \
165 __x = ((cob_u32_t) (val)); \
166 if (__builtin_constant_p (__x)) \
167 __v = COB_BSWAP_32_CONSTANT (__x); \
169 __asm__ ("bswap %0" \
173 #define COB_BSWAP_64(val) \
175 ({ union { cob_u64_t __ll; \
176 cob_u32_t __l[2]; } __w, __r; \
177 __w.__ll = ((cob_u64_t) (val)); \
178 if (__builtin_constant_p (__w.__ll)) \
179 __r.__ll = COB_BSWAP_64_CONSTANT (__w.__ll); \
182 __r.__l[0] = COB_BSWAP_32 (__w.__l[1]); \
183 __r.__l[1] = COB_BSWAP_32 (__w.__l[0]); \
187 #elif defined (__ia64__)
189 #define COB_BSWAP_16(val) (COB_BSWAP_16_CONSTANT (val))
190 #define COB_BSWAP_32(val) \
192 ({ register cob_u32_t __v, \
193 __x = ((cob_u32_t) (val)); \
194 if (__builtin_constant_p (__x)) \
195 __v = COB_BSWAP_32_CONSTANT (__x); \
197 __asm__ __volatile__ ("shl %0 = %1, 32 ;;" \
198 "mux1 %0 = %0, @rev ;;" \
202 #define COB_BSWAP_64(val) \
204 ({ register cob_u64_t __v, \
205 __x = ((cob_u64_t) (val)); \
206 if (__builtin_constant_p (__x)) \
207 __v = COB_BSWAP_64_CONSTANT (__x); \
209 __asm__ __volatile__ ("mux1 %0 = %1, @rev ;;" \
214 #elif defined (__x86_64__)
216 #define COB_BSWAP_16(val) (COB_BSWAP_16_CONSTANT (val))
217 #define COB_BSWAP_32(val) \
219 ({ register cob_u32_t __v, \
220 __x = ((cob_u32_t) (val)); \
221 if (__builtin_constant_p (__x)) \
222 __v = COB_BSWAP_32_CONSTANT (__x); \
224 __asm__ ("bswapl %0" \
228 #define COB_BSWAP_64(val) \
230 ({ register cob_u64_t __v, \
231 __x = ((cob_u64_t) (val)); \
232 if (__builtin_constant_p (__x)) \
233 __v = COB_BSWAP_64_CONSTANT (__x); \
235 __asm__ ("bswapq %0" \
242 #define COB_BSWAP_16(val) (COB_BSWAP_16_CONSTANT (val))
243 #define COB_BSWAP_32(val) (COB_BSWAP_32_CONSTANT (val))
244 #define COB_BSWAP_64(val) (COB_BSWAP_64_CONSTANT (val))
248 #elif defined(_MSC_VER) && COB_USE_VC2005_OR_GREATER
250 #define COB_BSWAP_16(val) (_byteswap_ushort (val))
251 #define COB_BSWAP_32(val) (_byteswap_ulong (val))
252 #define COB_BSWAP_64(val) (_byteswap_uint64 (val))
256 #define COB_BSWAP_16(val) (COB_BSWAP_16_CONSTANT (val))
257 #define COB_BSWAP_32(val) (COB_BSWAP_32_CONSTANT (val))
258 #define COB_BSWAP_64(val) (COB_BSWAP_64_CONSTANT (val))
268 #ifndef _CRT_SECURE_NO_DEPRECATE
269 #define _CRT_SECURE_NO_DEPRECATE 1
277 #pragma warning(disable: 4996)
279 #pragma warning(disable: 4255)
281 #define strncasecmp _strnicmp
282 #define strcasecmp _stricmp
283 #define snprintf _snprintf
284 #define getpid _getpid
285 #define access _access
286 #if defined COB_USE_VC2005_OR_GREATER
288 #define setenv(name,value,overwrite) _putenv_s(name,value)
289 #define unsetenv(name) _putenv_s(name,"")
291 #if defined COB_USE_VC2013_OR_GREATER
292 #define timezone _timezone
295 #define __attribute__(x)
300 #define S_ISDIR(x) (((x) & _S_IFMT) == _S_IFDIR)
305 #define S_ISREG(x) (((x) & _S_IFMT) == _S_IFREG)
320 #define _ftime(a) ftime(a)
321 #define strncasecmp strnicmp
322 #define strcasecmp stricmp
323 #define _setmode setmode
329 #if (defined(_WIN32) || defined(__CYGWIN__)) && !defined(__clang__)
330 #ifdef COB_LIB_EXPIMP
331 #define COB_EXPIMP __declspec(dllexport) extern
333 #define COB_EXPIMP __declspec(dllimport) extern
336 #define COB_EXPIMP extern
339 #if defined(__370__) || defined(_MSC_VER) || defined(__DECC) || \
340 defined(__BORLANDC__) || defined(__WATCOMC__)
341 #define COB_INLINE __inline
342 #elif defined(__INTEL_COMPILER)
344 #define COB_INLINE inline
345 #elif defined(__GNUC__)
347 #define COB_INLINE __inline__
348 #elif defined(__STDC_VERSION__) && __STDC_VERSION__ > 199900L
350 #define COB_INLINE inline
351 #elif defined(COB_KEYWORD_INLINE)
352 #define COB_INLINE COB_KEYWORD_INLINE
359 #if defined(__GNUC__) || (defined(__xlc__) && __IBMC__ >= 700)
360 #define COB_A_NORETURN __attribute__((noreturn))
361 #define COB_A_FORMAT12 __attribute__((format(printf, 1, 2)))
362 #define COB_A_FORMAT23 __attribute__((format(printf, 2, 3)))
363 #define COB_A_FORMAT34 __attribute__((format(printf, 3, 4)))
364 #define COB_A_FORMAT45 __attribute__((format(printf, 4, 5)))
366 #define COB_A_NORETURN
367 #define COB_A_FORMAT12
368 #define COB_A_FORMAT23
369 #define COB_A_FORMAT34
370 #define COB_A_FORMAT45
374 #define DECLNORET __declspec(noreturn)
379 #if defined(__GNUC__)
380 #define optim_memcpy(x,y,z) __builtin_memcpy (x, y, z)
382 #define optim_memcpy(x,y,z) memcpy (x, y, z)
385 #if defined(__GNUC__) && (__GNUC__ >= 3)
386 #define likely(x) __builtin_expect((long int)!!(x), 1L)
387 #define unlikely(x) __builtin_expect((long int)!!(x), 0L)
388 #define COB_A_MALLOC __attribute__((malloc))
389 #define COB_HAVE_STEXPR 1
391 #if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)
392 #define COB_NOINLINE __attribute__((noinline))
393 #define COB_A_INLINE __attribute__((always_inline))
399 #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
400 #define COB_A_COLD __attribute__((cold))
405 #elif defined(__xlc__) && __IBMC__ >= 700
408 #define likely(x) __builtin_expect((long int)!!(x), 1L)
409 #define unlikely(x) __builtin_expect((long int)!!(x), 0L)
411 #define likely(x) (x)
412 #define unlikely(x) (x)
414 #define COB_NOINLINE __attribute__((noinline))
415 #define COB_A_INLINE __attribute__((always_inline))
419 #define COB_HAVE_STEXPR 1
421 #undef COB_HAVE_STEXPR
424 #elif defined(__SUNPRO_C) && __SUNPRO_C >= 0x590
426 #define likely(x) (x)
427 #define unlikely(x) (x)
428 #define COB_A_MALLOC __attribute__((malloc))
429 #define COB_NOINLINE __attribute__((noinline))
430 #define COB_A_INLINE __attribute__((always_inline))
432 #define COB_HAVE_STEXPR 1
436 #define likely(x) (x)
437 #define unlikely(x) (x)
442 #undef COB_HAVE_STEXPR
447 #ifdef __INTEL_COMPILER
450 #pragma warning ( disable : 111 )
452 #pragma warning ( disable : 177 )
454 #pragma warning ( disable : 181 )
456 #pragma warning ( disable : 188 )
458 #pragma warning ( disable : 193 )
460 #pragma warning ( disable : 593 )
462 #pragma warning ( disable : 869 )
464 #pragma warning ( disable : 981 )
467 #pragma warning ( disable : 1011 )
469 #pragma warning ( disable : 1419 )
471 #pragma warning ( disable : 1599 )
472 #pragma warning ( disable : 1944 )
474 #pragma warning ( disable : 2259 )
478 #if !defined(__i386__) && !defined(__x86_64__) && !defined(__powerpc__) && !defined(__powerpc64__) && !defined(__ppc__) && !defined(__amd64__)
479 #define COB_NON_ALIGNED
482 #define COB_SHORT_BORK
484 #if defined(_MSC_VER)
485 #define COB_ALLOW_UNALIGNED
490 #define COB_ALLOW_UNALIGNED
496 #if defined(_MSC_VER) || defined(__WATCOMC__) || defined(__BORLANDC__)
497 #define PATHSEP_CHAR (char) ';'
498 #define PATHSEP_STR (char *) ";"
500 #define PATHSEP_CHAR (char) ':'
501 #define PATHSEP_STR (char *) ":"
505 #define SLASH_CHAR (char) '/'
506 #define SLASH_STR (char *) "/"
508 #define SLASH_CHAR (char) '\\'
509 #define SLASH_STR (char *) "\\"
517 #define COB_EBCDIC_MACHINE
519 #undef COB_EBCDIC_MACHINE
523 #if defined (_MSC_VER) && _MSC_VER >= 1500
525 __pragma( warning(push) ) \
526 __pragma( warning(disable:4127) ) \
528 __pragma( warning(pop) )
530 #define ONCE_COB while (0)
535 #define COB_UNUSED(z) do { (void)(z); } ONCE_COB
539 #define COB_MINI_BUFF 256
540 #define COB_SMALL_BUFF 1024
541 #define COB_NORMAL_BUFF 2048
542 #define COB_FILE_BUFF 4096
543 #define COB_MEDIUM_BUFF 8192
544 #define COB_LARGE_BUFF 16384
545 #define COB_MINI_MAX (COB_MINI_BUFF - 1)
546 #define COB_SMALL_MAX (COB_SMALL_BUFF - 1)
547 #define COB_NORMAL_MAX (COB_NORMAL_BUFF - 1)
548 #define COB_FILE_MAX (COB_FILE_BUFF - 1)
549 #define COB_MEDIUM_MAX (COB_MEDIUM_BUFF - 1)
550 #define COB_LARGE_MAX (COB_LARGE_BUFF - 1)
553 #define COB_STACK_SIZE 255
556 #define MAX_FD_RECORD 65535
559 #define COB_MAX_FIELD_PARAMS 36
562 #define COB_MAX_DIGITS 38
565 #define COB_MAX_BINARY 39
568 #define COB_MAX_FIELD_SIZE 268435456
571 #define COB_MAX_DEC_STRUCT 32
574 #define COB_MAX_WORDLEN 61
577 #define COB_SORT_MEMORY 128 * 1024 * 1024
578 #define COB_SORT_CHUNK 256 * 1024
581 #define COB_RET_TYPE_INT 0
582 #define COB_RET_TYPE_PTR 1
583 #define COB_RET_TYPE_VOID 2
586 #define COB_FOLD_UPPER 1
587 #define COB_FOLD_LOWER 2
590 #define COB_LC_COLLATE 0
591 #define COB_LC_CTYPE 1
592 #define COB_LC_MESSAGES 2
593 #define COB_LC_MONETARY 3
594 #define COB_LC_NUMERIC 4
595 #define COB_LC_TIME 5
597 #define COB_LC_USER 7
598 #define COB_LC_CLASS 8
602 #define COB_TYPE_UNKNOWN 0x00
603 #define COB_TYPE_GROUP 0x01U
604 #define COB_TYPE_BOOLEAN 0x02U
606 #define COB_TYPE_NUMERIC 0x10U
607 #define COB_TYPE_NUMERIC_DISPLAY 0x10U
608 #define COB_TYPE_NUMERIC_BINARY 0x11U
609 #define COB_TYPE_NUMERIC_PACKED 0x12U
610 #define COB_TYPE_NUMERIC_FLOAT 0x13U
611 #define COB_TYPE_NUMERIC_DOUBLE 0x14U
612 #define COB_TYPE_NUMERIC_L_DOUBLE 0x15U
613 #define COB_TYPE_NUMERIC_FP_DEC64 0x16U
614 #define COB_TYPE_NUMERIC_FP_DEC128 0x17U
615 #define COB_TYPE_NUMERIC_FP_BIN32 0x18U
616 #define COB_TYPE_NUMERIC_FP_BIN64 0x19U
617 #define COB_TYPE_NUMERIC_FP_BIN128 0x1AU
619 #define COB_TYPE_NUMERIC_EDITED 0x24U
621 #define COB_TYPE_ALPHANUMERIC 0x21U
622 #define COB_TYPE_ALPHANUMERIC_ALL 0x22U
623 #define COB_TYPE_ALPHANUMERIC_EDITED 0x23U
625 #define COB_TYPE_NATIONAL 0x40U
626 #define COB_TYPE_NATIONAL_EDITED 0x41U
630 #define COB_FLAG_HAVE_SIGN (1U << 0)
631 #define COB_FLAG_SIGN_SEPARATE (1U << 1)
632 #define COB_FLAG_SIGN_LEADING (1U << 2)
633 #define COB_FLAG_BLANK_ZERO (1U << 3)
634 #define COB_FLAG_JUSTIFIED (1U << 4)
635 #define COB_FLAG_BINARY_SWAP (1U << 5)
636 #define COB_FLAG_REAL_BINARY (1U << 6)
637 #define COB_FLAG_IS_POINTER (1U << 7)
638 #define COB_FLAG_NO_SIGN_NIBBLE (1U << 8)
639 #define COB_FLAG_IS_FP (1U << 9)
640 #define COB_FLAG_REAL_SIGN (1U << 10)
641 #define COB_FLAG_BINARY_TRUNC (1U << 11)
643 #define COB_FIELD_HAVE_SIGN(f) ((f)->attr->flags & COB_FLAG_HAVE_SIGN)
644 #define COB_FIELD_SIGN_SEPARATE(f) ((f)->attr->flags & COB_FLAG_SIGN_SEPARATE)
645 #define COB_FIELD_SIGN_LEADING(f) ((f)->attr->flags & COB_FLAG_SIGN_LEADING)
646 #define COB_FIELD_BLANK_ZERO(f) ((f)->attr->flags & COB_FLAG_BLANK_ZERO)
647 #define COB_FIELD_JUSTIFIED(f) ((f)->attr->flags & COB_FLAG_JUSTIFIED)
648 #define COB_FIELD_BINARY_SWAP(f) ((f)->attr->flags & COB_FLAG_BINARY_SWAP)
649 #define COB_FIELD_REAL_BINARY(f) ((f)->attr->flags & COB_FLAG_REAL_BINARY)
650 #define COB_FIELD_IS_POINTER(f) ((f)->attr->flags & COB_FLAG_IS_POINTER)
651 #define COB_FIELD_NO_SIGN_NIBBLE(f) ((f)->attr->flags & COB_FLAG_NO_SIGN_NIBBLE)
652 #define COB_FIELD_IS_FP(f) ((f)->attr->flags & COB_FLAG_IS_FP)
653 #define COB_FIELD_REAL_SIGN(f) ((f)->attr->flags & COB_FLAG_REAL_SIGN)
654 #define COB_FIELD_BINARY_TRUNC(f) ((f)->attr->flags & COB_FLAG_BINARY_TRUNC)
656 #define COB_FLAG_LEADSEP \
657 (COB_FLAG_SIGN_SEPARATE | COB_FLAG_SIGN_LEADING)
659 #define COB_FIELD_SIGN_LEADSEP(f) \
660 (((f)->attr->flags & COB_FLAG_LEADSEP) == COB_FLAG_LEADSEP)
662 #define COB_FIELD_TYPE(f) ((f)->attr->type)
663 #define COB_FIELD_DIGITS(f) ((f)->attr->digits)
664 #define COB_FIELD_SCALE(f) ((f)->attr->scale)
665 #define COB_FIELD_FLAGS(f) ((f)->attr->flags)
666 #define COB_FIELD_PIC(f) ((f)->attr->pic)
668 #define COB_FIELD_DATA(f) \
669 ((f)->data + (COB_FIELD_SIGN_LEADSEP (f) ? 1 : 0))
671 #define COB_FIELD_SIZE(f) \
672 (COB_FIELD_SIGN_SEPARATE (f) ? f->size - 1 : f->size)
674 #define COB_FIELD_IS_NUMERIC(f) (COB_FIELD_TYPE (f) & COB_TYPE_NUMERIC)
675 #define COB_FIELD_IS_NUMDISP(f) (COB_FIELD_TYPE (f) == COB_TYPE_NUMERIC_DISPLAY)
676 #define COB_FIELD_IS_ALNUM(f) (COB_FIELD_TYPE (f) == COB_TYPE_ALPHANUMERIC)
677 #define COB_FIELD_IS_NATIONAL(f) (COB_FIELD_TYPE (f) & COB_TYPE_NATIONAL)
680 #define COB_DISPLAY_SIGN_ASCII 0
681 #define COB_DISPLAY_SIGN_EBCDIC 1
683 #define COB_NATIONAL_SIZE 2
685 #define COB_SET_FLD(v,x,y,z) (v.size = x, v.data = y, v.attr = z, &v)
686 #define COB_SET_DATA(x,z) (x.data = z, &x)
690 #define COB_FERROR_NONE 0
691 #define COB_FERROR_CANCEL 1
692 #define COB_FERROR_INITIALIZED 2
693 #define COB_FERROR_CODEGEN 3
694 #define COB_FERROR_CHAINING 4
695 #define COB_FERROR_STACK 5
696 #define COB_FERROR_GLOBAL 6
697 #define COB_FERROR_MEMORY 7
698 #define COB_FERROR_MODULE 8
699 #define COB_FERROR_RECURSIVE 9
700 #define COB_FERROR_SCR_INP 10
701 #define COB_FERROR_FILE 11
702 #define COB_FERROR_FUNCTION 12
703 #define COB_FERROR_FREE 13
708 #define COB_EXCEPTION(code,tag,name,critical) tag,
722 #define COB_FILE_VERSION 1
735 #define COB_ASCENDING 0
736 #define COB_DESCENDING 1
738 #define COB_FILE_MODE 0666
742 #define COB_ORG_SEQUENTIAL 0
743 #define COB_ORG_LINE_SEQUENTIAL 1
744 #define COB_ORG_RELATIVE 2
745 #define COB_ORG_INDEXED 3
746 #define COB_ORG_SORT 4
747 #define COB_ORG_MAX 5
751 #define COB_ACCESS_SEQUENTIAL 1
752 #define COB_ACCESS_DYNAMIC 2
753 #define COB_ACCESS_RANDOM 3
757 #define COB_SELECT_FILE_STATUS (1U << 0)
758 #define COB_SELECT_EXTERNAL (1U << 1)
759 #define COB_SELECT_LINAGE (1U << 2)
760 #define COB_SELECT_SPLITKEY (1U << 3)
761 #define COB_SELECT_STDIN (1U << 4)
762 #define COB_SELECT_STDOUT (1U << 5)
763 #define COB_SELECT_TEMPORARY (1U << 6)
765 #define COB_FILE_SPECIAL(x) \
766 ((x)->flag_select_features & (COB_SELECT_STDIN | COB_SELECT_STDOUT))
767 #define COB_FILE_STDIN(x) ((x)->flag_select_features & COB_SELECT_STDIN)
768 #define COB_FILE_STDOUT(x) ((x)->flag_select_features & COB_SELECT_STDOUT)
769 #define COB_FILE_TEMPORARY(x) ((x)->flag_select_features & COB_SELECT_TEMPORARY)
773 #define COB_LOCK_EXCLUSIVE (1U << 0)
774 #define COB_LOCK_MANUAL (1U << 1)
775 #define COB_LOCK_AUTOMATIC (1U << 2)
776 #define COB_LOCK_MULTIPLE (1U << 3)
777 #define COB_LOCK_OPEN_EXCLUSIVE (1U << 4)
779 #define COB_FILE_EXCLUSIVE (COB_LOCK_EXCLUSIVE | COB_LOCK_OPEN_EXCLUSIVE)
783 #define COB_OPEN_CLOSED 0
784 #define COB_OPEN_INPUT 1
785 #define COB_OPEN_OUTPUT 2
786 #define COB_OPEN_I_O 3
787 #define COB_OPEN_EXTEND 4
788 #define COB_OPEN_LOCKED 5
792 #define COB_CLOSE_NORMAL 0
793 #define COB_CLOSE_LOCK 1
794 #define COB_CLOSE_NO_REWIND 2
795 #define COB_CLOSE_UNIT 3
796 #define COB_CLOSE_UNIT_REMOVAL 4
800 #define COB_WRITE_MASK 0x0000FFFF
802 #define COB_WRITE_LINES 0x00010000
803 #define COB_WRITE_PAGE 0x00020000
804 #define COB_WRITE_CHANNEL 0x00040000
805 #define COB_WRITE_AFTER 0x00100000
806 #define COB_WRITE_BEFORE 0x00200000
807 #define COB_WRITE_EOP 0x00400000
808 #define COB_WRITE_LOCK 0x00800000
809 #define COB_WRITE_NO_LOCK 0x01000000
813 #define COB_READ_NEXT (1 << 0)
814 #define COB_READ_PREVIOUS (1 << 1)
815 #define COB_READ_FIRST (1 << 2)
816 #define COB_READ_LAST (1 << 3)
817 #define COB_READ_LOCK (1 << 4)
818 #define COB_READ_NO_LOCK (1 << 5)
819 #define COB_READ_KEPT_LOCK (1 << 6)
820 #define COB_READ_WAIT_LOCK (1 << 7)
821 #define COB_READ_IGNORE_LOCK (1 << 8)
823 #define COB_READ_MASK \
824 (COB_READ_NEXT | COB_READ_PREVIOUS | COB_READ_FIRST | COB_READ_LAST)
828 #define COB_STATUS_00_SUCCESS 00
829 #define COB_STATUS_02_SUCCESS_DUPLICATE 02
830 #define COB_STATUS_04_SUCCESS_INCOMPLETE 04
831 #define COB_STATUS_05_SUCCESS_OPTIONAL 05
832 #define COB_STATUS_07_SUCCESS_NO_UNIT 07
833 #define COB_STATUS_10_END_OF_FILE 10
834 #define COB_STATUS_14_OUT_OF_KEY_RANGE 14
835 #define COB_STATUS_21_KEY_INVALID 21
836 #define COB_STATUS_22_KEY_EXISTS 22
837 #define COB_STATUS_23_KEY_NOT_EXISTS 23
838 #define COB_STATUS_24_KEY_BOUNDARY 24
839 #define COB_STATUS_30_PERMANENT_ERROR 30
840 #define COB_STATUS_31_INCONSISTENT_FILENAME 31
841 #define COB_STATUS_34_BOUNDARY_VIOLATION 34
842 #define COB_STATUS_35_NOT_EXISTS 35
843 #define COB_STATUS_37_PERMISSION_DENIED 37
844 #define COB_STATUS_38_CLOSED_WITH_LOCK 38
845 #define COB_STATUS_39_CONFLICT_ATTRIBUTE 39
846 #define COB_STATUS_41_ALREADY_OPEN 41
847 #define COB_STATUS_42_NOT_OPEN 42
848 #define COB_STATUS_43_READ_NOT_DONE 43
849 #define COB_STATUS_44_RECORD_OVERFLOW 44
850 #define COB_STATUS_46_READ_ERROR 46
851 #define COB_STATUS_47_INPUT_DENIED 47
852 #define COB_STATUS_48_OUTPUT_DENIED 48
853 #define COB_STATUS_49_I_O_DENIED 49
854 #define COB_STATUS_51_RECORD_LOCKED 51
855 #define COB_STATUS_57_I_O_LINAGE 57
856 #define COB_STATUS_61_FILE_SHARING 61
857 #define COB_STATUS_91_NOT_AVAILABLE 91
861 #define COB_NOT_CONFIGURED 32768
867 #define COB_STORE_ROUND (1 << 0)
868 #define COB_STORE_KEEP_ON_OVERFLOW (1 << 1)
869 #define COB_STORE_TRUNC_ON_OVERFLOW (1 << 2)
871 #define COB_STORE_AWAY_FROM_ZERO (1 << 4)
872 #define COB_STORE_NEAR_AWAY_FROM_ZERO (1 << 5)
873 #define COB_STORE_NEAR_EVEN (1 << 6)
874 #define COB_STORE_NEAR_TOWARD_ZERO (1 << 7)
875 #define COB_STORE_PROHIBITED (1 << 8)
876 #define COB_STORE_TOWARD_GREATER (1 << 9)
877 #define COB_STORE_TOWARD_LESSER (1 << 10)
878 #define COB_STORE_TRUNCATION (1 << 11)
880 #define COB_STORE_MASK \
881 (COB_STORE_ROUND | COB_STORE_KEEP_ON_OVERFLOW | \
882 COB_STORE_TRUNC_ON_OVERFLOW)
886 #define COB_SCREEN_BLACK 0
887 #define COB_SCREEN_BLUE 1
888 #define COB_SCREEN_GREEN 2
889 #define COB_SCREEN_CYAN 3
890 #define COB_SCREEN_RED 4
891 #define COB_SCREEN_MAGENTA 5
892 #define COB_SCREEN_YELLOW 6
893 #define COB_SCREEN_WHITE 7
895 #define COB_SCREEN_LINE_PLUS (1 << 0)
896 #define COB_SCREEN_LINE_MINUS (1 << 1)
897 #define COB_SCREEN_COLUMN_PLUS (1 << 2)
898 #define COB_SCREEN_COLUMN_MINUS (1 << 3)
899 #define COB_SCREEN_AUTO (1 << 4)
900 #define COB_SCREEN_BELL (1 << 5)
901 #define COB_SCREEN_BLANK_LINE (1 << 6)
902 #define COB_SCREEN_BLANK_SCREEN (1 << 7)
903 #define COB_SCREEN_BLINK (1 << 8)
904 #define COB_SCREEN_ERASE_EOL (1 << 9)
905 #define COB_SCREEN_ERASE_EOS (1 << 10)
906 #define COB_SCREEN_FULL (1 << 11)
907 #define COB_SCREEN_HIGHLIGHT (1 << 12)
908 #define COB_SCREEN_LOWLIGHT (1 << 13)
909 #define COB_SCREEN_REQUIRED (1 << 14)
910 #define COB_SCREEN_REVERSE (1 << 15)
911 #define COB_SCREEN_SECURE (1 << 16)
912 #define COB_SCREEN_UNDERLINE (1 << 17)
913 #define COB_SCREEN_OVERLINE (1 << 18)
914 #define COB_SCREEN_PROMPT (1 << 19)
915 #define COB_SCREEN_UPDATE (1 << 20)
916 #define COB_SCREEN_INPUT (1 << 21)
917 #define COB_SCREEN_SCROLL_DOWN (1 << 22)
918 #define COB_SCREEN_INITIAL (1 << 23)
919 #define COB_SCREEN_NO_ECHO (1 << 24)
920 #define COB_SCREEN_LEFTLINE (1 << 25)
921 #define COB_SCREEN_NO_DISP (1 << 26)
922 #define COB_SCREEN_EMULATE_NL (1 << 27)
923 #define COB_SCREEN_UPPER (1 << 28)
924 #define COB_SCREEN_LOWER (1 << 29)
925 #define COB_SCREEN_GRID (1 << 30)
927 #define COB_SCREEN_TYPE_GROUP 0
928 #define COB_SCREEN_TYPE_FIELD 1
929 #define COB_SCREEN_TYPE_VALUE 2
930 #define COB_SCREEN_TYPE_ATTRIBUTE 3
944 unsigned short flags;
961 const unsigned char *data;
969 const cob_const_field cf;
999 unsigned char data[8];
1013 void *(__stdcall *funcptr_std)();
1014 void (__stdcall *funcnull_std)();
1016 int (__stdcall *funcint_std)();
1113 unsigned char *file_status;
1130 unsigned char open_mode;
1134 unsigned char flag_nonexistent;
1138 unsigned char flag_first_read;
1142 unsigned char flag_needs_top;
1166 const char *report_name;
1175 int def_last_detail;
1312 cob_field *, cob_field *);
1324 #define cobgetenv(x) cob_getenv (x)
1325 #define cobputenv(x) cob_putenv (x)
1326 #define cobtidy() cob_tidy ()
1327 #define cobinit() cob_extern_init ()
1328 #define cobexit(x) cob_stop_run (x)
1329 #define cobcommandline(v,w,x,y,z) cob_command_line (v,w,x,y,z)
1377 const char *,
const char *,
1412 const unsigned int);
1422 const char *,
const int);
1424 const int,
const char *);
1426 const int,
const char *);
1428 const int,
const char *);
1488 cob_field *,
const int);
1525 const struct cob_call_struct *);
1533 #define cobsetjmp(x) setjmp (cob_savenv (x))
1534 #define coblongjmp(x) cob_longjmp (x)
1535 #define cobsavenv(x) cob_savenv (x)
1536 #define cobsavenv2(x,z) cob_savenv2 (x, z)
1537 #define cobfunc(x,y,z) cob_func (x, y, z)
1538 #define cobcall(x,y,z) cob_call (x, y, z)
1539 #define cobcancel(x) cob_cancel (x)
1548 cob_field *, cob_field *);
1550 cob_field *, cob_field *, cob_field *,
1551 cob_field *,
const int);
1553 cob_field *, cob_field *, cob_field *,
1554 cob_field *, cob_field *, cob_field *,
1578 cob_field *, cob_field *);
1580 cob_field *,
const unsigned int);
1589 unsigned char *,
unsigned char *,
1592 unsigned char *,
unsigned char *,
1595 unsigned char *,
unsigned char *,
1598 unsigned char *,
unsigned char *,
1619 const unsigned char *,
1620 void *, cob_field *);
1622 const int,
const unsigned int);
1640 const int,
const int);
1708 cob_field *,
const int);
1741 cob_field *, cob_field *);
1743 cob_field *, cob_field *);
1747 cob_field *, cob_field *);
1761 cob_field *, cob_field *);
int cob_sys_create_file(unsigned char *, unsigned char *, unsigned char *, unsigned char *, unsigned char *)
cob_field * cob_intr_mon_thousands_sep(void)
cob_field * cob_intr_acos(cob_field *)
char * cob_locale_monetary
cob_global * cob_get_global_ptr(void)
cob_field * cob_intr_exp(cob_field *)
cob_field * cob_intr_exception_location(void)
cob_field * cob_intr_exception_file_n(void)
unsigned int cob_orig_line
struct __cob_global cob_global
int cob_sys_file_info(unsigned char *, unsigned char *)
void cob_set_environment(const cob_field *, const cob_field *)
char return_value_pointer[sizeof(char *)]
void cob_temp_name(char *, const char *)
void cob_accept_escape_key(cob_field *)
int cob_sys_hosted(void *, const void *)
Return some hosted C variables, argc, argv, stdin, stdout, stderr.
cob_field * cob_intr_test_date_yyyymmdd(cob_field *)
int cob_sys_create_dir(unsigned char *)
cob_field * cob_intr_numval_f(cob_field *)
void cob_decimal_init(cob_decimal *)
char * cob_locale_numeric
cob_field * cob_intr_cos(cob_field *)
cob_file * cob_error_file
int cob_is_lower(const cob_field *)
void cob_decimal_mul(cob_decimal *, cob_decimal *)
void cob_add(cob_field *, cob_field *, const int)
void cob_reg_sighnd(void(*sighnd)(int))
int cob_sys_sound_bell(void)
void cob_string_delimited(cob_field *)
void cob_unlock_file(cob_file *, cob_field *)
void cob_div_remainder(cob_field *, const int)
char * cob_getenv(const char *)
int cob_add_int(cob_field *, const int, const int)
int cob_sys_flush_file(unsigned char *)
unsigned char organization
unsigned char flag_exit_program
unsigned int module_active
cob_field * cob_intr_test_numval_f(cob_field *)
int cob_sys_write_file(unsigned char *, unsigned char *, unsigned char *, unsigned char *, unsigned char *)
cob_field * cob_intr_standard_deviation(const int,...)
cob_field * cob_intr_num_thousands_sep(void)
cob_field * cob_intr_e(void)
cob_field * cob_intr_module_path(void)
void * cob_resolve_cobol(const char *, const int, const int)
int cob_sys_xf4(void *, const void *)
int cob_sys_nor(const void *, void *, const int)
int cob_call(const char *, const int, void **)
int cob_sys_parameter_size(void *)
void cob_move(cob_field *, cob_field *)
void cob_file_sort_close(cob_file *)
cob_field * cob_intr_module_time(void)
void cob_check_version(const char *, const char *, const int)
int cob_sys_change_dir(unsigned char *)
unsigned char flag_fold_call
void cob_display_command_line(cob_field *)
void cob_call_error(void)
int cob_sys_error_proc(const void *, const void *)
cob_field * cob_intr_min(const int,...)
int cob_sys_xf5(const void *, void *)
void cob_inspect_init(cob_field *, const unsigned int)
cob_field * cob_intr_pi(void)
cob_field * cob_intr_combined_datetime(cob_field *, cob_field *)
void cob_table_sort_init(const size_t, const unsigned char *)
int(* rewrite)(cob_file *, const int)
char * cob_strcat(char *, char *)
cob_field * cob_intr_range(const int,...)
int(* read)(cob_file *, cob_field *, const int)
void cob_accept_exception_status(cob_field *)
void cob_decimal_push(const unsigned int,...)
int cob_sys_clear_screen(void)
void cob_correct_numeric(cob_field *)
void * cob_savenv2(struct cobjmp_buf *, const int)
void cob_read_next(cob_file *, cob_field *, const int)
unsigned char numeric_separator
cob_field * cob_intr_substitute(const int, const int, const int,...)
const char * module_formatted_date
cob_field * cob_intr_mod(cob_field *, cob_field *)
void cob_stop_run(const int)
void cob_div_quotient(cob_field *, cob_field *, cob_field *, const int)
int cob_sys_oc_nanosleep(const void *)
void cob_check_ref_mod(const int, const int, const int, const char *)
unsigned int perform_through
void cob_close(cob_file *, cob_field *, const int, const int)
cob_call_union module_entry
int cob_sys_delete_file(unsigned char *)
cob_field * cob_intr_reverse(const int, const int, cob_field *)
int cob_sys_close_file(unsigned char *)
cob_field * cob_intr_ord_max(const int,...)
void cob_decimal_set_field(cob_decimal *, cob_field *)
int cob_sys_get_scr_size(unsigned char *, unsigned char *)
const char * cob_cstr_name
const char * cob_orig_paragraph
cob_field * cob_intr_present_value(const int,...)
void cob_accept_time(cob_field *)
int cob_valid_date_format(const char *)
cob_field * cob_intr_integer_of_day(cob_field *)
cob_field * cob_intr_stored_char_length(cob_field *)
cob_field * cob_intr_factorial(cob_field *)
void cob_file_sort_giving(cob_file *, const size_t,...)
cob_field * cob_intr_rem(cob_field *, cob_field *)
void cob_check_odo(const int, const int, const int, const char *)
cob_field * cob_intr_median(const int,...)
cob_field * cob_intr_integer_part(cob_field *)
void cob_cancel_field(const cob_field *, const struct cob_call_struct *)
cob_field * cob_intr_substitute_case(const int, const int, const int,...)
unsigned char flag_operation
int cob_sys_imp(const void *, void *, const int)
void cob_table_sort(cob_field *, const int)
int cob_sys_open_file(unsigned char *, unsigned char *, unsigned char *, unsigned char *, unsigned char *)
cob_field * cob_intr_seconds_from_formatted_time(cob_field *, cob_field *)
cob_field * cob_intr_current_date(const int, const int)
void cob_inspect_first(cob_field *, cob_field *)
cob_field * cob_intr_upper_case(const int, const int, cob_field *)
struct __cob_screen * next
void cob_accept_command_line(cob_field *)
int cob_cmp_uint(cob_field *, const unsigned int)
int cob_sys_rename_file(unsigned char *, unsigned char *)
cob_field * cob_intr_mean(const int,...)
unsigned char flag_optional
cob_field * cob_intr_log10(cob_field *)
void cob_read(cob_file *, cob_field *, cob_field *, const int)
cob_field * cob_intr_module_formatted_date(void)
void * cob_external_addr(const char *, const int)
cob_field * cob_intr_integer(cob_field *)
void cob_rewrite(cob_file *, cob_field *, const int, cob_field *)
unsigned char currency_symbol
cob_field * cob_intr_abs(cob_field *)
void cob_init(const int, char **)
cob_field * cob_intr_exception_statement(void)
int cob_get_int(cob_field *)
unsigned char ebcdic_sign
int cob_sys_justify(void *,...)
unsigned long long dataull
char * cob_strjoin(char **, int, char *)
void cob_decimal_set_llint(cob_decimal *, const long long)
void cob_check_based(const unsigned char *, const char *)
const char * cob_resolve_error(void)
void cob_field_accept(cob_field *, cob_field *, cob_field *, cob_field *, cob_field *, cob_field *, cob_field *, cob_field *, cob_field *, const int)
void cob_accept_day(cob_field *)
cob_field * cob_intr_national_of(const int, const int, const int,...)
void cob_screen_accept(cob_screen *, cob_field *, cob_field *, cob_field *)
void cob_file_sort_using(cob_file *, cob_file *)
void cob_unstring_into(cob_field *, cob_field *, cob_field *)
cob_field * cob_intr_standard_compare(const int,...)
struct __cob_screen * prev
struct __cob_module cob_module
void cob_check_subscript(const int, const int, const int, const char *)
int cob_sys_sleep(const void *)
int cob_sys_get_current_dir(const int, const int, unsigned char *)
cob_field * cob_intr_display_of(const int, const int, const int,...)
unsigned int * module_ref_count
cob_field * cob_intr_lowest_algebraic(cob_field *)
void cob_set_location(const char *, const unsigned int, const char *, const char *, const char *)
void cob_accept_environment(cob_field *)
int cob_cmp_int(cob_field *, const int)
void cob_screen_line_col(cob_field *, const int)
unsigned int cob_physical_cancel
cob_field * cob_intr_length(cob_field *)
int cob_sys_copyfile(unsigned char *, unsigned char *, unsigned char *)
cob_field * cob_intr_ord_min(const int,...)
unsigned char * cob_term_buff
int cob_numeric_cmp(cob_field *, cob_field *)
unsigned char flag_binary_truncate
void cob_delete(cob_file *, cob_field *)
void cob_decimal_pow(cob_decimal *, cob_decimal *)
int cob_sys_delete_dir(unsigned char *)
void * cob_realloc(void *, const size_t, const size_t)
const unsigned char * collating_sequence
void cob_div(cob_field *, cob_field *, const int)
void * cob_cache_realloc(void *, const size_t)
int cob_is_upper(const cob_field *)
struct __cob_module * next
cob_field * cob_intr_mon_decimal_point(void)
void cob_screen_display(cob_screen *, cob_field *, cob_field *)
cob_field * cob_intr_formatted_current_date(const int, const int, cob_field *)
int cob_valid_datetime_format(const char *, const char)
cob_field * cob_intr_binop(cob_field *, const int, cob_field *)
void cob_unstring_tallying(cob_field *)
int cob_sub_int(cob_field *, const int, const int)
int cob_sys_x91(void *, const void *, void *)
cob_field * cob_intr_date_to_yyyymmdd(const int,...)
void cob_field_display(cob_field *, cob_field *, cob_field *, cob_field *, cob_field *, cob_field *, cob_field *, const int)
void cob_inspect_before(const cob_field *)
int cob_sys_not(void *, const int)
int cob_is_numeric(const cob_field *)
void cob_check_linkage(const unsigned char *, const char *, const int)
void * return_address_ptr
cob_field * cob_intr_integer_of_boolean(cob_field *)
void cob_gmp_free(void *)
cob_module * cob_current_module
char * cob_locale_collate
void cob_get_environment(const cob_field *, cob_field *)
void cob_accept_date_yyyymmdd(cob_field *)
void cob_accept_date(cob_field *)
int cob_decimal_cmp(cob_decimal *, cob_decimal *)
void cob_decimal_add(cob_decimal *, cob_decimal *)
cob_field * cob_intr_sign(cob_field *)
cob_field * cob_intr_random(const int,...)
int cob_sys_toupper(void *, const int)
void cob_table_sort_init_key(cob_field *, const int, const unsigned int)
void cob_fatal_error(const int)
int cob_sys_nimp(const void *, void *, const int)
void cob_string_init(cob_field *, cob_field *)
cob_field * cob_intr_formatted_time(const int, const int, const int,...)
unsigned char flag_filename_mapping
void cob_set_locale(cob_field *, const int)
unsigned char flag_host_sign
cob_field * cob_intr_num_decimal_point(void)
unsigned int module_param_cnt
int cob_cmp_packed(cob_field *, const long long)
unsigned char flag_read_done
void cob_unstring_finish(void)
void cob_set_packed_int(cob_field *, const int)
cob_field * cob_intr_module_id(void)
cob_field * cob_intr_formatted_date(const int, const int, cob_field *, cob_field *)
void cob_cancel(const char *)
void cob_set_int(cob_field *, const int)
void cob_decimal_div(cob_decimal *, cob_decimal *)
void cob_accept_arg_number(cob_field *)
void cob_inspect_characters(cob_field *)
cob_field * cob_intr_variance(const int,...)
void cob_accept_user_name(cob_field *)
void cob_inspect_finish(void)
int cob_cmp(cob_field *, cob_field *)
cob_field * cob_intr_test_numval(cob_field *)
void cob_set_switch(const int, const int)
void cob_string_append(cob_field *)
int cob_load_config(void)
void * cob_fast_malloc(const size_t)
cob_field * cob_intr_sqrt(cob_field *)
cob_field * cob_intr_year_to_yyyy(const int,...)
int(* close)(cob_file *, const int)
cob_field * cob_intr_numval(cob_field *)
struct __cob_screen * child
const char * cob_orig_section
cob_field * cob_intr_exception_status(void)
void cob_file_return(cob_file *)
void cob_unstring_delimited(cob_field *, const unsigned int)
struct __cob_screen cob_screen
int cob_cmp_float(cob_field *, cob_field *)
void cob_trace_section(const char *, const char *, const int)
void cob_set_cancel(cob_module *)
cob_field * cob_intr_integer_of_formatted_date(cob_field *, cob_field *)
void cob_string_finish(void)
cob_field * cob_intr_log(cob_field *)
void cob_display_environment(const cob_field *)
cob_field * cob_intr_test_day_yyyyddd(cob_field *)
void * cob_malloc(const size_t)
void cob_decimal_sub(cob_decimal *, cob_decimal *)
void cob_inspect_all(cob_field *, cob_field *)
void cob_accept(cob_field *)
cob_field * cob_intr_date_of_integer(cob_field *)
int(* read_next)(cob_file *, const int)
int cob_sys_system(const void *)
const char * cob_orig_statement
int cob_check_numval(const cob_field *, const cob_field *, const int, const int)
int cob_sys_calledby(void *)
void cob_accept_arg_value(cob_field *)
unsigned int cob_got_exception
int cob_sys_eq(const void *, void *, const int)
cob_field * cob_intr_lcl_time_from_secs(const int, const int, cob_field *, cob_field *)
cob_field * cob_intr_seconds_past_midnight(void)
void cob_inspect_converting(const cob_field *, const cob_field *)
void * cob_command_line(int, int *, char ***, char ***, char **)
unsigned int cob_screen_initialized
void cob_open(cob_file *, const int, const int, cob_field *)
cob_field * cob_intr_char_national(cob_field *)
void cob_inspect_start(void)
void cob_write(cob_file *, cob_field *, const int, cob_field *, const unsigned int)
cob_field * cob_intr_when_compiled(const int, const int, cob_field *)
cob_field * cob_intr_asin(cob_field *)
cob_field * cob_intr_boolean_of_integer(cob_field *, cob_field *)
int cob_valid_time_format(const char *, const char)
int cob_decimal_get_field(cob_decimal *, cob_field *, const int)
unsigned char decimal_point
struct __cob_screen * parent
cob_field * cob_intr_module_source(void)
void * cob_call_field(const cob_field *, const struct cob_call_struct *, const unsigned int, const int)
void cob_file_release(cob_file *)
const char * cob_main_argv0
cob_field * cob_intr_sum(const int,...)
cob_field * cob_intr_locale_compare(const int,...)
int cob_sys_check_file_exist(unsigned char *, unsigned char *)
void cob_reset_trace(void)
void cob_check_numeric(const cob_field *, const char *)
void cob_display(const int, const int, const int,...)
cob_field * cob_intr_fraction_part(cob_field *)
cob_field * variable_record
cob_field * cob_intr_char(cob_field *)
cob_field * cob_intr_module_caller_id(void)
cob_field * cob_intr_concatenate(const int, const int, const int,...)
void cob_mul(cob_field *, cob_field *, const int)
int cob_sys_printable(void *,...)
cob_field * cob_intr_locale_date(const int, const int, cob_field *, cob_field *)
unsigned char flag_select_features
cob_field * cob_intr_day_to_yyyyddd(const int,...)
void cob_display_arg_number(cob_field *)
cob_field * cob_intr_sin(cob_field *)
void cob_accept_day_yyyyddd(cob_field *)
int(* start)(cob_file *, const int, cob_field *)
void cob_unstring_init(cob_field *, cob_field *, const size_t)
cob_field ** save_proc_parms
void cob_inspect_trailing(cob_field *, cob_field *)
cob_field * cob_intr_ord(cob_field *)
int cob_extern_init(void)
void cob_incr_temp_iteration(void)
unsigned int module_returning
char * cob_locale_messages
int cob_get_switch(const int)
unsigned char last_open_mode
const unsigned char * sort_collating
cob_field * cob_switch_value(const int)
void cob_free_alloc(unsigned char **, unsigned char *)
void cob_start(cob_file *, const int, cob_field *, cob_field *, cob_field *)
void * cob_cache_malloc(const size_t)
cob_field * cob_intr_locale_time(const int, const int, cob_field *, cob_field *)
const char * cob_orig_program_id
int cob_sys_get_csr_pos(unsigned char *)
void * cob_resolve(const char *)
cob_field * cob_intr_numval_c(cob_field *, cob_field *)
cob_field * cob_intr_atan(cob_field *)
int cob_sys_copy_file(unsigned char *, unsigned char *)
cob_call_union cob_cstr_cancel
int(* write)(cob_file *, const int)
void cob_set_packed_zero(cob_field *)
void cob_allocate(unsigned char **, cob_field *, cob_field *, cob_field *)
void * cob_get_prog_pointer(const void *)
const char ** module_path
cob_call_union module_cancel
void cob_module_enter(cob_module **, cob_global **, const int)
void cob_inspect_leading(cob_field *, cob_field *)
unsigned char flag_begin_of_file
struct longoption_def longoption_def
void * cob_savenv(struct cobjmp_buf *)
int cob_sys_xor(const void *, void *, const int)
cob_field * cob_intr_day_of_integer(cob_field *)
void print_runtime_env(void)
cob_field * cob_intr_module_date(void)
void cob_get_indirect_field(cob_field *)
const char * module_source
cob_field ** cob_procedure_params
void cob_decimal_pop(const unsigned int,...)
unsigned char access_mode
int cob_is_omitted(const cob_field *)
cob_field * cob_intr_midrange(const int,...)
void cob_decimal_alloc(const unsigned int,...)
int cob_cmp_numdisp(const unsigned char *, const size_t, const long long, const unsigned int)
unsigned char flag_end_of_file
void cob_longjmp(struct cobjmp_buf *)
unsigned char * cob_get_pointer(const void *)
cob_field * cob_intr_exp10(cob_field *)
unsigned char flag_pretty_display
cob_field * cob_intr_exception_location_n(void)
int cob_sys_exit_proc(const void *, const void *)
char * cob_int_to_string(int, char *)
void cob_module_leave(cob_module *)
int cob_is_alpha(const cob_field *)
int cob_cmp_llint(cob_field *, const long long)
cob_field * cob_intr_currency_symbol(void)
int cob_sys_tolower(void *, const int)
void * cob_save_func(cob_field **, const int, const int,...)
int cob_sys_or(const void *, void *, const int)
void cob_inspect_after(const cob_field *)
cob_field * cob_intr_trim(const int, const int, cob_field *, const int)
int cob_sys_chdir(unsigned char *, unsigned char *)
void cob_delete_file(cob_file *, cob_field *)
int cob_sys_file_delete(unsigned char *, unsigned char *)
unsigned char flag_needs_nl
void cob_accept_day_of_week(cob_field *)
cob_field * cob_intr_byte_length(cob_field *)
unsigned char file_version
char * cob_expand_env_string(char *)
int cob_sys_return_args(void *)
void cob_file_sort_init_key(cob_file *, cob_field *, const int, const unsigned int)
void cob_restore_func(struct cob_func_loc *)
cob_field * cob_intr_test_formatted_datetime(cob_field *, cob_field *)
cob_field * cob_intr_annuity(cob_field *, cob_field *)
void cob_sub(cob_field *, cob_field *, const int)
int cob_sys_read_file(unsigned char *, unsigned char *, unsigned char *, unsigned char *, unsigned char *)
cob_field * cob_intr_integer_of_date(cob_field *)
int(* open)(cob_file *, char *, const int, const int)
unsigned int return_address_num
unsigned char flag_no_phys_canc
void cob_cache_free(void *)
cob_field * cob_intr_max(const int,...)
void cob_file_sort_init(cob_file *, const unsigned int, const unsigned char *, void *, cob_field *)
int cob_sys_getopt_long_long(void *, void *, void *, const int, void *, void *)
cob_field * cob_intr_exception_file(void)
void cob_chain_setup(void *, const size_t, const size_t)
cob_field * cob_intr_tan(cob_field *)
int cob_sys_and(const void *, void *, const int)
cob_field * cob_intr_highest_algebraic(cob_field *)
int cob_sys_mkdir(unsigned char *)
char * cob_int_to_formatted_bytestring(int, char *)
int cob_func(const char *, const int, void **)
cob_field * cob_intr_test_numval_c(cob_field *, cob_field *)
void * cob_resolve_func(const char *)
void cob_display_env_value(const cob_field *)
cob_field * cob_intr_formatted_datetime(const int, const int, const int,...)
int(* fdelete)(cob_file *)
cob_call_union cob_cstr_call
long long cob_get_llint(cob_field *)
cob_field * cob_intr_lower_case(const int, const int, cob_field *)
void cob_put_indirect_field(cob_field *)
void cob_ready_trace(void)
void cob_set_exception(const int)