|
@@ -7,7 +7,7 @@ type
|
|
const
|
|
const
|
|
yp_maxlevels = 16;
|
|
yp_maxlevels = 16;
|
|
var
|
|
var
|
|
- Defines: TFPStringHashTable;
|
|
|
|
|
|
+ Defines: TStringHashTable;
|
|
skip : array[0..yp_maxlevels-1] of boolean;
|
|
skip : array[0..yp_maxlevels-1] of boolean;
|
|
cheadermode: boolean;
|
|
cheadermode: boolean;
|
|
level : longint;
|
|
level : longint;
|
|
@@ -28,7 +28,7 @@ var
|
|
constructor typreproc.Create;
|
|
constructor typreproc.Create;
|
|
begin
|
|
begin
|
|
inherited Create;
|
|
inherited Create;
|
|
- Defines:= TFPStringHashTable.Create;
|
|
|
|
|
|
+ Defines:= TStringHashTable.Create;
|
|
level:= 0;
|
|
level:= 0;
|
|
cheadermode:= false;
|
|
cheadermode:= false;
|
|
fillchar(skip,sizeof(skip),0);
|
|
fillchar(skip,sizeof(skip),0);
|
|
@@ -65,12 +65,12 @@ end;
|
|
|
|
|
|
function typreproc.isdefine(ident: string): boolean;
|
|
function typreproc.isdefine(ident: string): boolean;
|
|
begin
|
|
begin
|
|
- Result:= Defines.Find(ident) <> nil;
|
|
|
|
|
|
+ Result:= Defines.IndexOf(ident) >= 0;
|
|
end;
|
|
end;
|
|
|
|
|
|
function typreproc.getdefine(ident: string): string;
|
|
function typreproc.getdefine(ident: string): string;
|
|
begin
|
|
begin
|
|
- Result:= Defines.Items[ident];
|
|
|
|
|
|
+ Result:= Defines[ident];
|
|
end;
|
|
end;
|
|
|
|
|
|
function typreproc.useline(line: string): boolean;
|
|
function typreproc.useline(line: string): boolean;
|
|
@@ -134,7 +134,7 @@ begin
|
|
Defines[arg1]:= w;
|
|
Defines[arg1]:= w;
|
|
end;
|
|
end;
|
|
'undef': begin
|
|
'undef': begin
|
|
- Defines.Delete(w);
|
|
|
|
|
|
+ Defines.Remove(w);
|
|
end;
|
|
end;
|
|
'include': begin
|
|
'include': begin
|
|
arg1:= yinclude.expand(w);
|
|
arg1:= yinclude.expand(w);
|