mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-11 21:46:00 +02:00
+ typinfo is now also in the makefile for go32v2
+ sysutils.filetruncate for go32v2
This commit is contained in:
parent
8e71408147
commit
befb0f2725
@ -80,7 +80,7 @@ OBJECTS=strings go32 initc \
|
|||||||
dpmiexcp profile dxeload emu387 \
|
dpmiexcp profile dxeload emu387 \
|
||||||
dos crt objects printer \
|
dos crt objects printer \
|
||||||
objpas sysutils \
|
objpas sysutils \
|
||||||
cpu mmx msmouse getopts heaptrc graph
|
cpu mmx msmouse getopts heaptrc graph typinfo
|
||||||
|
|
||||||
LOADERS=prt0 exceptn fpu
|
LOADERS=prt0 exceptn fpu
|
||||||
|
|
||||||
@ -260,7 +260,11 @@ include $(CFG)/makefile.def
|
|||||||
|
|
||||||
#
|
#
|
||||||
# $Log$
|
# $Log$
|
||||||
# Revision 1.5 1999-01-21 11:54:35 peter
|
# Revision 1.6 1999-02-09 17:16:58 florian
|
||||||
|
# + typinfo is now also in the makefile for go32v2
|
||||||
|
# + sysutils.filetruncate for go32v2
|
||||||
|
#
|
||||||
|
# Revision 1.5 1999/01/21 11:54:35 peter
|
||||||
# * renamed mouse->msmouse to resolve conflict with the api mouse unit
|
# * renamed mouse->msmouse to resolve conflict with the api mouse unit
|
||||||
#
|
#
|
||||||
# Revision 1.4 1999/01/15 11:47:16 peter
|
# Revision 1.4 1999/01/15 11:47:16 peter
|
||||||
|
@ -123,7 +123,17 @@ RealIntr($21, Regs);
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
Function FileTruncate (Handle,Size: Longint) : boolean;
|
Function FileTruncate (Handle,Size: Longint) : boolean;
|
||||||
|
var
|
||||||
|
regs : trealregs;
|
||||||
begin
|
begin
|
||||||
|
FileSeek(Handle,Size,0);
|
||||||
|
Regs.realecx := 0;
|
||||||
|
Regs.realedx := tb_offset;
|
||||||
|
Regs.ds := tb_segment;
|
||||||
|
Regs.ebx := Handle;
|
||||||
|
Regs.eax:=$4000;
|
||||||
|
RealIntr($21, Regs);
|
||||||
|
FileTruncate:=(regs.realflags and carryflag)=0;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
Function FileAge (Const FileName : String): Longint;
|
Function FileAge (Const FileName : String): Longint;
|
||||||
@ -324,7 +334,11 @@ end;
|
|||||||
|
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.2 1999-02-03 11:42:31 michael
|
Revision 1.3 1999-02-09 17:16:59 florian
|
||||||
|
+ typinfo is now also in the makefile for go32v2
|
||||||
|
+ sysutils.filetruncate for go32v2
|
||||||
|
|
||||||
|
Revision 1.2 1999/02/03 11:42:31 michael
|
||||||
+ Added filetruncate
|
+ Added filetruncate
|
||||||
|
|
||||||
Revision 1.1 1998/12/21 13:07:02 peter
|
Revision 1.1 1998/12/21 13:07:02 peter
|
||||||
|
Loading…
Reference in New Issue
Block a user