@@ -11,7 +11,7 @@ void compile_line(vector<string> &tokens, compiler_state &state)
11
11
// include
12
12
if (line_like (" INCLUDE $string" , tokens, state))
13
13
{
14
- if (state.section_state != 0 )
14
+ if (false && state.section_state != 0 )
15
15
badcode (
16
16
" you can only use the INCLUDE statement before the DATA and "
17
17
" PROCEDURE sections" ,
@@ -38,7 +38,7 @@ void compile_line(vector<string> &tokens, compiler_state &state)
38
38
// extension (INCLUDE but for c++ extensions)
39
39
if (line_like (" EXTENSION $string" , tokens, state))
40
40
{
41
- if (state.section_state != 0 )
41
+ if (false && state.section_state != 0 )
42
42
badcode (
43
43
" you can only use the EXTENSION statement before the DATA and "
44
44
" PROCEDURE sections" ,
@@ -62,7 +62,7 @@ void compile_line(vector<string> &tokens, compiler_state &state)
62
62
// extension flags (for the C++ compiler)
63
63
if (line_like (" FLAG $string" , tokens, state))
64
64
{
65
- if (state.section_state != 0 )
65
+ if (false && state.section_state != 0 )
66
66
badcode (
67
67
" you can only use the FLAG statement before the DATA and PROCEDURE "
68
68
" sections" ,
@@ -77,7 +77,7 @@ void compile_line(vector<string> &tokens, compiler_state &state)
77
77
// os-specific extension flags
78
78
if (line_like (" FLAG $name $string" , tokens, state))
79
79
{
80
- if (state.section_state != 0 )
80
+ if (false && state.section_state != 0 )
81
81
badcode (
82
82
" you can only use the FLAG statement before the DATA and PROCEDURE "
83
83
" sections" ,
@@ -253,16 +253,16 @@ void compile_line(vector<string> &tokens, compiler_state &state)
253
253
}
254
254
if (valid_type && i >= tokens.size () - 1 )
255
255
{
256
- if (state.section_state != 1 && state.section_state != 4 )
256
+ /* if (state.section_state != 1 && state.section_state != 4)
257
257
badcode(
258
258
"Variable declaration outside DATA, PARAMETERS or LOCAL DATA "
259
259
"section",
260
- state.where );
260
+ state.where);*/
261
261
if (state.variables [state.current_subprocedure ].count (tokens[0 ]) > 0 )
262
262
badcode (" Duplicate declaration for variable \" " + tokens[0 ] + " \" " ,
263
263
state.where );
264
264
state.variables [state.current_subprocedure ][tokens[0 ]] = type_number;
265
- if (state.section_state == 1 )
265
+ if (state.section_state != 4 )
266
266
{ // DATA or LOCAL DATA
267
267
string identifier = fix_identifier (tokens[0 ], true , state);
268
268
string type = state.get_c_type (type_number);
0 commit comments