mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-07 16:10:41 +02:00
sinclairql: turn the anyKey string const into a pchar, this reduces the final binary size by 200-odd bytes
git-svn-id: trunk@49196 -
This commit is contained in:
parent
f90324a02a
commit
da252e2f4b
@ -302,14 +302,14 @@ procedure haltproc(e:longint); external name '_haltproc';
|
||||
|
||||
procedure system_exit;
|
||||
const
|
||||
anyKey: string = 'Press any key to exit';
|
||||
anyKey: pchar = 'Press any key to exit';
|
||||
begin
|
||||
if assigned(args) then
|
||||
FreeMem(args);
|
||||
if assigned(argv) then
|
||||
FreeMem(argv);
|
||||
|
||||
io_sstrg(stdOutputHandle, -1, @anyKey[1], ord(anyKey[0]));
|
||||
io_sstrg(stdOutputHandle, -1, anyKey, length(anykey));
|
||||
io_fbyte(stdInputHandle, -1);
|
||||
|
||||
stdInputHandle:=UnusedHandle;
|
||||
|
Loading…
Reference in New Issue
Block a user