Fix handling of ST_LOADMESSAGES token

This commit is contained in:
Pierre Muller 2023-11-06 20:50:24 +00:00
parent 81157e9846
commit bc1c93c05f

View File

@ -2722,15 +2722,12 @@ begin
end; end;
ST_LOADMESSAGES: ST_LOADMESSAGES:
begin begin
inc(tbi); mesgnb:=gettokenbufsizeint;;
mesgnb:=tokenbuf[tbi];
writeln([space,mesgnb,' messages: ']); writeln([space,mesgnb,' messages: ']);
inc(tbi);
for nb:=1 to mesgnb do for nb:=1 to mesgnb do
begin begin
msgvalue:=gettokenbufsizeint; msgvalue:=gettokenbuflongint;
//inc(tbi,sizeof(sizeint)); state:=tmsgstate(gettokenbuflongint);
state:=tmsgstate(gettokenbufsizeint);
writeln(['#',msgvalue,' ',state]); writeln(['#',msgvalue,' ',state]);
end; end;
end; end;