|
@@ -143,6 +143,9 @@ interface
|
|
|
preproc_pattern : string;
|
|
|
preproc_token : ttoken;
|
|
|
|
|
|
+ { true, if we are parsing preprocessor expressions }
|
|
|
+ in_preproc_comp_expr : boolean;
|
|
|
+
|
|
|
constructor Create(const fn:string; is_macro: boolean = false);
|
|
|
destructor Destroy;override;
|
|
|
{ File buffer things }
|
|
@@ -238,9 +241,6 @@ interface
|
|
|
{$endif PREPROCWRITE}
|
|
|
|
|
|
var
|
|
|
- { true, if we are parsing preprocessor expressions }
|
|
|
- in_preproc_comp_expr: boolean = false;
|
|
|
-
|
|
|
{ read strings }
|
|
|
c : char;
|
|
|
orgpattern,
|
|
@@ -2120,12 +2120,12 @@ type
|
|
|
end;
|
|
|
|
|
|
begin
|
|
|
- in_preproc_comp_expr:=true;
|
|
|
+ current_scanner.in_preproc_comp_expr:=true;
|
|
|
current_scanner.skipspace;
|
|
|
{ start preproc expression scanner }
|
|
|
current_scanner.preproc_token:=current_scanner.readpreproc;
|
|
|
preproc_comp_expr:=preproc_sub_expr(opcompare,true);
|
|
|
- in_preproc_comp_expr:=false;
|
|
|
+ current_scanner.in_preproc_comp_expr:=false;
|
|
|
end;
|
|
|
|
|
|
function boolean_compile_time_expr(var valuedescr: string): Boolean;
|