mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-04 18:30:36 +02:00
* changed $ifdefs to %target
* removed obsolete dpmiexcp unit for go32v2
This commit is contained in:
parent
93115c82d7
commit
06c7671945
@ -2,11 +2,6 @@
|
|||||||
{ Old file: tbf0230.pp }
|
{ Old file: tbf0230.pp }
|
||||||
{ several strange happen on the ln function: ln(0): no FPE and writeln can't write non numeric values Gives out an exception on compiling because of zero div OK 0.99.11 (PM) }
|
{ several strange happen on the ln function: ln(0): no FPE and writeln can't write non numeric values Gives out an exception on compiling because of zero div OK 0.99.11 (PM) }
|
||||||
|
|
||||||
{$ifdef go32v2}
|
|
||||||
uses
|
|
||||||
dpmiexcp;
|
|
||||||
{$endif}
|
|
||||||
|
|
||||||
var
|
var
|
||||||
e : extended;
|
e : extended;
|
||||||
|
|
||||||
|
@ -4,11 +4,6 @@
|
|||||||
|
|
||||||
program test_loc_mem;
|
program test_loc_mem;
|
||||||
|
|
||||||
{$ifdef go32v2}
|
|
||||||
uses
|
|
||||||
dpmiexcp;
|
|
||||||
{$endif go32v2}
|
|
||||||
|
|
||||||
var l1,l2 : longint;
|
var l1,l2 : longint;
|
||||||
begin
|
begin
|
||||||
l1+l2:=l1+l2;
|
l1+l2:=l1+l2;
|
||||||
|
@ -1,12 +1,6 @@
|
|||||||
{ Old file: tbs0017.pp }
|
{ Old file: tbs0017.pp }
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
|
|
||||||
{$ifdef go32v2}
|
|
||||||
uses dpmiexcp;
|
|
||||||
|
|
||||||
{$endif go32v2}
|
|
||||||
|
|
||||||
const
|
const
|
||||||
nextoptpass : longint = 0;
|
nextoptpass : longint = 0;
|
||||||
procedure init;
|
procedure init;
|
||||||
|
@ -1,29 +1,17 @@
|
|||||||
{ %GRAPH }
|
{ %GRAPH }
|
||||||
|
{ %TARGET=go32v2,win32,linux }
|
||||||
|
|
||||||
{ Old file: tbs0037.pp }
|
{ Old file: tbs0037.pp }
|
||||||
{ tests missing graph.setgraphmode OK RTL (FK) }
|
{ tests missing graph.setgraphmode OK RTL (FK) }
|
||||||
|
|
||||||
{$ifdef go32v2}
|
|
||||||
{$define OK}
|
|
||||||
{$endif}
|
|
||||||
{$ifdef Unix}
|
|
||||||
{$define OK}
|
|
||||||
{$endif}
|
|
||||||
{$ifdef win32}
|
|
||||||
{$define OK}
|
|
||||||
{$endif}
|
|
||||||
|
|
||||||
{$ifdef OK}
|
|
||||||
uses
|
uses
|
||||||
graph,
|
graph,
|
||||||
crt;
|
crt;
|
||||||
|
|
||||||
var
|
var
|
||||||
gd,gm,res : integer;
|
gd,gm,res : integer;
|
||||||
{$endif OK}
|
|
||||||
|
|
||||||
begin
|
begin
|
||||||
{$ifdef OK}
|
|
||||||
gd:=detect;
|
gd:=detect;
|
||||||
initgraph(gd,gm,'');
|
initgraph(gd,gm,'');
|
||||||
res := graphresult;
|
res := graphresult;
|
||||||
@ -49,6 +37,4 @@ begin
|
|||||||
{readkey;}
|
{readkey;}
|
||||||
delay(1000);
|
delay(1000);
|
||||||
closegraph;
|
closegraph;
|
||||||
{$endif OK}
|
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
{ %CPU=i386 }
|
{ %CPU=i386 }
|
||||||
|
{ %TARGET=go32v2,win32,linux }
|
||||||
{ %NOTE=This test requires an installed Nasm }
|
{ %NOTE=This test requires an installed Nasm }
|
||||||
|
|
||||||
{ Old file: tbs0043.pp }
|
{ Old file: tbs0043.pp }
|
||||||
{ shows assembler nasm output fpu opcodes problem OK 0.99.6 (PFV) }
|
{ shows assembler nasm output fpu opcodes problem OK 0.99.6 (PFV) }
|
||||||
|
|
||||||
|
@ -5,13 +5,6 @@ program test;
|
|||||||
|
|
||||||
{$R-}
|
{$R-}
|
||||||
|
|
||||||
{$ifdef fpc}
|
|
||||||
{$ifdef go32v2}
|
|
||||||
uses
|
|
||||||
dpmiexcp;
|
|
||||||
{$endif}
|
|
||||||
{$endif}
|
|
||||||
|
|
||||||
type byteset = set of byte;
|
type byteset = set of byte;
|
||||||
bl = record i,j : longint;
|
bl = record i,j : longint;
|
||||||
end;
|
end;
|
||||||
|
@ -1,19 +1,9 @@
|
|||||||
{ %GRAPH }
|
{ %GRAPH }
|
||||||
|
{ %TARGET=go32v2,win32,linux }
|
||||||
|
|
||||||
{ Old file: tbs0048.pp }
|
{ Old file: tbs0048.pp }
|
||||||
{ shows a problem with putimage on some computers OK 0.99.13 (JM) }
|
{ shows a problem with putimage on some computers OK 0.99.13 (JM) }
|
||||||
|
|
||||||
{$ifdef go32v2}
|
|
||||||
{$define OK}
|
|
||||||
{$endif}
|
|
||||||
{$ifdef Unix}
|
|
||||||
{$define OK}
|
|
||||||
{$endif}
|
|
||||||
{$ifdef win32}
|
|
||||||
{$define OK}
|
|
||||||
{$endif}
|
|
||||||
|
|
||||||
{$ifdef OK}
|
|
||||||
uses
|
uses
|
||||||
graph,crt;
|
graph,crt;
|
||||||
|
|
||||||
@ -21,10 +11,8 @@ var
|
|||||||
gd,gm : integer;
|
gd,gm : integer;
|
||||||
i,size : longint;
|
i,size : longint;
|
||||||
p : pointer;
|
p : pointer;
|
||||||
{$endif OK}
|
|
||||||
|
|
||||||
begin
|
begin
|
||||||
{$ifdef OK}
|
|
||||||
gd:=detect;
|
gd:=detect;
|
||||||
initgraph(gd,gm,'');
|
initgraph(gd,gm,'');
|
||||||
setcolor(brown);
|
setcolor(brown);
|
||||||
@ -45,5 +33,4 @@ begin
|
|||||||
end;
|
end;
|
||||||
{readkey;}delay(1000);
|
{readkey;}delay(1000);
|
||||||
closegraph;
|
closegraph;
|
||||||
{$endif OK}
|
|
||||||
end.
|
end.
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
{ %GRAPH }
|
{ %GRAPH }
|
||||||
|
{ %TARGET=go32v2,win32,linux }
|
||||||
|
|
||||||
{ Old file: tbs0051.pp }
|
{ Old file: tbs0051.pp }
|
||||||
{ Graph, shows a problem with putpixel OK 0.99.9 (PM) }
|
{ Graph, shows a problem with putpixel OK 0.99.9 (PM) }
|
||||||
@ -7,14 +8,6 @@
|
|||||||
{define has_colors_equal}
|
{define has_colors_equal}
|
||||||
{$endif go32v2}
|
{$endif go32v2}
|
||||||
|
|
||||||
{$ifdef go32v2}
|
|
||||||
{$define OK}
|
|
||||||
{$endif}
|
|
||||||
{$ifdef Unix}
|
|
||||||
{$define OK}
|
|
||||||
{$endif}
|
|
||||||
|
|
||||||
{$ifdef OK}
|
|
||||||
uses crt,graph;
|
uses crt,graph;
|
||||||
|
|
||||||
{$ifndef has_colors_equal}
|
{$ifndef has_colors_equal}
|
||||||
@ -32,9 +25,7 @@ var gd,gm,gError,yi,i : integer;
|
|||||||
col: longint;
|
col: longint;
|
||||||
error : word;
|
error : word;
|
||||||
|
|
||||||
{$endif OK}
|
|
||||||
BEGIN
|
BEGIN
|
||||||
{$ifdef OK}
|
|
||||||
if paramcount=0 then
|
if paramcount=0 then
|
||||||
gm:=$111 {640x480/64K HiColor}
|
gm:=$111 {640x480/64K HiColor}
|
||||||
else
|
else
|
||||||
@ -70,15 +61,4 @@ BEGIN
|
|||||||
{readkey;}delay(1000);
|
{readkey;}delay(1000);
|
||||||
|
|
||||||
closegraph;
|
closegraph;
|
||||||
{$endif OK}
|
|
||||||
END.
|
END.
|
||||||
|
|
||||||
{
|
|
||||||
$Log$
|
|
||||||
Revision 1.3 2002-09-07 15:40:43 peter
|
|
||||||
* old logs removed and tabs fixed
|
|
||||||
|
|
||||||
Revision 1.2 2002/06/01 19:08:52 marco
|
|
||||||
* Renamefest
|
|
||||||
|
|
||||||
}
|
|
||||||
|
@ -1,19 +1,9 @@
|
|||||||
{ %GRAPH }
|
{ %GRAPH }
|
||||||
|
{ %TARGET=go32v2,win32,linux}
|
||||||
|
|
||||||
{ Old file: tbs0052.pp }
|
{ Old file: tbs0052.pp }
|
||||||
{ Graph, collects missing graph unit routines OK 0.99.9 (PM) }
|
{ Graph, collects missing graph unit routines OK 0.99.9 (PM) }
|
||||||
|
|
||||||
{$ifdef go32v2}
|
|
||||||
{$define OK}
|
|
||||||
{$endif}
|
|
||||||
{$ifdef Unix}
|
|
||||||
{$define OK}
|
|
||||||
{$endif}
|
|
||||||
{$ifdef win32}
|
|
||||||
{$define OK}
|
|
||||||
{$endif}
|
|
||||||
|
|
||||||
{$ifdef OK}
|
|
||||||
uses
|
uses
|
||||||
crt,graph;
|
crt,graph;
|
||||||
|
|
||||||
@ -26,9 +16,7 @@ const
|
|||||||
(X: 275; Y: 150), (X: 280; Y : 50), (X:295; Y : 80) );
|
(X: 275; Y: 150), (X: 280; Y : 50), (X:295; Y : 80) );
|
||||||
|
|
||||||
var Gd, Gm: Integer;
|
var Gd, Gm: Integer;
|
||||||
{$endif OK}
|
|
||||||
begin
|
begin
|
||||||
{$ifdef OK}
|
|
||||||
Gd := Detect;
|
Gd := Detect;
|
||||||
InitGraph(Gd, Gm, 'c:\bp\bgi');
|
InitGraph(Gd, Gm, 'c:\bp\bgi');
|
||||||
if GraphResult <> grOk then
|
if GraphResult <> grOk then
|
||||||
@ -50,5 +38,4 @@ begin
|
|||||||
graphdefaults;
|
graphdefaults;
|
||||||
{readln;}delay(1000);
|
{readln;}delay(1000);
|
||||||
CloseGraph;
|
CloseGraph;
|
||||||
{$endif OK}
|
|
||||||
end.
|
end.
|
||||||
|
@ -1,28 +1,16 @@
|
|||||||
{ %GRAPH }
|
{ %GRAPH }
|
||||||
|
{ %TARGET=go32v2,win32,linux }
|
||||||
|
|
||||||
{ Old file: tbs0057.pp }
|
{ Old file: tbs0057.pp }
|
||||||
{ Graph, shows a crash with switch graph/text/graph OK 0.99.9 (PM) }
|
{ Graph, shows a crash with switch graph/text/graph OK 0.99.9 (PM) }
|
||||||
|
|
||||||
{$ifdef go32v2}
|
|
||||||
{$define OK}
|
|
||||||
{$endif}
|
|
||||||
{$ifdef Unix}
|
|
||||||
{$define OK}
|
|
||||||
{$endif}
|
|
||||||
{$ifdef win32}
|
|
||||||
{$define OK}
|
|
||||||
{$endif}
|
|
||||||
|
|
||||||
{$ifdef OK}
|
|
||||||
uses
|
uses
|
||||||
graph,crt;
|
graph,crt;
|
||||||
|
|
||||||
var
|
var
|
||||||
gd,gm : integer;
|
gd,gm : integer;
|
||||||
|
|
||||||
{$endif OK}
|
|
||||||
begin
|
begin
|
||||||
{$ifdef OK}
|
|
||||||
gd:=detect;
|
gd:=detect;
|
||||||
gm:=$103;
|
gm:=$103;
|
||||||
initgraph(gd,gm,'');
|
initgraph(gd,gm,'');
|
||||||
@ -34,6 +22,5 @@ begin
|
|||||||
line(100,100,1,100);
|
line(100,100,1,100);
|
||||||
{readkey;}delay(1000);
|
{readkey;}delay(1000);
|
||||||
closegraph;
|
closegraph;
|
||||||
{$endif OK}
|
|
||||||
writeln('OK');
|
writeln('OK');
|
||||||
end.
|
end.
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
{ Old file: tbs0104.pp }
|
{ Old file: tbs0104.pp }
|
||||||
{ cardinal greater than $7fffffff aren't written OK 0.99.1 (FK) }
|
{ cardinal greater than $7fffffff aren't written OK 0.99.1 (FK) }
|
||||||
|
|
||||||
{$ifdef go32v2}
|
|
||||||
uses
|
|
||||||
dpmiexcp;
|
|
||||||
{$endif}
|
|
||||||
|
|
||||||
{ Two cardinal type bugs }
|
{ Two cardinal type bugs }
|
||||||
var
|
var
|
||||||
c : cardinal;
|
c : cardinal;
|
||||||
|
@ -1,17 +1,10 @@
|
|||||||
|
{ %TARGET=go32v2,linux }
|
||||||
|
|
||||||
{ Old file: tbs0105.pp }
|
{ Old file: tbs0105.pp }
|
||||||
{ typecasts are now ignored problem (NOT A bugs) OK 0.99.1 }
|
{ typecasts are now ignored problem (NOT A bugs) OK 0.99.1 }
|
||||||
|
|
||||||
{$ifdef go32v2}
|
|
||||||
{$define OK}
|
|
||||||
{$endif}
|
|
||||||
{$ifdef Unix}
|
|
||||||
{$define OK}
|
|
||||||
{$endif}
|
|
||||||
|
|
||||||
{ Win32 signal support is still missing ! }
|
{ Win32 signal support is still missing ! }
|
||||||
|
|
||||||
{$ifdef OK}
|
|
||||||
|
|
||||||
{$ifdef go32v2}
|
{$ifdef go32v2}
|
||||||
uses dpmiexcp;
|
uses dpmiexcp;
|
||||||
{$endif go32v2}
|
{$endif go32v2}
|
||||||
@ -34,9 +27,7 @@
|
|||||||
Var
|
Var
|
||||||
Sel: Word;
|
Sel: Word;
|
||||||
v: pointer;
|
v: pointer;
|
||||||
{$endif OK}
|
|
||||||
Begin
|
Begin
|
||||||
{$ifdef OK}
|
|
||||||
Signal(SIGSEGV,signalhandler(@our_sig));
|
Signal(SIGSEGV,signalhandler(@our_sig));
|
||||||
{ generate a sigsegv by writing to null-address }
|
{ generate a sigsegv by writing to null-address }
|
||||||
sel:=0;
|
sel:=0;
|
||||||
@ -49,5 +40,4 @@ Begin
|
|||||||
{ we should not go to here }
|
{ we should not go to here }
|
||||||
Writeln('Error : signal not called');
|
Writeln('Error : signal not called');
|
||||||
Halt(1);
|
Halt(1);
|
||||||
{$endif OK}
|
|
||||||
end.
|
end.
|
||||||
|
@ -6,11 +6,6 @@
|
|||||||
|
|
||||||
Program Test1;
|
Program Test1;
|
||||||
|
|
||||||
{$ifdef go32v2}
|
|
||||||
uses
|
|
||||||
dpmiexcp;
|
|
||||||
{$endif}
|
|
||||||
|
|
||||||
type
|
type
|
||||||
myObject = object
|
myObject = object
|
||||||
constructor init;
|
constructor init;
|
||||||
|
@ -1,30 +1,15 @@
|
|||||||
{ %GRAPH }
|
{ %GRAPH }
|
||||||
|
{ %TARGET=go32v2,win32,linux }
|
||||||
|
|
||||||
{ Old file: tbs0195.pp }
|
{ Old file: tbs0195.pp }
|
||||||
{ Problem with Getimage, crash of DOS box, even with dpmiexcp!! (PFV) Not a bugs, you must use p^. }
|
{ Problem with Getimage, crash of DOS box, even with dpmiexcp!! (PFV) Not a bugs, you must use p^. }
|
||||||
|
|
||||||
{$ifdef go32v2}
|
uses graph;
|
||||||
{$define OK}
|
|
||||||
{$endif}
|
|
||||||
{$ifdef Unix}
|
|
||||||
{$define OK}
|
|
||||||
{$endif}
|
|
||||||
{$ifdef win32}
|
|
||||||
{$define OK}
|
|
||||||
{$endif}
|
|
||||||
|
|
||||||
{$ifdef OK}
|
|
||||||
uses graph
|
|
||||||
{$ifdef go32v2}
|
|
||||||
,dpmiexcp
|
|
||||||
{$endif go32v2};
|
|
||||||
var
|
var
|
||||||
GDriver, GMode: Integer;
|
GDriver, GMode: Integer;
|
||||||
w:word;
|
w:word;
|
||||||
p:pointer;
|
p:pointer;
|
||||||
{$endif OK}
|
|
||||||
begin
|
begin
|
||||||
{$ifdef OK}
|
|
||||||
GDriver := $FF;
|
GDriver := $FF;
|
||||||
GMode := $101;
|
GMode := $101;
|
||||||
InitGraph(GDriver, GMode, '');
|
InitGraph(GDriver, GMode, '');
|
||||||
@ -45,5 +30,4 @@ begin
|
|||||||
freemem(p, w);
|
freemem(p, w);
|
||||||
closegraph;
|
closegraph;
|
||||||
readln;
|
readln;
|
||||||
{$endif OK}
|
|
||||||
end.
|
end.
|
||||||
|
@ -8,10 +8,6 @@
|
|||||||
|
|
||||||
Program X;
|
Program X;
|
||||||
|
|
||||||
{$ifdef go32v2}
|
|
||||||
uses dpmiexcp;
|
|
||||||
{$endif go32v2}
|
|
||||||
|
|
||||||
Type
|
Type
|
||||||
PY=^Y;
|
PY=^Y;
|
||||||
Y=Object
|
Y=Object
|
||||||
|
@ -3,10 +3,8 @@
|
|||||||
|
|
||||||
{$mode delphi}
|
{$mode delphi}
|
||||||
uses
|
uses
|
||||||
{$ifdef go32v2}
|
|
||||||
dpmiexcp,
|
|
||||||
{$endif go32v2}
|
|
||||||
sysutils;
|
sysutils;
|
||||||
|
|
||||||
type
|
type
|
||||||
ttest=class
|
ttest=class
|
||||||
end;
|
end;
|
||||||
|
@ -1,19 +1,17 @@
|
|||||||
|
{ %TARGET=win32 }
|
||||||
|
|
||||||
{ Old file: tbs0241.pp }
|
{ Old file: tbs0241.pp }
|
||||||
{ Problem with importing function from a DLL with .drv suffix ! OK 0.99.11 (PM) }
|
{ Problem with importing function from a DLL with .drv suffix ! OK 0.99.11 (PM) }
|
||||||
|
|
||||||
{$ifdef win32}
|
|
||||||
program test_win32_drv;
|
program test_win32_drv;
|
||||||
|
|
||||||
procedure printer;external 'winspool.drv' name 'AbortPrinter';
|
procedure printer;external 'winspool.drv' name 'AbortPrinter';
|
||||||
procedure test;
|
|
||||||
|
|
||||||
begin
|
procedure test;
|
||||||
Writeln('Loading of Winspool works ');
|
begin
|
||||||
end;
|
Writeln('Loading of Winspool works ');
|
||||||
|
end;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
test;
|
test;
|
||||||
{$else}
|
|
||||||
begin
|
|
||||||
{$endif}
|
|
||||||
end.
|
end.
|
||||||
|
@ -1,14 +1,9 @@
|
|||||||
|
{ %TARGET=win32,linux }
|
||||||
{ %NORUN }
|
{ %NORUN }
|
||||||
|
|
||||||
{ Old file: tbs0263.pp }
|
{ Old file: tbs0263.pp }
|
||||||
{ export directive is not necessary in delphi anymore OK 0.99.13 (PFV) }
|
{ export directive is not necessary in delphi anymore OK 0.99.13 (PFV) }
|
||||||
|
|
||||||
{$ifdef Unix}
|
|
||||||
{$define doit}
|
|
||||||
{$endif}
|
|
||||||
{$ifdef win32}
|
|
||||||
{$define doit}
|
|
||||||
{$endif}
|
|
||||||
{$ifdef doit}
|
|
||||||
library tb0225;
|
library tb0225;
|
||||||
|
|
||||||
{
|
{
|
||||||
@ -24,7 +19,3 @@ exports
|
|||||||
testp name 'testp';
|
testp name 'testp';
|
||||||
|
|
||||||
end.
|
end.
|
||||||
{$else}
|
|
||||||
begin
|
|
||||||
end.
|
|
||||||
{$endif}
|
|
||||||
|
@ -6,11 +6,6 @@
|
|||||||
|
|
||||||
program memhole;
|
program memhole;
|
||||||
|
|
||||||
{$ifdef go32v2}
|
|
||||||
uses
|
|
||||||
dpmiexcp;
|
|
||||||
{$endif go32v2}
|
|
||||||
|
|
||||||
type
|
type
|
||||||
TMyClass = class
|
TMyClass = class
|
||||||
s: String;
|
s: String;
|
||||||
|
@ -3,11 +3,6 @@
|
|||||||
|
|
||||||
program test_int;
|
program test_int;
|
||||||
|
|
||||||
{$ifdef go32v2}
|
|
||||||
uses
|
|
||||||
dpmiexcp;
|
|
||||||
{$endif go32v2}
|
|
||||||
|
|
||||||
procedure int;interrupt;
|
procedure int;interrupt;
|
||||||
begin
|
begin
|
||||||
end;
|
end;
|
||||||
|
@ -3,13 +3,8 @@
|
|||||||
|
|
||||||
{$mode objfpc}
|
{$mode objfpc}
|
||||||
uses
|
uses
|
||||||
(* sysutils does not work correctly with DPMIEXCP unit
|
sysutils;
|
||||||
anyway, its not needed anymore
|
|
||||||
since the exception handler is now in system unit
|
|
||||||
{$ifdef go32v2}
|
|
||||||
dpmiexcp,
|
|
||||||
{$endif} *)
|
|
||||||
sysutils;
|
|
||||||
var i,j,k:real;
|
var i,j,k:real;
|
||||||
const except_called : boolean = false;
|
const except_called : boolean = false;
|
||||||
begin
|
begin
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
{ %TARGET=win32 }
|
||||||
{ %NORUN }
|
{ %NORUN }
|
||||||
{$ifdef win32}
|
|
||||||
library test;
|
library test;
|
||||||
|
|
||||||
procedure exporttest;export;
|
procedure exporttest;export;
|
||||||
@ -8,7 +8,6 @@ library test;
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
exports exporttest;
|
exports exporttest;
|
||||||
{$endif}
|
|
||||||
|
|
||||||
begin
|
begin
|
||||||
end.
|
end.
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
{ %version=1.1 }
|
{ %version=1.1 }
|
||||||
|
{ %TARGET=linux }
|
||||||
{$ifdef unix}
|
|
||||||
|
|
||||||
{$linklib c}
|
{$linklib c}
|
||||||
|
|
||||||
@ -16,9 +15,4 @@ begin
|
|||||||
|
|
||||||
t:=@printf;
|
t:=@printf;
|
||||||
t('Procvar test %d %s %f'#10,2,'test',1234.5678);
|
t('Procvar test %d %s %f'#10,2,'test',1234.5678);
|
||||||
|
|
||||||
{$else}
|
|
||||||
begin
|
|
||||||
writeln('Unix only test');
|
|
||||||
{$endif}
|
|
||||||
end.
|
end.
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
{ %GRAPH }
|
{ %GRAPH }
|
||||||
|
{ %TARGET=go32v2,win32,linux }
|
||||||
|
|
||||||
program TestGetPutim; {Compiled with the 0.99.13 version under GO32V2!}
|
program TestGetPutim; {Compiled with the 0.99.13 version under GO32V2!}
|
||||||
|
|
||||||
|
@ -4,10 +4,8 @@
|
|||||||
{$H+}
|
{$H+}
|
||||||
program stackcrash;
|
program stackcrash;
|
||||||
uses
|
uses
|
||||||
{$ifdef go32v2}
|
|
||||||
dpmiexcp,
|
|
||||||
{$endif go32v2}
|
|
||||||
sysutils;
|
sysutils;
|
||||||
|
|
||||||
type
|
type
|
||||||
TMyClass = class
|
TMyClass = class
|
||||||
public
|
public
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
program TestVm2;
|
program TestVm2;
|
||||||
|
|
||||||
{$IFDEF WIN32}{$APPTYPE CONSOLE}{$ENDIF}
|
|
||||||
|
|
||||||
procedure Test;
|
procedure Test;
|
||||||
var
|
var
|
||||||
P: Pointer;
|
P: Pointer;
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
program TestVm2;
|
program TestVm2;
|
||||||
|
|
||||||
{$IFDEF WIN32}{$APPTYPE CONSOLE}{$ENDIF}
|
|
||||||
|
|
||||||
procedure Test;
|
procedure Test;
|
||||||
var
|
var
|
||||||
P: Pointer;
|
P: Pointer;
|
||||||
|
@ -1,10 +1,5 @@
|
|||||||
program test;
|
program test;
|
||||||
|
|
||||||
{$ifdef win32}
|
|
||||||
uses
|
|
||||||
windows;
|
|
||||||
{$endif }
|
|
||||||
|
|
||||||
procedure write1( var charbuf:string);
|
procedure write1( var charbuf:string);
|
||||||
begin
|
begin
|
||||||
Writeln(Charbuf);
|
Writeln(Charbuf);
|
||||||
|
@ -1,23 +1,13 @@
|
|||||||
{ %CPU=i386 }
|
{ %CPU=i386 }
|
||||||
|
|
||||||
{$asmmode intel}
|
{$asmmode intel}
|
||||||
|
|
||||||
{$ifdef go32v2}
|
|
||||||
PROCEDURE Cursor(Form: word);assembler;
|
PROCEDURE Cursor(Form: word);assembler;
|
||||||
asm
|
asm
|
||||||
mov cx,word ptr[Form]
|
mov cx,word ptr[Form]
|
||||||
and cx,1F1Fh
|
and cx,1F1Fh
|
||||||
mov ah,1
|
mov ah,1
|
||||||
int 10h
|
|
||||||
end;
|
end;
|
||||||
{$else not go32v2}
|
|
||||||
{ no interrupt call on other targets }
|
|
||||||
procedure cursor(form : word);assembler;
|
|
||||||
asm
|
|
||||||
mov cx,word ptr[Form]
|
|
||||||
and cx,1F1Fh
|
|
||||||
mov ah,1
|
|
||||||
end;
|
|
||||||
{$endif go32v2}
|
|
||||||
|
|
||||||
begin
|
begin
|
||||||
Cursor($11F);
|
Cursor($11F);
|
||||||
|
@ -1,15 +1,8 @@
|
|||||||
{ %INTERACTIVE }
|
{ %INTERACTIVE }
|
||||||
|
{ %TARGET=win32,linux }
|
||||||
|
|
||||||
{ Source provided for Free Pascal Bug Report 966 }
|
{ Source provided for Free Pascal Bug Report 966 }
|
||||||
{$i-}
|
{$i-}
|
||||||
{$ifdef Unix}
|
|
||||||
{$define has_sockets}
|
|
||||||
{$endif Unix}
|
|
||||||
{$ifdef win32}
|
|
||||||
{$define has_sockets}
|
|
||||||
{$endif win32}
|
|
||||||
|
|
||||||
{$ifdef has_sockets}
|
|
||||||
uses
|
uses
|
||||||
{$ifdef Unix}
|
{$ifdef Unix}
|
||||||
linux,
|
linux,
|
||||||
@ -77,8 +70,4 @@ begin
|
|||||||
Write(Sout,'QUIT'#10);
|
Write(Sout,'QUIT'#10);
|
||||||
read_to_eof;
|
read_to_eof;
|
||||||
shutdown(s,2); close(sin); close(sout);
|
shutdown(s,2); close(sin); close(sout);
|
||||||
{$else : not has_sockets}
|
|
||||||
begin
|
|
||||||
Writeln('No sockets unit for this target');
|
|
||||||
{$endif has_sockets}
|
|
||||||
end.
|
end.
|
||||||
|
@ -1,20 +1,18 @@
|
|||||||
|
{ %target=win32 }
|
||||||
|
|
||||||
{ Source provided for Free Pascal Bug Report 1375 }
|
{ Source provided for Free Pascal Bug Report 1375 }
|
||||||
{ Submitted by "Bill Rayer" on 2001-02-01 }
|
{ Submitted by "Bill Rayer" on 2001-02-01 }
|
||||||
{ e-mail: lingolanguage@hotmail.com }
|
{ e-mail: lingolanguage@hotmail.com }
|
||||||
(*
|
{
|
||||||
Should be able to use null ptr as 2nd param of InvalidateRect()
|
Should be able to use null ptr as 2nd param of InvalidateRect()
|
||||||
Compiles in Delphi 4:
|
Compiles in Delphi 4:
|
||||||
dcc32 fpc1
|
dcc32 fpc1
|
||||||
Does not compile in FPC:
|
Does not compile in FPC:
|
||||||
ppc386 -Sd fpc1
|
ppc386 -Sd fpc1
|
||||||
*)
|
}
|
||||||
|
|
||||||
program test1;
|
program test1;
|
||||||
{$ifdef win32}
|
|
||||||
uses windows;
|
uses windows;
|
||||||
{$endif}
|
|
||||||
begin
|
begin
|
||||||
{$ifdef win32}
|
|
||||||
InvalidateRect (HWND(0), pointer(0), TRUE);
|
InvalidateRect (HWND(0), pointer(0), TRUE);
|
||||||
{$endif}
|
|
||||||
end.
|
end.
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
{$ifdef win32}
|
{ %target=win32 }
|
||||||
|
|
||||||
uses Windows;
|
uses Windows;
|
||||||
|
|
||||||
function Enum_FindTaskWindow (hWindow:HWND; lpar:LPARAM) : boolean; export; stdcall;
|
function Enum_FindTaskWindow (hWindow:HWND; lpar:LPARAM) : boolean; export; stdcall;
|
||||||
@ -10,8 +11,4 @@ var dwThread:DWORD;
|
|||||||
begin
|
begin
|
||||||
dwThread := GetCurrentThreadId;
|
dwThread := GetCurrentThreadId;
|
||||||
EnumTaskWindows (dwThread, @Enum_FindTaskWindow, LPARAM(NULL));
|
EnumTaskWindows (dwThread, @Enum_FindTaskWindow, LPARAM(NULL));
|
||||||
|
|
||||||
{$else}
|
|
||||||
begin
|
|
||||||
{$endif}
|
|
||||||
end.
|
end.
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{ %version=1.1 }
|
{ %version=1.1 }
|
||||||
|
{ %target=win32 }
|
||||||
|
|
||||||
{$ifdef Win32}
|
|
||||||
Uses Windows;
|
Uses Windows;
|
||||||
Var Font:HFONT;
|
Var Font:HFONT;
|
||||||
Begin
|
Begin
|
||||||
@ -19,10 +19,6 @@ Begin
|
|||||||
PROOF_QUALITY,
|
PROOF_QUALITY,
|
||||||
FF_DONTCARE Or DEFAULT_PITCH,
|
FF_DONTCARE Or DEFAULT_PITCH,
|
||||||
'Verdana');
|
'Verdana');
|
||||||
{$else}
|
|
||||||
begin
|
|
||||||
Writeln('Win32 only');
|
|
||||||
{$endif}
|
|
||||||
End.
|
End.
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,16 +1,14 @@
|
|||||||
|
{ %target=win32 }
|
||||||
{ Source provided for Free Pascal Bug Report 1779 }
|
{ Source provided for Free Pascal Bug Report 1779 }
|
||||||
{ Submitted by "Pierre" on 2002-01-25 }
|
{ Submitted by "Pierre" on 2002-01-25 }
|
||||||
{ e-mail: pierre@freepascal.org }
|
{ e-mail: pierre@freepascal.org }
|
||||||
|
|
||||||
{$ifdef win32}
|
|
||||||
uses
|
uses
|
||||||
windows;
|
windows;
|
||||||
|
|
||||||
function GetLargestConsoleWindowSizeAlternate(h : longint) : dword;
|
function GetLargestConsoleWindowSizeAlternate(h : longint) : dword;
|
||||||
external 'kernel32' name 'GetLargestConsoleWindowSize';
|
external 'kernel32' name 'GetLargestConsoleWindowSize';
|
||||||
{$endif win32}
|
|
||||||
|
|
||||||
{$ifdef win32}
|
|
||||||
var
|
var
|
||||||
c1,c : coord;
|
c1,c : coord;
|
||||||
y : dword;
|
y : dword;
|
||||||
@ -27,9 +25,4 @@ begin
|
|||||||
Writeln('RTL bug');
|
Writeln('RTL bug');
|
||||||
Halt(1);
|
Halt(1);
|
||||||
end;
|
end;
|
||||||
end.
|
|
||||||
{$else not win32}
|
|
||||||
begin
|
|
||||||
Writeln('Bug 1779 is win32 specific');
|
|
||||||
end.
|
end.
|
||||||
{$endif win32}
|
|
||||||
|
@ -1,14 +1,10 @@
|
|||||||
{$ifdef win32}
|
{ %target=win32 }
|
||||||
|
|
||||||
uses
|
uses
|
||||||
windows;
|
windows;
|
||||||
{$endif win32}
|
|
||||||
|
|
||||||
var
|
var
|
||||||
x : DWORD;
|
x : DWORD;
|
||||||
begin
|
begin
|
||||||
{$ifdef win32}
|
|
||||||
x:=CommDlgExtendedError;
|
x:=CommDlgExtendedError;
|
||||||
{$else not win32}
|
|
||||||
x:=0;
|
|
||||||
{$endif win32}
|
|
||||||
end.
|
end.
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
{ %version=1.1 }
|
{ %version=1.1 }
|
||||||
|
{ %TARGET=win32 }
|
||||||
unit tw1820;
|
unit tw1820;
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
||||||
{$ifdef win32}
|
|
||||||
|
|
||||||
{$mode Delphi}
|
{$mode Delphi}
|
||||||
|
|
||||||
Uses Windows;
|
Uses Windows;
|
||||||
|
|
||||||
type
|
type
|
||||||
@ -17,8 +16,6 @@ type
|
|||||||
const
|
const
|
||||||
IEnumTasks = IEnumWorkItems;
|
IEnumTasks = IEnumWorkItems;
|
||||||
|
|
||||||
{$endif}
|
implementation
|
||||||
|
|
||||||
implementation
|
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
@ -1,13 +1,9 @@
|
|||||||
{$ifdef win32}
|
{ %target=win32 }
|
||||||
|
|
||||||
uses Windows,ub1873;
|
uses Windows,ub1873;
|
||||||
var
|
var
|
||||||
s : SC_handle;
|
s : SC_handle;
|
||||||
d : dword;
|
d : dword;
|
||||||
begin
|
begin
|
||||||
GetServiceDisplayNameA(s,nil,nil,d);
|
GetServiceDisplayNameA(s,nil,nil,d);
|
||||||
{$else}
|
|
||||||
begin
|
|
||||||
writeln('win32 only');
|
|
||||||
{$endif}
|
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
{ %target=win32 }
|
||||||
|
|
||||||
uses DOS;
|
uses DOS;
|
||||||
var
|
var
|
||||||
error : boolean;
|
error : boolean;
|
||||||
@ -14,7 +16,6 @@
|
|||||||
error:=true;
|
error:=true;
|
||||||
end;
|
end;
|
||||||
begin
|
begin
|
||||||
{$ifdef Win32}
|
|
||||||
Expand('C:\Windows1\System');
|
Expand('C:\Windows1\System');
|
||||||
Expand('\\.\C\Windows1\System');
|
Expand('\\.\C\Windows1\System');
|
||||||
Expand('C:\Windows1\System');
|
Expand('C:\Windows1\System');
|
||||||
@ -23,8 +24,5 @@
|
|||||||
Writeln('ERROR!');
|
Writeln('ERROR!');
|
||||||
Halt(1);
|
Halt(1);
|
||||||
end;
|
end;
|
||||||
{$else}
|
|
||||||
Writeln('Win32 only test');
|
|
||||||
{$endif}
|
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
{ %skiptarget=go32v2 }
|
||||||
|
|
||||||
{ Source provided for Free Pascal Bug Report 2046 }
|
{ Source provided for Free Pascal Bug Report 2046 }
|
||||||
{ Submitted by "Mattias Gaertner" on 2002-07-17 }
|
{ Submitted by "Mattias Gaertner" on 2002-07-17 }
|
||||||
{ e-mail: nc-gaertnma@netcologne.de }
|
{ e-mail: nc-gaertnma@netcologne.de }
|
||||||
|
Loading…
Reference in New Issue
Block a user