source: trunk/Demos/Structure/System.pas

Last change on this file was 21, checked in by george, 14 years ago
  • Modified: Project saving.
File size: 1.2 KB
Line 
1unit System;
2
3interface
4
5const
6 nil = 0;
7
8type
9 TType = type;
10 Void = type(TType);
11 Ordinal = type(TType);
12 Float = type(TType);
13 Boolean = (False, True);
14
15 // Ordinal types
16 Byte = type(Ordinal);
17 ShortInt = type(Ordinal);
18 Word = type(Ordinal);
19 SmallInt = type(Ordinal);
20 Cardinal = type(Ordinal);
21 DWord = Cardinal;
22 LongWord = Cardinal;
23 Integer = type(Ordinal);
24 LongInt = Integer;
25 QWord = type(Ordinal);
26 Int64 = type(Ordinal);
27 Char = type(Ordinal);
28
29 // Float types
30 Real = type(Float);
31 Single = type(Float);
32 Double = type(Float);
33 Extended = type(Float);
34
35 String = array of Char;
36 Pointer = ^TType;
37 TObject = class;
38
39type
40
41
42 TSystem = record
43 end;
44
45procedure Exit; internal;
46procedure Break; internal;
47procedure Continue; internal;
48procedure WriteLn(Text: string); internal;
49function SizeOf(Source: TType): Integer; internal;
50function IntToStr(Value: Integer): string; internal;
51
52procedure Move(const Source: TType; var Dest: TType; Count: Integer); internal;
53procedure FillChar(var Dest: TType; Count: Integer; Value: Byte); internal;
54
55implementation
56
57initialization
58
59finalization
60
61end.
Note: See TracBrowser for help on using the repository browser.