GnuCOBOL  2.0
A free COBOL compiler
flag.def
Go to the documentation of this file.
1 /*
2  Copyright (C) 2003-2012, 2014-2015 Free Software Foundation, Inc.
3  Written by Keisuke Nishida, Roger While, Simon Sobisch
4 
5  This file is part of GnuCOBOL.
6 
7  The GnuCOBOL compiler is free software: you can redistribute it
8  and/or modify it under the terms of the GNU General Public License
9  as published by the Free Software Foundation, either version 3 of the
10  License, or (at your option) any later version.
11 
12  GnuCOBOL is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with GnuCOBOL. If not, see <http://www.gnu.org/licenses/>.
19 */
20 
21 
22 /* Compiler flag defines */
23 
24 /* Normal binary flags */
25 /* CB_FLAG (var, help switch, name, help) */
26 
27 /* Flags with required parameter */
28 /* CB_FLAG_RQ (var, help switch, name, default, getopt return, help) */
29 
30 /* Flags with required parameter and no associated variable */
31 /* CB_FLAG_NQ (help switch, name, getopt return, help) */
32 
33 
34 /* Flags with required parameter */
35 
36 CB_FLAG_RQ (cb_stack_size, 0, "stack-size", 255, 1,
37  _("define PERFORM stack size\n\t\t\t- default: 255"))
38 
39 CB_FLAG_RQ (cb_if_cutoff, 0, "if-cutoff", 3, 2,
40  _("define cutoff depth for IF statements\n\t\t\t- default: 3"))
41 
42 CB_FLAG_RQ (cb_ebcdic_sign, 1, "sign", 0, 3,
43  _("define display sign representation\n\t\t\t- ASCII or EBCDIC (default: machine native)"))
44 
45 CB_FLAG_RQ (cb_fold_copy, 1, "fold-copy", 0, 4,
46  _("fold COPY subject to value\n\t\t\t- UPPER or LOWER (default: no transformation)"))
47 
48 CB_FLAG_RQ (cb_fold_call, 1, "fold-call", 0, 5,
49  _("fold PROGRAM-ID, CALL, CANCEL subject to value\n\t\t\t- UPPER or LOWER (default: no transformation)"))
50 
51 CB_FLAG_RQ (cb_default_byte, 1, "defaultbyte", -1, 6,
52  _("initialize fields without VALUE to decimal value\n\t\t\t- 0 to 255 (default: initialize to picture)"))
53 
54 /* Flags with required parameter and no associated variable */
55 
57  _("intrinsics to be used without FUNCTION keyword\n\t\t\t- ALL or intrinsic function name(,name,...)"))
58 
59 /* Binary flags */
60 
61 /* Flags with suppressed help */
62 CB_FLAG (cb_flag_static_call, 0, "static-call",
63  _("output static function calls for the CALL statement"))
64 
65 CB_FLAG (cb_flag_computed_goto, 0, "computed-goto",
66  _("generate computed goto C statements"))
67 
68 CB_FLAG (cb_flag_alt_ebcdic, 0, "alternate-ebcdic",
69  _("use restricted ASCII to EBCDIC translate"))
70 
71 CB_FLAG (cb_flag_extra_brace, 0, "extra-brace",
72  _("generate extra braces in generated C code"))
73 
74 CB_FLAG (cb_flag_correct_numeric, 0, "correct-numeric",
75  _("attempt correction of invalid numeric display items"))
76 
77 CB_FLAG (cb_flag_stack_on_heap, 0, "stack-on-heap",
78  _("PERFORM stack allocated on heap"))
79 
80 /* Normal flags */
81 CB_FLAG (cb_flag_trace, 1, "trace",
82  _("generate trace code\n\t\t\t- executed SECTION/PARAGRAPH"))
83 
84 CB_FLAG (cb_flag_traceall, 1, "traceall",
85  _("generate trace code\n\t\t\t- executed SECTION/PARAGRAPH/STATEMENTS\n\t\t\t- turned on by -debug"))
86 
87 CB_FLAG (cb_flag_syntax_only, 1, "syntax-only",
88  _("syntax error checking only; don't emit any output"))
89 
90 CB_FLAG (cb_flag_debugging_line, 1, "debugging-line",
91  _("enable debugging lines\n\t\t\t- 'D' in indicator column or floating >>D"))
92 
93 CB_FLAG (cb_flag_source_location, 1, "source-location",
94  _("generate source location code\n\t\t\t- turned on by -debug/-g/-ftraceall"))
95 
96 CB_FLAG (cb_flag_implicit_init, 1, "implicit-init",
97  _("automatic initialization of the COBOL runtime system"))
98 
99 CB_FLAG (cb_flag_stack_check, 1, "stack-check",
100  _("PERFORM stack checking\n\t\t\t- turned on by -debug or -g"))
101 
102 CB_FLAG (cb_flag_syntax_extension, 1, "syntax-extension",
103  _("allow syntax extensions\n\t\t\t- eg. switch name SW1, etc."))
104 
105 CB_FLAG (cb_flag_write_after, 1, "write-after",
106  _("use AFTER 1 for WRITE of LINE SEQUENTIAL\n\t\t\t- default: BEFORE 1"))
107 
108 CB_FLAG (cb_flag_mfcomment, 1, "mfcomment",
109  _("'*' or '/' in column 1 treated as comment\n\t\t\t- FIXED format only"))
110 
111 CB_FLAG (cb_flag_acucomment, 1, "acucomment",
112  _("'$' in indicator area treated as '*',\n\t\t\t'|' treated as floating comment"))
113 
114 CB_FLAG (cb_flag_notrunc, 1, "notrunc",
115  _("allow numeric field overflow\n\t\t\t- non-ANSI behaviour"))
116 
117 CB_FLAG (cb_flag_odoslide, 1, "odoslide",
118  _("adjust items following OCCURS DEPENDING\n\t\t\t- requires implicit/explicit relaxed syntax"))
119 
120 CB_FLAG (cb_flag_apostrophe, 1, "single-quote",
121  _("use a single quote (apostrophe) for QUOTE\n\t\t\t- default: double quote"))
122 
123 CB_FLAG (cb_flag_recursive, 1, "recursive-check",
124  _("check recursive program call"))
125 
126 CB_FLAG (cb_flag_relaxed_syntax, 1, "relax-syntax",
127  _("relax syntax checking\n\t\t\t- eg. REDEFINES position"))
128 
129 CB_FLAG (cb_flag_optional_file, 1, "optional-file",
130  _("treat all files as OPTIONAL\n\t\t\t- unless NOT OPTIONAL specified"))
131 
const char * name
Definition: tree.h:645
if fold fold static computed alternate extra correct stack on syntax debugging source implicit stack syntax write single quote
Definition: flag.def:120
Definition: parser.c:1437
if fold fold static computed alternate extra correct stack on traceall
Definition: flag.def:84
if fold fold static computed alternate extra correct stack on syntax debugging source implicit stack check
Definition: flag.def:99
if fold fold defaultbyte
Definition: flag.def:51
if fold fold static computed alternate extra correct numeric
Definition: flag.def:74
static void output(const char *,...)
Definition: codegen.c:192
Definition: ppparse.c:600
Definition: parser.c:1856
if _("define cutoff depth for IF statements\n\t\t\t- default: 3")) CB_FLAG_RQ(cb_ebcdic_sign
if fold fold static computed alternate extra correct stack on trace
Definition: flag.def:81
if fold fold static computed alternate ebcdic
Definition: flag.def:68
if fold fold static computed alternate extra correct stack on syntax debugging source implicit stack syntax extension
Definition: flag.def:102
#define CB_FLAG(var, pdok, name, doc)
Definition: cobc.c:196
if fold copy
Definition: flag.def:45
Definition: parser.c:1695
if fold fold static computed alternate extra correct stack on syntax debugging source implicit stack syntax write single recursive relax optional file
Definition: flag.def:129
Definition: parser.c:1371
Definition: parser.c:1839
Definition: parser.c:1607
if fold fold static computed alternate extra correct stack on syntax only
Definition: flag.def:87
if fold fold static computed goto
Definition: flag.def:65
CB_FLAG_RQ(cb_stack_size, 0,"stack-size", 255, 1, _("define PERFORM stack size\n\t\t\t- default: 255")) CB_FLAG_RQ(cb_if_cutoff
Definition: parser.c:1596
strict implicit define
Definition: warning.def:48
strict implicit external value
Definition: warning.def:54
if fold fold call
Definition: flag.def:48
if fold fold static computed alternate extra correct stack on syntax debugging source implicit stack syntax write odoslide
Definition: flag.def:117
if fold fold static computed alternate extra correct stack on syntax debugging source location
Definition: flag.def:93
Definition: parser.c:1557
#define VALUE(offset)
Definition: typeck.c:71
#define CB_FLAG_NQ(pdok, name, opt, doc)
Definition: cobc.c:198
if fold fold static computed alternate extra brace
Definition: flag.def:71
if sign
Definition: flag.def:42
Definition: parser.c:1559
if fold fold static computed alternate extra correct stack on heap
Definition: flag.def:77
Definition: parser.c:1351
if fold fold static computed alternate extra correct stack on syntax debugging source implicit init
Definition: flag.def:96
if fold fold static computed alternate extra correct stack on syntax debugging source implicit stack syntax write notrunc
Definition: flag.def:114
if cutoff
Definition: flag.def:39
Definition: parser.c:1394
if fold fold static computed alternate extra correct stack on syntax debugging line
Definition: flag.def:90
strict implicit external call column overflow
Definition: warning.def:63
static int depth
Definition: parser.c:222
if fold fold static computed alternate extra correct stack on syntax debugging source implicit stack syntax write acucomment
Definition: flag.def:111
Definition: parser.c:1634
if fold fold static computed alternate extra correct stack on syntax debugging source implicit stack syntax write mfcomment
Definition: flag.def:108
if fold fold intrinsics
Definition: flag.def:56
Definition: parser.c:1352
if fold fold static computed alternate extra correct stack on syntax debugging source implicit stack syntax write single recursive relax syntax
Definition: flag.def:126
if fold fold static computed alternate extra correct stack on syntax debugging source implicit stack syntax write after
Definition: flag.def:105