|
@@ -377,10 +377,9 @@ interface
|
|
|
end;
|
|
|
|
|
|
tai_directive = class(tailineinfo)
|
|
|
- name : pshortstring;
|
|
|
+ name : ansistring;
|
|
|
directive : TAsmDirective;
|
|
|
- constructor Create(_directive:TAsmDirective;const _name:string);
|
|
|
- destructor Destroy;override;
|
|
|
+ constructor Create(_directive:TAsmDirective;const _name:ansistring);
|
|
|
constructor ppuload(t:taitype;ppufile:tcompilerppufile);override;
|
|
|
procedure ppuwrite(ppufile:tcompilerppufile);override;
|
|
|
end;
|
|
@@ -1154,25 +1153,19 @@ implementation
|
|
|
TAI_SYMBOL_END
|
|
|
****************************************************************************}
|
|
|
|
|
|
- constructor tai_directive.Create(_directive:TAsmDirective;const _name:string);
|
|
|
+ constructor tai_directive.Create(_directive:TAsmDirective;const _name:ansistring);
|
|
|
begin
|
|
|
inherited Create;
|
|
|
typ:=ait_directive;
|
|
|
- name:=stringdup(_name);
|
|
|
+ name:=_name;
|
|
|
directive:=_directive;
|
|
|
end;
|
|
|
|
|
|
|
|
|
- destructor tai_directive.Destroy;
|
|
|
- begin
|
|
|
- stringdispose(name);
|
|
|
- end;
|
|
|
-
|
|
|
-
|
|
|
constructor tai_directive.ppuload(t:taitype;ppufile:tcompilerppufile);
|
|
|
begin
|
|
|
inherited ppuload(t,ppufile);
|
|
|
- name:=stringdup(ppufile.getstring);
|
|
|
+ name:=ppufile.getansistring;
|
|
|
directive:=TAsmDirective(ppufile.getbyte);
|
|
|
end;
|
|
|
|
|
@@ -1180,7 +1173,7 @@ implementation
|
|
|
procedure tai_directive.ppuwrite(ppufile:tcompilerppufile);
|
|
|
begin
|
|
|
inherited ppuwrite(ppufile);
|
|
|
- ppufile.putstring(name^);
|
|
|
+ ppufile.putansistring(name);
|
|
|
ppufile.putbyte(byte(directive));
|
|
|
end;
|
|
|
|