mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-10 15:25:58 +02:00
* fixed recording generics token line info on big endian systems
git-svn-id: trunk@23926 -
This commit is contained in:
parent
cf760602ef
commit
8b7071c8e8
@ -2596,7 +2596,7 @@ In case not, the value returned can be arbitrary.
|
|||||||
s:=ST_LINE;
|
s:=ST_LINE;
|
||||||
writetoken(t);
|
writetoken(t);
|
||||||
recordtokenbuf.write(s,1);
|
recordtokenbuf.write(s,1);
|
||||||
recordtokenbuf.write(current_tokenpos.line,sizeof(current_tokenpos.line));
|
tokenwritelongint(current_tokenpos.line);
|
||||||
last_filepos.line:=current_tokenpos.line;
|
last_filepos.line:=current_tokenpos.line;
|
||||||
end;
|
end;
|
||||||
if current_tokenpos.column<>last_filepos.column then
|
if current_tokenpos.column<>last_filepos.column then
|
||||||
@ -2612,7 +2612,7 @@ In case not, the value returned can be arbitrary.
|
|||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
recordtokenbuf.write(s,1);
|
recordtokenbuf.write(s,1);
|
||||||
recordtokenbuf.write(current_tokenpos.column,sizeof(current_tokenpos.column));
|
tokenwriteword(current_tokenpos.column);
|
||||||
end;
|
end;
|
||||||
last_filepos.column:=current_tokenpos.column;
|
last_filepos.column:=current_tokenpos.column;
|
||||||
end;
|
end;
|
||||||
@ -2621,7 +2621,7 @@ In case not, the value returned can be arbitrary.
|
|||||||
s:=ST_FILEINDEX;
|
s:=ST_FILEINDEX;
|
||||||
writetoken(t);
|
writetoken(t);
|
||||||
recordtokenbuf.write(s,1);
|
recordtokenbuf.write(s,1);
|
||||||
recordtokenbuf.write(current_tokenpos.fileindex,sizeof(current_tokenpos.fileindex));
|
tokenwriteword(current_tokenpos.fileindex);
|
||||||
last_filepos.fileindex:=current_tokenpos.fileindex;
|
last_filepos.fileindex:=current_tokenpos.fileindex;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user