References _, COBC_ABORT, cobc_abort_pr(), and output_storage().
Referenced by codegen().
53 output_storage (
"cob_set_screen (cob_screen *s, cob_screen *next,");
54 output_storage (
" cob_screen *child, cob_field *field, cob_field *value,");
56 output_storage (
" cob_field *foreg, cob_field *backg, cob_field *prompt,");
57 output_storage (
" const int type, const int occurs, const int attr)");
74 case COB_POINTER_MANIP:
76 output_storage (
"cob_pointer_manip (cob_field *f1, cob_field *f2, const unsigned int addsub)");
91 output_storage (
"cob_get_numdisp (const void *data, const size_t size)");
107 case COB_CMP_PACKED_INT:
109 output_storage (
"cob_cmp_packed_int (const cob_field *f, const cob_s64_t n)");
117 output_storage (
" for (size = 0; size < f->size - 1; ++size, ++p) {");
132 case COB_GET_PACKED_INT:
141 output_storage (
" for (size = 0; size < f->size - 1; ++size, ++p) {");
156 case COB_ADD_PACKED_INT:
158 output_storage (
"cob_add_packed_int (cob_field *f, const int val)");
187 output_storage (
" for (size = 0; size < f->size - 1; ++size, --p) {");
191 output_storage (
" inc = ((*p >> 4) * 10) + (*p & 0x0f) + carry + (n %% 100);");
205 case COB_CMP_ALIGN_U16:
207 output_storage (
"cob_cmp_align_u16 (const void *p, const cob_s64_t n)");
219 case COB_CMP_ALIGN_S16:
221 output_storage (
"cob_cmp_align_s16 (const void *p, const cob_s64_t n)");
230 case COB_CMP_ALIGN_U32:
232 output_storage (
"cob_cmp_align_u32 (const void *p, const cob_s64_t n)");
244 case COB_CMP_ALIGN_S32:
246 output_storage (
"cob_cmp_align_s32 (const void *p, const cob_s64_t n)");
255 case COB_CMP_ALIGN_U64:
257 output_storage (
"cob_cmp_align_u64 (const void *p, const cob_s64_t n)");
269 case COB_CMP_ALIGN_S64:
271 output_storage (
"cob_cmp_align_s64 (const void *p, const cob_s64_t n)");
282 case COB_ADD_ALIGN_U16:
290 case COB_ADD_ALIGN_S16:
298 case COB_ADD_ALIGN_U32:
306 case COB_ADD_ALIGN_S32:
314 case COB_ADD_ALIGN_U64:
322 case COB_ADD_ALIGN_S64:
332 case COB_SUB_ALIGN_U16:
340 case COB_SUB_ALIGN_S16:
348 case COB_SUB_ALIGN_U32:
356 case COB_SUB_ALIGN_S32:
364 case COB_SUB_ALIGN_U64:
372 case COB_SUB_ALIGN_S64:
380 case COB_CMPSWP_ALIGN_U16:
382 output_storage (
"cob_cmpswp_align_u16 (const void *p, const cob_s64_t n)");
389 output_storage (
" val = COB_BSWAP_16 (*(unsigned short __unaligned *)p);");
394 case COB_CMPSWP_ALIGN_S16:
396 output_storage (
"cob_cmpswp_align_s16 (const void *p, const cob_s64_t n)");
400 output_storage (
" val = COB_BSWAP_16 (*(short __unaligned *)p);");
405 case COB_CMPSWP_ALIGN_U32:
407 output_storage (
"cob_cmpswp_align_u32 (const void *p, const cob_s64_t n)");
414 output_storage (
" val = COB_BSWAP_32 (*(unsigned int __unaligned *)p);");
419 case COB_CMPSWP_ALIGN_S32:
421 output_storage (
"cob_cmpswp_align_s32 (const void *p, const cob_s64_t n)");
430 case COB_CMPSWP_ALIGN_U64:
432 output_storage (
"cob_cmpswp_align_u64 (const void *p, const cob_s64_t n)");
439 output_storage (
" val = COB_BSWAP_64 (*(cob_u64_t __unaligned *)p);");
444 case COB_CMPSWP_ALIGN_S64:
446 output_storage (
"cob_cmpswp_align_s64 (const void *p, const cob_s64_t n)");
450 output_storage (
" val = COB_BSWAP_64 (*(cob_s64_t __unaligned *)p);");
464 output_storage (
" return (*(const unsigned char *)p < n) ? -1 : (*(const unsigned char *)p > n);");
472 output_storage (
" return (*(const signed char *)p < n) ? -1 : (*(const signed char *)p > n);");
478 output_storage (
"cob_cmp_u16 (const void *p, const cob_s64_t n)");
480 #ifndef COB_ALLOW_UNALIGNED
488 #ifdef COB_ALLOW_UNALIGNED
489 output_storage (
" val = *(const unsigned short __unaligned *)p;");
500 output_storage (
"cob_cmp_s16 (const void *p, const cob_s64_t n)");
504 #ifdef COB_ALLOW_UNALIGNED
518 output_storage (
"cob_cmp_u24 (const void *p, const cob_s64_t n)");
526 #ifdef WORDS_BIGENDIAN
538 output_storage (
"cob_cmp_s24 (const void *p, const cob_s64_t n)");
543 #ifdef WORDS_BIGENDIAN
556 output_storage (
"cob_cmp_u32 (const void *p, const cob_s64_t n)");
558 #ifndef COB_ALLOW_UNALIGNED
566 #ifdef COB_ALLOW_UNALIGNED
578 output_storage (
"cob_cmp_s32 (const void *p, const cob_s64_t n)");
582 #ifdef COB_ALLOW_UNALIGNED
596 output_storage (
"cob_cmp_u40 (const void *p, const cob_s64_t n)");
604 #ifdef WORDS_BIGENDIAN
616 output_storage (
"cob_cmp_s40 (const void *p, const cob_s64_t n)");
621 #ifdef WORDS_BIGENDIAN
634 output_storage (
"cob_cmp_u48 (const void *p, const cob_s64_t n)");
642 #ifdef WORDS_BIGENDIAN
654 output_storage (
"cob_cmp_s48 (const void *p, const cob_s64_t n)");
659 #ifdef WORDS_BIGENDIAN
672 output_storage (
"cob_cmp_u56 (const void *p, const cob_s64_t n)");
680 #ifdef WORDS_BIGENDIAN
692 output_storage (
"cob_cmp_s56 (const void *p, const cob_s64_t n)");
697 #ifdef WORDS_BIGENDIAN
710 output_storage (
"cob_cmp_u64 (const void *p, const cob_s64_t n)");
712 #ifndef COB_ALLOW_UNALIGNED
720 #ifdef COB_ALLOW_UNALIGNED
732 output_storage (
"cob_cmp_s64 (const void *p, const cob_s64_t n)");
736 #ifdef COB_ALLOW_UNALIGNED
770 #ifdef COB_ALLOW_UNALIGNED
788 #ifdef COB_ALLOW_UNALIGNED
809 #ifdef WORDS_BIGENDIAN
827 #ifdef WORDS_BIGENDIAN
835 #ifdef WORDS_BIGENDIAN
848 #ifdef COB_ALLOW_UNALIGNED
866 #ifdef COB_ALLOW_UNALIGNED
887 #ifdef WORDS_BIGENDIAN
905 #ifdef WORDS_BIGENDIAN
913 #ifdef WORDS_BIGENDIAN
929 #ifdef WORDS_BIGENDIAN
947 #ifdef WORDS_BIGENDIAN
955 #ifdef WORDS_BIGENDIAN
971 #ifdef WORDS_BIGENDIAN
989 #ifdef WORDS_BIGENDIAN
997 #ifdef WORDS_BIGENDIAN
1010 #ifdef COB_ALLOW_UNALIGNED
1028 #ifdef COB_ALLOW_UNALIGNED
1062 #ifdef COB_ALLOW_UNALIGNED
1080 #ifdef COB_ALLOW_UNALIGNED
1101 #ifdef WORDS_BIGENDIAN
1119 #ifdef WORDS_BIGENDIAN
1127 #ifdef WORDS_BIGENDIAN
1140 #ifdef COB_ALLOW_UNALIGNED
1158 #ifdef COB_ALLOW_UNALIGNED
1179 #ifdef WORDS_BIGENDIAN
1197 #ifdef WORDS_BIGENDIAN
1205 #ifdef WORDS_BIGENDIAN
1221 #ifdef WORDS_BIGENDIAN
1239 #ifdef WORDS_BIGENDIAN
1247 #ifdef WORDS_BIGENDIAN
1263 #ifdef WORDS_BIGENDIAN
1281 #ifdef WORDS_BIGENDIAN
1289 #ifdef WORDS_BIGENDIAN
1302 #ifdef COB_ALLOW_UNALIGNED
1320 #ifdef COB_ALLOW_UNALIGNED
1336 case COB_CMPSWP_U16:
1338 output_storage (
"cob_cmpswp_u16 (const void *p, const cob_s64_t n)");
1340 #ifndef COB_ALLOW_UNALIGNED
1348 #ifdef COB_ALLOW_UNALIGNED
1349 output_storage (
" val = COB_BSWAP_16 (*(unsigned short __unaligned *)p);");
1359 case COB_CMPSWP_S16:
1361 output_storage (
"cob_cmpswp_s16 (const void *p, const cob_s64_t n)");
1365 #ifdef COB_ALLOW_UNALIGNED
1366 output_storage (
" val = COB_BSWAP_16 (*(short __unaligned *)p);");
1378 case COB_CMPSWP_U24:
1380 output_storage (
"cob_cmpswp_u24 (const void *p, const cob_s64_t n)");
1395 case COB_CMPSWP_S24:
1397 output_storage (
"cob_cmpswp_s24 (const void *p, const cob_s64_t n)");
1410 case COB_CMPSWP_U32:
1412 output_storage (
"cob_cmpswp_u32 (const void *p, const cob_s64_t n)");
1414 #ifndef COB_ALLOW_UNALIGNED
1422 #ifdef COB_ALLOW_UNALIGNED
1423 output_storage (
" val = COB_BSWAP_32 (*(const unsigned int __unaligned *)p);");
1433 case COB_CMPSWP_S32:
1435 output_storage (
"cob_cmpswp_s32 (const void *p, const cob_s64_t n)");
1439 #ifdef COB_ALLOW_UNALIGNED
1440 output_storage (
" val = COB_BSWAP_32 (*(const int __unaligned *)p);");
1452 case COB_CMPSWP_U40:
1454 output_storage (
"cob_cmpswp_u40 (const void *p, const cob_s64_t n)");
1469 case COB_CMPSWP_S40:
1471 output_storage (
"cob_cmpswp_s40 (const void *p, const cob_s64_t n)");
1484 case COB_CMPSWP_U48:
1486 output_storage (
"cob_cmpswp_u48 (const void *p, const cob_s64_t n)");
1501 case COB_CMPSWP_S48:
1503 output_storage (
"cob_cmpswp_s48 (const void *p, const cob_s64_t n)");
1516 case COB_CMPSWP_U56:
1518 output_storage (
"cob_cmpswp_u56 (const void *p, const cob_s64_t n)");
1533 case COB_CMPSWP_S56:
1535 output_storage (
"cob_cmpswp_s56 (const void *p, const cob_s64_t n)");
1548 case COB_CMPSWP_U64:
1550 output_storage (
"cob_cmpswp_u64 (const void *p, const cob_s64_t n)");
1552 #ifndef COB_ALLOW_UNALIGNED
1560 #ifdef COB_ALLOW_UNALIGNED
1561 output_storage (
" val = COB_BSWAP_64 (*(const cob_u64_t __unaligned *)p);");
1571 case COB_CMPSWP_S64:
1573 output_storage (
"cob_cmpswp_s64 (const void *p, const cob_s64_t n)");
1577 #ifdef COB_ALLOW_UNALIGNED
1578 output_storage (
" val = COB_BSWAP_64 (*(const cob_s64_t __unaligned *)p);");
1591 case COB_ADDSWP_U16:
1597 #ifdef COB_ALLOW_UNALIGNED
1598 output_storage (
" n = COB_BSWAP_16 (*(unsigned short __unaligned *)p);");
1600 output_storage (
" *(unsigned short __unaligned *)p = COB_BSWAP_16(n);");
1615 case COB_ADDSWP_S16:
1621 #ifdef COB_ALLOW_UNALIGNED
1639 case COB_ADDSWP_U24:
1658 case COB_ADDSWP_S24:
1679 case COB_ADDSWP_U32:
1685 #ifdef COB_ALLOW_UNALIGNED
1686 output_storage (
" n = COB_BSWAP_32 (*(unsigned int __unaligned *)p);");
1688 output_storage (
" *(unsigned int __unaligned *)p = COB_BSWAP_32(n);");
1707 case COB_ADDSWP_S32:
1713 #ifdef COB_ALLOW_UNALIGNED
1735 case COB_ADDSWP_U40:
1758 case COB_ADDSWP_S40:
1783 case COB_ADDSWP_U48:
1808 case COB_ADDSWP_S48:
1835 case COB_ADDSWP_U56:
1862 case COB_ADDSWP_S56:
1891 case COB_ADDSWP_U64:
1897 #ifdef COB_ALLOW_UNALIGNED
1898 output_storage (
" n = COB_BSWAP_64 (*(cob_u64_t __unaligned *)p);");
1900 output_storage (
" *(cob_u64_t __unaligned *)p = COB_BSWAP_64(n);");
1927 case COB_ADDSWP_S64:
1933 #ifdef COB_ALLOW_UNALIGNED
1934 output_storage (
" n = COB_BSWAP_64 (*(cob_s64_t __unaligned *)p);");
1936 output_storage (
" *(cob_s64_t __unaligned *)p = COB_BSWAP_64(n);");
1965 case COB_SUBSWP_U16:
1971 #ifdef COB_ALLOW_UNALIGNED
1972 output_storage (
" n = COB_BSWAP_16 (*(unsigned short __unaligned *)p);");
1974 output_storage (
" *(unsigned short __unaligned *)p = COB_BSWAP_16(n);");
1989 case COB_SUBSWP_S16:
1995 #ifdef COB_ALLOW_UNALIGNED
2013 case COB_SUBSWP_U24:
2032 case COB_SUBSWP_S24:
2053 case COB_SUBSWP_U32:
2059 #ifdef COB_ALLOW_UNALIGNED
2060 output_storage (
" n = COB_BSWAP_32 (*(unsigned int __unaligned *)p);");
2062 output_storage (
" *(unsigned int __unaligned *)p = COB_BSWAP_32(n);");
2081 case COB_SUBSWP_S32:
2087 #ifdef COB_ALLOW_UNALIGNED
2109 case COB_SUBSWP_U40:
2132 case COB_SUBSWP_S40:
2157 case COB_SUBSWP_U48:
2182 case COB_SUBSWP_S48:
2209 case COB_SUBSWP_U56:
2236 case COB_SUBSWP_S56:
2265 case COB_SUBSWP_U64:
2271 #ifdef COB_ALLOW_UNALIGNED
2272 output_storage (
" n = COB_BSWAP_64 (*(cob_u64_t __unaligned *)p);");
2274 output_storage (
" *(cob_u64_t __unaligned *)p = COB_BSWAP_64(n);");
2301 case COB_SUBSWP_S64:
2307 #ifdef COB_ALLOW_UNALIGNED
2308 output_storage (
" n = COB_BSWAP_64 (*(cob_s64_t __unaligned *)p);");
2310 output_storage (
" *(cob_s64_t __unaligned *)p = COB_BSWAP_64(n);");
2338 case COB_SETSWP_U16:
2344 #ifdef COB_ALLOW_UNALIGNED
2346 output_storage (
" *(unsigned short __unaligned *)p = COB_BSWAP_16(n);");
2359 case COB_SETSWP_S16:
2365 #ifdef COB_ALLOW_UNALIGNED
2380 case COB_SETSWP_U24:
2396 case COB_SETSWP_S24:
2412 case COB_SETSWP_U32:
2418 #ifdef COB_ALLOW_UNALIGNED
2420 output_storage (
" *(unsigned int __unaligned *)p = COB_BSWAP_32(n);");
2435 case COB_SETSWP_S32:
2441 #ifdef COB_ALLOW_UNALIGNED
2458 case COB_SETSWP_U40:
2476 case COB_SETSWP_S40:
2494 case COB_SETSWP_U48:
2513 case COB_SETSWP_S48:
2532 case COB_SETSWP_U56:
2552 case COB_SETSWP_S56:
2572 case COB_SETSWP_U64:
2578 #ifdef COB_ALLOW_UNALIGNED
2580 output_storage (
" *(cob_u64_t __unaligned *)p = COB_BSWAP_64(n);");
2599 case COB_SETSWP_S64:
2605 #ifdef COB_ALLOW_UNALIGNED
2607 output_storage (
" *(cob_s64_t __unaligned *)p = COB_BSWAP_64(n);");