GnuCOBOL  2.0
A free COBOL compiler
get-reserved-lists.c
Go to the documentation of this file.
1 /* Generated by cobc 2.0.0 */
2 /* Generated from get-reserved-lists.cbl */
3 /* Generated at Apr 17 2016 03:19:00 */
4 /* GnuCOBOL build date Apr 16 2016 12:25:23 */
5 /* GnuCOBOL package date Oct 25 2015 21:40:28 UTC */
6 /* Compile command cobc -x -g cobxref.cbl get-reserved-lists.cbl */
7 
8 #include <stdio.h>
9 #include <stdlib.h>
10 #include <stddef.h>
11 #include <string.h>
12 #include <math.h>
13 #define COB_KEYWORD_INLINE __inline
14 #include <libcob.h>
15 
16 #define COB_SOURCE_FILE "get-reserved-lists.cbl"
17 #define COB_PACKAGE_VERSION "2.0"
18 #define COB_PATCH_LEVEL 0
19 #define COB_MODULE_FORMATTED_DATE "Apr 17 2016 03:19:00"
20 #define COB_MODULE_DATE 20160417
21 #define COB_MODULE_TIME 31900
22 
23 /* Global variables */
24 #include "get-reserved-lists.c.h"
25 
26 /* Function prototypes */
27 
29 static int get__reserved__lists_ (const int, cob_u8_t *, cob_u8_t *, cob_u8_t *, cob_u8_t *, cob_u8_t *);
30 
31 /* Functions */
32 
33 /* PROGRAM-ID 'get-reserved-lists' */
34 
35 /* ENTRY 'get__reserved__lists' */
36 
37 int
38 get__reserved__lists (cob_u8_t *b_23, cob_u8_t *b_24, cob_u8_t *b_29, cob_u8_t *b_30, cob_u8_t *b_35)
39 {
40  return get__reserved__lists_ (0, b_23, b_24, b_29, b_30, b_35);
41 }
42 
43 static int
44 get__reserved__lists_ (const int entry, cob_u8_t *b_23, cob_u8_t *b_24,
45  cob_u8_t *b_29, cob_u8_t *b_30,
46  cob_u8_t *b_35)
47 {
48  /* Program local variables */
49  #include "get-reserved-lists.c.l.h"
50 
51  /* Start of function code */
52 
53  /* CANCEL callback */
54  if (unlikely(entry < 0)) {
55  goto P_cancel;
56  }
57 
58  /* Check initialized, check module allocated, */
59  /* set global pointer, */
60  /* push module stack, save call parameter count */
62 
63  /* Set address of module parameter list */
65 
66  /* Set frame stack pointer */
69  frame_overflow = frame_ptr + 255 - 1;
70 
71  /* Initialize rest of program */
72  if (unlikely(initialized == 0)) {
73  goto P_initialize;
74  }
75  P_ret_initialize:
76 
77  /* Increment module active */
79 
80  /* Save number of call params */
82 
83  /* Entry dispatch */
84  goto l_2;
85 
86  /* PROCEDURE DIVISION */
87 
88  /* Line: 138 : Entry get-reserved-lists : get-reserved-lists.cbl */
89  l_2:;
90 
91  /* Line: 138 : Section aa000-startup : get-reserved-lists.cbl */
92 
93  /* Line: 139 : Paragraph aa010-Init : get-reserved-lists.cbl */
94 
95  /* Line: 140 : CALL : get-reserved-lists.cbl */
99  b_1 = cob_sys_system ((cob_u8_ptr)"cobc --list-intrinsics > int.tmp");
100 
101  /* Line: 141 : CALL : get-reserved-lists.cbl */
102  cob_set_location (st_1, 141, st_2, st_3, st_4);
105  b_1 = cob_sys_system ((cob_u8_ptr)"cobc --list-reserved > res.tmp");
106 
107  /* Line: 142 : MOVE : get-reserved-lists.cbl */
108  cob_set_location (st_1, 142, st_2, st_3, st_5);
109  (*(cob_s8_ptr) (b_23)) = 0;
110 
111  /* Line: 143 : PERFORM : get-reserved-lists.cbl */
112  cob_set_location (st_1, 143, st_2, st_3, st_6);
113  /* PERFORM ba000-Get-Intrinsics-Words */
114  frame_ptr++;
118  frame_ptr->return_address_ptr = &&l_14;
119  goto l_5;
120  l_14:
121  frame_ptr--;
122 
123  /* Line: 144 : IF : get-reserved-lists.cbl */
124  cob_set_location (st_1, 144, st_2, st_3, st_7);
125  if (!((int)cob_cmp_s8 (b_23, 0) == 0))
126  {
127 
128  /* Line: 145 : EXIT PROGRAM : get-reserved-lists.cbl */
129  cob_set_location (st_1, 145, st_2, st_3, st_8);
130  if (module->next)
131  goto exit_program;
132  }
133 
134  /* Line: 146 : PERFORM : get-reserved-lists.cbl */
135  cob_set_location (st_1, 146, st_2, st_3, st_6);
136  /* PERFORM ca000-Get-Reserved-Words */
137  frame_ptr++;
141  frame_ptr->return_address_ptr = &&l_15;
142  goto l_9;
143  l_15:
144  frame_ptr--;
145 
146  /* Line: 147 : CALL : get-reserved-lists.cbl */
147  cob_set_location (st_1, 147, st_2, st_3, st_4);
150  b_1 = cob_sys_delete_file ((cob_u8_ptr)"res.tmp");
151 
152  /* Line: 148 : CALL : get-reserved-lists.cbl */
153  cob_set_location (st_1, 148, st_2, st_3, st_4);
156  b_1 = cob_sys_delete_file ((cob_u8_ptr)"int.tmp");
157 
158  /* Line: 149 : EXIT PROGRAM : get-reserved-lists.cbl */
159  cob_set_location (st_1, 149, st_2, st_3, st_8);
160  if (module->next)
161  goto exit_program;
162 
163  /* Line: 151 : Section ba000-Get-Intrinsics-Words: get-reserved-lists.cbl */
164  l_5:;
165 
166  /* Line: 152 : Paragraph ba010-init : get-reserved-lists.cbl */
167 
168  /* Line: 153 : OPEN : get-reserved-lists.cbl */
170  cob_open (h_INTRINSIC_STREAM, 1, 0, &f_15);
172  {
173  /* PERFORM Default Error Handler */
174  frame_ptr++;
178  frame_ptr->return_address_ptr = &&l_16;
179  goto l_1;
180  l_16:
181  frame_ptr--;
182  }
183 
184  /* Line: 154 : IF : get-reserved-lists.cbl */
185  cob_set_location (st_1, 154, st_9, st_10, st_7);
186  if (((int)cob_cmp_numdisp (b_15, 2, 35LL, 0) == 0))
187  {
188 
189  /* Line: 155 : DISPLAY : get-reserved-lists.cbl */
191  cob_display (0, 1, 1, &f_19);
192  }
193 
194  /* Line: 156 : IF : get-reserved-lists.cbl */
195  cob_set_location (st_1, 156, st_9, st_10, st_7);
196  if (((int)cob_cmp_numdisp (b_15, 2, 0, 0) != 0))
197  {
198 
199  /* Line: 157 : MOVE : get-reserved-lists.cbl */
200  cob_set_location (st_1, 157, st_9, st_10, st_5);
201  cob_move (&f_15, COB_SET_DATA (f_23, b_23));
202 
203  /* Line: 158 : EXIT SECTION : get-reserved-lists.cbl */
205  goto l_7;
206  }
207 
208  /* Line: 160 : MOVE : get-reserved-lists.cbl */
209  cob_set_location (st_1, 160, st_9, st_10, st_5);
210  memmove (b_13, b_29, 4);
211 
212  /* Line: 161 : MOVE : get-reserved-lists.cbl */
213  cob_set_location (st_1, 161, st_9, st_10, st_5);
214  memset (b_24, 255, 7936);
215 
216  /* Line: 162 : MOVE : get-reserved-lists.cbl */
217  cob_set_location (st_1, 162, st_9, st_10, st_5);
218  memset (b_29, 0, 4);
219 
220  /* Line: 164 : Paragraph ba020-get-thru-base-data: get-reserved-lists.cbl */
221  l_8:;
222 
223  /* Line: 165 : MOVE : get-reserved-lists.cbl */
224  cob_set_location (st_1, 165, st_9, st_14, st_5);
225  memset (b_9, 255, 128);
226 
227  /* Line: 166 : READ : get-reserved-lists.cbl */
231  {
232  if (cob_glob_ptr->cob_exception_code == 0x0501)
233  {
234 
235  /* Line: 167 : MOVE : get-reserved-lists.cbl */
236  cob_set_location (st_1, 167, st_9, st_14, st_5);
237  (*(cob_s8_ptr) (b_23)) = 0;
238 
239  /* Line: 168 : CLOSE : get-reserved-lists.cbl */
243  {
244  /* PERFORM Default Error Handler */
245  frame_ptr++;
249  frame_ptr->return_address_ptr = &&l_17;
250  goto l_1;
251  l_17:
252  frame_ptr--;
253  }
254 
255  /* Line: 169 : IF : get-reserved-lists.cbl */
256  cob_set_location (st_1, 169, st_9, st_14, st_7);
257  if (((int)cob_cmpswp_s32 (b_29, ((int)COB_BSWAP_32(*(int *)(b_13)))) > 0))
258  {
259 
260  /* Line: 170 : DISPLAY : get-reserved-lists.cbl */
262  cob_display (0, 1, 1, &f_21);
263  }
264 
265  /* Line: 172 : EXIT SECTION : get-reserved-lists.cbl */
267  goto l_7;
268  }
269  else
270  {
271  /* PERFORM Default Error Handler */
272  frame_ptr++;
276  frame_ptr->return_address_ptr = &&l_18;
277  goto l_1;
278  l_18:
279  frame_ptr--;
280  }
281  }
282 
283  /* Line: 174 : IF : get-reserved-lists.cbl */
284  cob_set_location (st_1, 174, st_9, st_14, st_7);
285  if ((((int)cob_cmp (COB_SET_FLD(f0, 3, b_9 + 0, &a_1), &cob_all_space) == 0) ||
286  ((int)memcmp (b_9 + 0, (cob_u8_ptr)"Intrinsic Function", 18) == 0)))
287  {
288 
289  /* Line: 176 : GO TO : get-reserved-lists.cbl */
291  goto l_8;
292  }
293 
294  /* Line: 180 : MOVE : get-reserved-lists.cbl */
295  cob_set_location (st_1, 180, st_9, st_14, st_5);
296  (*(int *)(b_11)) = 1;
297 
298  /* Line: 181 : MOVE : get-reserved-lists.cbl */
299  cob_set_location (st_1, 181, st_9, st_14, st_5);
300  memset (b_16, 32, 30);
301  *(b_17) = 32;
302 
303  /* Line: 182 : UNSTRING : get-reserved-lists.cbl */
305  cob_unstring_init (&f_8, &f_11, 2);
308  cob_unstring_into (&f_16, 0, 0);
310 
311  /* Line: 183 : UNSTRING : get-reserved-lists.cbl */
313  cob_unstring_init (&f_8, &f_11, 2);
316  cob_unstring_into (&f_17, 0, 0);
318 
319  /* Line: 184 : ADD : get-reserved-lists.cbl */
321  cob_add (COB_SET_DATA (f_29, b_29), (cob_field *)&c_6, 4);
322 
323  /* Line: 185 : MOVE : get-reserved-lists.cbl */
324  cob_set_location (st_1, 185, st_9, st_14, st_5);
325  memmove (b_24 + 1 + 31 * (((int)COB_BSWAP_32(*(int *)(b_29))) - 1), b_16, 30);
326 
327  /* Line: 186 : IF : get-reserved-lists.cbl */
328  cob_set_location (st_1, 186, st_9, st_14, st_7);
329  if (((int)(int)(*(b_17) - 89) == 0))
330  {
331 
332  /* Line: 187 : MOVE : get-reserved-lists.cbl */
333  cob_set_location (st_1, 187, st_9, st_14, st_5);
334  *(b_24 + 31 * (((int)COB_BSWAP_32(*(int *)(b_29))) - 1)) = 49;
335  }
336  else
337  {
338  /* ELSE */
339 
340  /* Line: 189 : MOVE : get-reserved-lists.cbl */
341  cob_set_location (st_1, 189, st_9, st_14, st_5);
342  *(b_24 + 31 * (((int)COB_BSWAP_32(*(int *)(b_29))) - 1)) = 48;
343  }
344 
345  /* Line: 191 : GO TO : get-reserved-lists.cbl */
347  goto l_8;
348 
349  /* Implicit EXIT label */
350  l_7:;
351 
352  /* Implicit PERFORM return */
353  if (frame_ptr->perform_through == 5)
355 
356  /* Line: 193 : Section ca000-Get-Reserved-Words: get-reserved-lists.cbl */
357  l_9:;
358 
359  /* Line: 195 : Paragraph ca010-init : get-reserved-lists.cbl */
360 
361  /* Line: 196 : OPEN : get-reserved-lists.cbl */
363  cob_open (h_RESERVE_STREAM, 1, 0, &f_15);
365  {
366  /* PERFORM Default Error Handler */
367  frame_ptr++;
371  frame_ptr->return_address_ptr = &&l_19;
372  goto l_1;
373  l_19:
374  frame_ptr--;
375  }
376 
377  /* Line: 197 : IF : get-reserved-lists.cbl */
379  if (((int)cob_cmp_numdisp (b_15, 2, 35LL, 0) == 0))
380  {
381 
382  /* Line: 198 : DISPLAY : get-reserved-lists.cbl */
384  cob_display (0, 1, 1, &f_20);
385  }
386 
387  /* Line: 199 : IF : get-reserved-lists.cbl */
389  if (((int)cob_cmp_numdisp (b_15, 2, 0, 0) != 0))
390  {
391 
392  /* Line: 200 : MOVE : get-reserved-lists.cbl */
394  cob_move (&f_15, COB_SET_DATA (f_23, b_23));
395 
396  /* Line: 201 : EXIT SECTION : get-reserved-lists.cbl */
398  goto l_11;
399  }
400 
401  /* Line: 203 : MOVE : get-reserved-lists.cbl */
403  memmove (b_14, b_35, 4);
404 
405  /* Line: 204 : MOVE : get-reserved-lists.cbl */
407  memset (b_30, 255, 31744);
408 
409  /* Line: 205 : MOVE : get-reserved-lists.cbl */
411  memset (b_35, 0, 4);
412 
413  /* Line: 206 : MOVE : get-reserved-lists.cbl */
415  (*(cob_s8_ptr) (b_12)) = 0;
416 
417  /* Line: 208 : Paragraph ca020-get-thru-base-data: get-reserved-lists.cbl */
418  l_12:;
419 
420  /* Line: 209 : MOVE : get-reserved-lists.cbl */
422  memset (b_7, 255, 128);
423 
424  /* Line: 210 : READ : get-reserved-lists.cbl */
428  {
429  if (cob_glob_ptr->cob_exception_code == 0x0501)
430  {
431 
432  /* Line: 211 : GO TO : get-reserved-lists.cbl */
434  goto l_13;
435  }
436  else
437  {
438  /* PERFORM Default Error Handler */
439  frame_ptr++;
443  frame_ptr->return_address_ptr = &&l_20;
444  goto l_1;
445  l_20:
446  frame_ptr--;
447  }
448  }
449 
450  /* Line: 213 : IF : get-reserved-lists.cbl */
452  if ((((int)cob_cmp (COB_SET_FLD(f0, 3, b_7 + 0, &a_1), &cob_all_space) == 0) ||
453  ((int)memcmp (b_7 + 0, (cob_u8_ptr)"Reserved Words", 14) == 0)))
454  {
455 
456  /* Line: 215 : GO TO : get-reserved-lists.cbl */
458  goto l_12;
459  }
460 
461  /* Line: 217 : IF : get-reserved-lists.cbl */
463  if (((int)memcmp (b_7 + 0, (cob_u8_ptr)"Extra (obsolete)", 16) == 0))
464  {
465 
466  /* Line: 218 : PERFORM : get-reserved-lists.cbl */
468  for (;;)
469  {
470 
471  /* Line: 219 : READ : get-reserved-lists.cbl */
475  {
476  if (cob_glob_ptr->cob_exception_code == 0x0501)
477  {
478 
479  /* Line: 220 : GO TO : get-reserved-lists.cbl */
481  goto l_13;
482  }
483  else
484  {
485  /* PERFORM Default Error Handler */
486  frame_ptr++;
490  frame_ptr->return_address_ptr = &&l_21;
491  goto l_1;
492  l_21:
493  frame_ptr--;
494  }
495  }
496 
497  /* Line: 222 : IF : get-reserved-lists.cbl */
499  if (((int)memcmp (b_7 + 0, (cob_u8_ptr)"Extra internal", 14) == 0))
500  {
501 
502  /* Line: 223 : MOVE : get-reserved-lists.cbl */
504  (*(cob_s8_ptr) (b_12)) = 1;
505 
506  /* Line: 224 : GO TO : get-reserved-lists.cbl */
508  goto l_12;
509  }
510  }
511  }
512 
513  /* Line: 231 : MOVE : get-reserved-lists.cbl */
515  (*(int *)(b_11)) = 1;
516 
517  /* Line: 232 : MOVE : get-reserved-lists.cbl */
519  memset (b_16, 32, 30);
520  *(b_17) = 32;
521 
522  /* Line: 233 : UNSTRING : get-reserved-lists.cbl */
524  cob_unstring_init (&f_6, &f_11, 2);
527  cob_unstring_into (&f_16, 0, 0);
529 
530  /* Line: 234 : UNSTRING : get-reserved-lists.cbl */
532  cob_unstring_init (&f_6, &f_11, 2);
535  cob_unstring_into (&f_17, 0, 0);
537 
538  /* Line: 238 : IF : get-reserved-lists.cbl */
540  if (((int)cob_cmp (&f_16, (cob_field *)&c_7) == 0))
541  {
542 
543  /* Line: 239 : GO TO : get-reserved-lists.cbl */
545  goto l_12;
546  }
547 
548  /* Line: 241 : ADD : get-reserved-lists.cbl */
550  cob_add (COB_SET_DATA (f_35, b_35), (cob_field *)&c_6, 4);
551 
552  /* Line: 242 : MOVE : get-reserved-lists.cbl */
554  memmove (b_30 + 1 + 31 * (((int)COB_BSWAP_32(*(int *)(b_35))) - 1), b_16, 30);
555 
556  /* Line: 243 : IF : get-reserved-lists.cbl */
558  if (((int)(int)(*(b_17) - 89) == 0))
559  {
560 
561  /* Line: 244 : MOVE : get-reserved-lists.cbl */
563  *(b_30 + 31 * (((int)COB_BSWAP_32(*(int *)(b_35))) - 1)) = 49;
564  }
565  else
566  {
567  /* ELSE */
568 
569  /* Line: 246 : IF : get-reserved-lists.cbl */
571  if (((int)(int)(*(b_17) - 78) == 0))
572  {
573 
574  /* Line: 247 : MOVE : get-reserved-lists.cbl */
576  *(b_30 + 31 * (((int)COB_BSWAP_32(*(int *)(b_35))) - 1)) = 48;
577  }
578  else
579  {
580  /* ELSE */
581 
582  /* Line: 249 : IF : get-reserved-lists.cbl */
584  if (((int)cob_cmp_s8 (b_12, 1LL) == 0))
585  {
586 
587  /* Line: 250 : MOVE : get-reserved-lists.cbl */
589  *(b_30 + 31 * (((int)COB_BSWAP_32(*(int *)(b_35))) - 1)) = 49;
590  }
591  else
592  {
593  /* ELSE */
594 
595  /* Line: 252 : MOVE : get-reserved-lists.cbl */
597  *(b_30 + 31 * (((int)COB_BSWAP_32(*(int *)(b_35))) - 1)) = 48;
598  }
599  }
600  }
601 
602  /* Line: 257 : GO TO : get-reserved-lists.cbl */
604  goto l_12;
605 
606  /* Line: 259 : Paragraph ca030-Clean-Up : get-reserved-lists.cbl */
607  l_13:;
608 
609  /* Line: 260 : MOVE : get-reserved-lists.cbl */
611  (*(cob_s8_ptr) (b_23)) = 0;
612 
613  /* Line: 261 : CLOSE : get-reserved-lists.cbl */
615  cob_close (h_RESERVE_STREAM, &f_15, 0, 0);
617  {
618  /* PERFORM Default Error Handler */
619  frame_ptr++;
623  frame_ptr->return_address_ptr = &&l_22;
624  goto l_1;
625  l_22:
626  frame_ptr--;
627  }
628 
629  /* Line: 262 : IF : get-reserved-lists.cbl */
631  if (((int)cob_cmpswp_s32 (b_35, ((int)COB_BSWAP_32(*(int *)(b_14)))) > 0))
632  {
633 
634  /* Line: 263 : DISPLAY : get-reserved-lists.cbl */
636  cob_display (0, 1, 1, &f_22);
637  }
638 
639  /* Line: 265 : EXIT SECTION : get-reserved-lists.cbl */
641  goto l_11;
642 
643  /* Implicit EXIT label */
644  l_11:;
645 
646  /* Implicit PERFORM return */
647  if (frame_ptr->perform_through == 9)
649 
650  /* Program exit */
651 
652  exit_program:
653 
654  /* Decrement module active count */
655  if (module->module_active) {
657  }
658 
659  /* Pop module stack */
661 
662  /* Program return */
663  return b_1;
664 
665 
666  /* Paragraph Default Error Handler */
667  l_1:;
668 
671  }
672 
673  /* Implicit Default Error Handler return */
674  if (frame_ptr->perform_through == 1)
676 
677  /* Fatal error if reached */
679 
680 
681  /* Program initialization */
682  P_initialize:
683 
685 
686  /* Initialize module structure */
687  module->module_name = "get-reserved-lists";
697  module->module_active = 0;
700  module->module_type = 0;
703  module->ebcdic_sign = 0;
704  module->decimal_point = '.';
705  module->currency_symbol = '$';
706  module->numeric_separator = ',';
710  module->flag_host_sign = 0;
712  module->flag_main = 0;
713  module->flag_fold_call = 0;
715 
716  /* Initialize cancel callback */
718 
719  /* Initialize WORKING-STORAGE */
720  b_1 = 0;
721  memcpy (b_10, "get-reserved-lists v1.00.01", 27);
722  (*(int *)(b_11)) = 0;
723  (*(cob_s8_ptr) (b_12)) = 0;
724  memset (b_13, 0, 4);
725  memset (b_14, 0, 4);
726  memset (b_15, 48, 2);
727  memset (b_16, 32, 30);
728  *(cob_u8_ptr)(b_17) = 32;
729  memcpy (b_18, "Msg11 Cannot run 'cobc --list-intrinsics', cobc not in path\?", 60);
730  memcpy (b_18 + 60, "Msg12 Cannot run 'cobc --list-reserved', cobc not in path\?", 58);
731  memcpy (b_18 + 118, "Msg13 Intrinsic word table was successfully updated", 51);
732  memcpy (b_18 + 169, "Msg14 Reserve word table was successfully updated", 49);
733  b_26 = 1;
734  b_32 = 1;
735 
736 
737  if (!h_RESERVE_STREAM)
738  {
740  }
741  h_RESERVE_STREAM->select_name = (const char *)"Reserve-Stream";
743  memset (h_RESERVE_STREAM_status, '0', 2);
749  h_RESERVE_STREAM->nkeys = 0;
752  h_RESERVE_STREAM->fd = -1;
769  if (!h_INTRINSIC_STREAM)
770  {
772  }
773  h_INTRINSIC_STREAM->select_name = (const char *)"Intrinsic-Stream";
775  memset (h_INTRINSIC_STREAM_status, '0', 2);
784  h_INTRINSIC_STREAM->fd = -1;
801 
802  initialized = 1;
803  goto P_ret_initialize;
804 
805  /* CANCEL callback handling */
806  P_cancel:
807 
808  if (!initialized) {
809  return 0;
810  }
811  if (module->module_active) {
813  }
814 
821  b_1 = 0;
823  module = NULL;
824 
825  initialized = 0;
826  return 0;
827 
828 }
829 
830 /* End PROGRAM-ID 'get-reserved-lists' */
831 
832 /* End functions */
833 
cob_field * record
Definition: common.h:1115
unsigned char flag_main
Definition: common.h:1079
static const char st_15[]
Definition: cobxref.c.h:137
#define COB_FERROR_CODEGEN
Definition: common.h:693
static const char st_3[]
Definition: cobxref.c.h:125
static int get__reserved__lists_(const int, cob_u8_t *, cob_u8_t *, cob_u8_t *, cob_u8_t *, cob_u8_t *)
cob_file * cob_error_file
Definition: common.h:1187
void cob_add(cob_field *, cob_field *, const int)
Definition: numeric.c:1931
cob_global * cob_glob_ptr
Definition: cobxref.c.l.h:17
void cob_check_version(const char *prog, const char *packver, const int patchlev)
Definition: common.c:1894
unsigned char organization
Definition: common.h:1127
unsigned char flag_exit_program
Definition: common.h:1081
unsigned int module_active
Definition: common.h:1060
int cob_sys_system(const void *cmdline)
Definition: common.c:3426
void cob_move(cob_field *, cob_field *)
Definition: move.c:1170
cob_field * assign
Definition: common.h:1114
static cob_module * module
Definition: cobxref.c.l.h:14
unsigned char flag_fold_call
Definition: common.h:1080
static const char st_8[]
Definition: cobxref.c.h:130
static const char st_4[]
Definition: cobxref.c.h:126
static COB_INLINE COB_A_INLINE int cob_cmpswp_s32(const void *p, const cob_s64_t n)
#define COB_FERROR_CANCEL
Definition: common.h:691
static unsigned char h_INTRINSIC_STREAM_status[4]
static const cob_field c_5
Definition: cobxref.c.h:34
void cob_cache_free(void *ptr)
Definition: common.c:1362
void *(* funcptr)()
Definition: common.h:1006
void cob_read_next(cob_file *, cob_field *, const int)
Definition: fileio.c:4696
unsigned char numeric_separator
Definition: common.h:1071
const char * module_formatted_date
Definition: common.h:1050
static const char st_5[]
Definition: cobxref.c.h:127
static COB_INLINE COB_A_INLINE int cob_cmp_s8(const void *p, const cob_s64_t n)
Definition: cobxref.c.h:318
struct cob_frame * frame_ptr
Definition: cobxref.c.l.h:65
static cob_file * h_RESERVE_STREAM
static cob_field f_19
unsigned int perform_through
Definition: common.h:992
static cob_field f_11
Definition: cobxref.c.l.h:199
void cob_close(cob_file *, cob_field *, const int, const int)
Definition: fileio.c:4498
cob_call_union module_entry
Definition: common.h:1052
int cob_sys_delete_file(unsigned char *)
Definition: fileio.c:5165
struct cob_frame * frame_overflow
Definition: cobxref.c.l.h:64
static cob_field f_23
Definition: cobxref.c.l.h:201
static const char st_20[]
Definition: cobxref.c.h:142
#define COB_SET_DATA(x, z)
Definition: common.h:686
#define COB_PATCH_LEVEL
static const char st_16[]
Definition: cobxref.c.h:138
unsigned char flag_operation
Definition: common.h:1133
static const cob_field c_6
Definition: cobxref.c.h:35
#define COB_MODULE_DATE
#define COB_BSWAP_32(val)
Definition: common.h:257
static const char st_11[]
Definition: cobxref.c.h:133
unsigned char flag_optional
Definition: common.h:1131
cob_field f0
Definition: cobxref.c.l.h:53
unsigned char * file_status
Definition: common.h:1113
static const char st_12[]
Definition: cobxref.c.h:134
static cob_field f_29
Definition: cobxref.c.l.h:205
#define cob_u8_t
Definition: common.h:27
static const char st_10[]
Definition: cobxref.c.h:132
int cob_call_params
Definition: common.h:1204
int get__reserved__lists(cob_u8_t *, cob_u8_t *, cob_u8_t *, cob_u8_t *, cob_u8_t *)
unsigned char currency_symbol
Definition: common.h:1070
size_t record_min
Definition: common.h:1122
unsigned char ebcdic_sign
Definition: common.h:1068
unsigned char lock_mode
Definition: common.h:1129
static cob_field f_17
void cob_unstring_into(cob_field *, cob_field *, cob_field *)
Definition: strings.c:524
cob_field * cob_procedure_params[5]
Definition: cobxref.c.l.h:61
static cob_field cob_all_space
Definition: cobxref.c.h:118
size_t record_max
Definition: common.h:1123
unsigned int * module_ref_count
Definition: common.h:1057
void cob_fatal_error(const int fatal_error)
Definition: common.c:1601
void cob_module_leave(cob_module *module)
Definition: common.c:1827
unsigned char flag_binary_truncate
Definition: common.h:1074
#define cob_u8_ptr
Definition: common.h:66
unsigned int module_time
Definition: common.h:1062
const unsigned char * collating_sequence
Definition: common.h:1054
void cob_set_location(const char *sfile, const unsigned int sline, const char *csect, const char *cpara, const char *cstatement)
Definition: common.c:1388
struct __cob_module * next
Definition: common.h:1047
#define unlikely(x)
Definition: common.h:437
static const char st_17[]
Definition: cobxref.c.h:139
struct cob_frame frame_stack[255]
Definition: cobxref.c.l.h:66
static const char st_2[]
Definition: cobxref.c.h:124
static const char st_18[]
Definition: cobxref.c.h:140
static unsigned char h_RESERVE_STREAM_status[4]
void * return_address_ptr
Definition: common.h:991
EC ARGUMENT EC EC BOUND EC BOUND EC BOUND EC BOUND TABLE EC DATA EC DATA EC DATA PTR NULL
Definition: exception.def:95
unsigned int module_date
Definition: common.h:1061
static const cob_field_attr a_1
Definition: cobxref.c.h:14
static cob_field f_20
#define cob_s8_ptr
Definition: common.h:67
static cob_field f_35
Definition: cobxref.c.l.h:208
static int b_1
Definition: cobxref.c.l.h:70
static int b_32
unsigned int module_type
Definition: common.h:1063
unsigned char flag_filename_mapping
Definition: common.h:1073
static const cob_field c_2
Definition: cobxref.c.h:31
unsigned char flag_host_sign
Definition: common.h:1076
unsigned int module_param_cnt
Definition: common.h:1064
unsigned char flag_first_read
Definition: common.h:1138
unsigned char flag_read_done
Definition: common.h:1139
cob_file_key * keys
Definition: common.h:1117
void cob_unstring_finish(void)
Definition: strings.c:620
static const char st_7[]
Definition: cobxref.c.h:129
int module_num_params
Definition: common.h:1066
static const char st_19[]
Definition: cobxref.c.h:141
int cob_cmp(cob_field *f1, cob_field *f2)
Definition: common.c:2318
#define COB_FERROR_FILE
Definition: common.h:701
static cob_file * h_INTRINSIC_STREAM
static const char st_23[]
Definition: cobxref.c.h:145
void cob_unstring_delimited(cob_field *, const unsigned int)
static cob_field f_22
#define COB_FERROR_STACK
Definition: common.h:695
static cob_field f_16
const char * module_name
Definition: common.h:1049
void cob_set_cancel(cob_module *m)
Definition: call.c:885
static const cob_field c_1
Definition: cobxref.c.h:30
static const char st_13[]
Definition: cobxref.c.h:135
static const char * cob_module_path
Definition: cobxref.c.h:10
static const char st_1[]
Definition: cobxref.c.h:123
#define COB_SELECT_FILE_STATUS
Definition: common.h:757
void cob_open(cob_file *, const int, const int, cob_field *)
Definition: fileio.c:4438
#define COB_SET_FLD(v, x, y, z)
Definition: common.h:685
#define COB_MODULE_FORMATTED_DATE
unsigned char flag_needs_top
Definition: common.h:1142
static const char st_22[]
Definition: cobxref.c.h:144
static cob_field f_8
Definition: cobxref.c.l.h:197
unsigned char decimal_point
Definition: common.h:1069
static const char st_9[]
Definition: cobxref.c.h:131
void cob_display(const int, const int, const int,...)
Definition: termio.c:238
cob_field * variable_record
Definition: common.h:1116
void cob_module_enter(cob_module **module, cob_global **mglobal, const int auto_init)
Definition: common.c:1796
static const cob_field c_3
Definition: cobxref.c.h:32
int fd
Definition: common.h:1125
unsigned char flag_select_features
Definition: common.h:1140
static cob_field f_7
void cob_unstring_init(cob_field *, cob_field *, const size_t)
Definition: strings.c:487
static size_t initialized
Definition: typeck.c:102
static const char st_21[]
Definition: cobxref.c.h:143
cob_field * cursor_pos
Definition: common.h:1056
static cob_field f_15
unsigned int module_returning
Definition: common.h:1065
static const cob_field c_7
Definition: cobxref.c.h:36
unsigned char last_open_mode
Definition: common.h:1132
static cob_field f_6
static const cob_field c_4
Definition: cobxref.c.h:33
#define COB_PACKAGE_VERSION
const char ** module_path
Definition: common.h:1058
cob_call_union module_cancel
Definition: common.h:1053
int cob_exception_code
Definition: common.h:1203
unsigned char flag_begin_of_file
Definition: common.h:1137
unsigned char open_mode
Definition: common.h:1130
size_t nkeys
Definition: common.h:1124
#define COB_CLOSE_NORMAL
Definition: common.h:792
void * file
Definition: common.h:1118
const char * module_source
Definition: common.h:1051
cob_field ** cob_procedure_params
Definition: common.h:1048
unsigned char access_mode
Definition: common.h:1128
int cob_cmp_numdisp(const unsigned char *, const size_t, const long long, const unsigned int)
unsigned char flag_nonexistent
Definition: common.h:1134
unsigned char flag_end_of_file
Definition: common.h:1136
#define COB_SOURCE_FILE
unsigned char flag_pretty_display
Definition: common.h:1075
cob_field * crt_status
Definition: common.h:1055
static int b_26
static cob_field f_21
unsigned char flag_needs_nl
Definition: common.h:1141
unsigned char file_version
Definition: common.h:1143
const char * select_name
Definition: common.h:1112
static const char st_14[]
Definition: cobxref.c.h:136
unsigned char flag_no_phys_canc
Definition: common.h:1078
static cob_field f_9
Definition: cobxref.c.l.h:198
void * cob_cache_malloc(const size_t size)
Definition: common.c:1321
#define COB_MODULE_TIME
static const char st_6[]
Definition: cobxref.c.h:128