author | Xeli |
Sat, 21 Apr 2012 17:55:45 +0200 | |
changeset 6899 | c3d44a836086 |
parent 6898 | 344b0dbd9690 |
child 6902 | 7d4e5ce73b98 |
permissions | -rw-r--r-- |
6512 | 1 |
system; |
2 |
||
3 |
type |
|
6635
c2fa29fe2a58
Some progress, still can't find the source of bad behavior
unc0rr
parents:
6552
diff
changeset
|
4 |
Integer = integer; |
6512 | 5 |
LongInt = integer; |
6 |
LongWord = integer; |
|
6516 | 7 |
Cardinal = integer; |
8 |
PtrInt = integer; |
|
6520 | 9 |
Word = integer; |
10 |
Byte = integer; |
|
11 |
SmallInt = integer; |
|
12 |
ShortInt = integer; |
|
6653 | 13 |
QWord = integer; |
6891
ab9843957664
Improve rendering of function types, ranges, and more
unc0rr
parents:
6873
diff
changeset
|
14 |
GLint = integer; |
ab9843957664
Improve rendering of function types, ranges, and more
unc0rr
parents:
6873
diff
changeset
|
15 |
GLuint = integer; |
6838 | 16 |
gl_unsigned_byte = integer; |
6855
807156c01475
Finish the toughest part of the converter. Now it knows types of everything, so could correctly recognize bitwise operators and type convertions.
unc0rr
parents:
6854
diff
changeset
|
17 |
Int = integer; |
6516 | 18 |
|
19 |
pointer = pointer; |
|
20 |
||
6649
7f78e8a6db69
Fix a bug with type declaration trying to resolve type being declared
unc0rr
parents:
6635
diff
changeset
|
21 |
float = float; |
6838 | 22 |
single = float; |
6516 | 23 |
double = float; |
24 |
real = float; |
|
6653 | 25 |
extended = float; |
6891
ab9843957664
Improve rendering of function types, ranges, and more
unc0rr
parents:
6873
diff
changeset
|
26 |
GLfloat = float; |
6838 | 27 |
gl_float = float; |
6516 | 28 |
|
29 |
boolean = boolean; |
|
30 |
LongBool = boolean; |
|
31 |
||
32 |
string = string; |
|
33 |
shortstring = string; |
|
34 |
ansistring = string; |
|
6838 | 35 |
widechar = string; |
6516 | 36 |
|
37 |
char = char; |
|
6873 | 38 |
PChar = ^char; |
6520 | 39 |
|
40 |
PByte = ^Byte; |
|
41 |
PLongInt = ^LongInt; |
|
42 |
PLongWord = ^LongWord; |
|
43 |
PInteger = ^Integer; |
|
6663 | 44 |
|
45 |
Handle = integer; |
|
46 |
stderr = Handle; |
|
6838 | 47 |
|
6893 | 48 |
png_structp = pointer; |
49 |
png_size_t = integer; |
|
50 |
||
6512 | 51 |
var |
52 |
false, true: boolean; |
|
6855
807156c01475
Finish the toughest part of the converter. Now it knows types of everything, so could correctly recognize bitwise operators and type convertions.
unc0rr
parents:
6854
diff
changeset
|
53 |
|
6838 | 54 |
write, writeLn, read, readLn: procedure; |
6855
807156c01475
Finish the toughest part of the converter. Now it knows types of everything, so could correctly recognize bitwise operators and type convertions.
unc0rr
parents:
6854
diff
changeset
|
55 |
|
6520 | 56 |
StrLen, ord, Succ, Pred : function : integer; |
6838 | 57 |
inc, dec, Low, High, Lo, Hi : function : integer; |
58 |
odd, even : function : boolean; |
|
59 |
||
6520 | 60 |
Now : function : integer; |
6838 | 61 |
|
62 |
new, dispose, FillChar, Move : procedure; |
|
63 |
||
64 |
trunc, round : function : integer; |
|
6837
a137733c5776
Much better types handling, work correctly with functions
unc0rr
parents:
6835
diff
changeset
|
65 |
Abs, Sqr : function : integer; |
6838 | 66 |
|
6855
807156c01475
Finish the toughest part of the converter. Now it knows types of everything, so could correctly recognize bitwise operators and type convertions.
unc0rr
parents:
6854
diff
changeset
|
67 |
StrPas, FormatDateTime, copy, delete, str, pos, trim : function : shortstring; |
6856 | 68 |
Length, StrToInt : function : integer; |
69 |
SetLength, val : procedure; |
|
6898 | 70 |
_pchar : function : PChar; |
6838 | 71 |
|
6855
807156c01475
Finish the toughest part of the converter. Now it knows types of everything, so could correctly recognize bitwise operators and type convertions.
unc0rr
parents:
6854
diff
changeset
|
72 |
assign, rewrite, reset, flush, BlockWrite, BlockRead, close : procedure; |
6838 | 73 |
IOResult : function : integer; |
6853 | 74 |
exit, break, halt, continue : procedure; |
6843
59da15acb2f2
Finally fix the bug with pointer declarations polluting namespace with bad records
unc0rr
parents:
6838
diff
changeset
|
75 |
TextFile, file : Handle; |
6853 | 76 |
FileMode : integer; |
6855
807156c01475
Finish the toughest part of the converter. Now it knows types of everything, so could correctly recognize bitwise operators and type convertions.
unc0rr
parents:
6854
diff
changeset
|
77 |
FileExists, DirectoryExists, eof : function : boolean; |
807156c01475
Finish the toughest part of the converter. Now it knows types of everything, so could correctly recognize bitwise operators and type convertions.
unc0rr
parents:
6854
diff
changeset
|
78 |
ExtractFileName : function : string; |
807156c01475
Finish the toughest part of the converter. Now it knows types of everything, so could correctly recognize bitwise operators and type convertions.
unc0rr
parents:
6854
diff
changeset
|
79 |
exitcode : integer; |
6853 | 80 |
|
81 |
ParamCount : function : integer; |
|
82 |
ParamStr : function : string; |
|
6838 | 83 |
|
6855
807156c01475
Finish the toughest part of the converter. Now it knows types of everything, so could correctly recognize bitwise operators and type convertions.
unc0rr
parents:
6854
diff
changeset
|
84 |
sqrt, arctan2, pi, cos, sin, power : function : float; |
6838 | 85 |
|
86 |
TypeInfo, GetEnumName : function : shortstring; |
|
87 |
||
88 |
UTF8ToUnicode, WrapText: function : shortstring; |
|
89 |
||
90 |
sizeof : function : integer; |
|
91 |
||
92 |
GetMem : function : pointer; |
|
93 |
FreeMem : procedure; |
|
94 |
||
95 |
gl_texture_2d, glbindtexture, gltexparameterf, gl_rgba, |
|
96 |
glteximage2d, glvertexpointer, gltexcoordpointer, |
|
97 |
gl_triangle_fan, gldrawarrays, glpushmatrix, glpopmatrix, |
|
98 |
gltranslatef, glscalef, glrotatef, gldisable, glenable, |
|
99 |
gl_line_smooth, gllinewidth, gl_lines, gl_line_loop, |
|
100 |
glcolor4ub, gl_texture_wrap_s, gltexparameteri, |
|
101 |
gl_texture_wrap_t, gl_texture_min_filter, |
|
102 |
gl_linear, gl_texture_mag_filter, glgentextures, |
|
6855
807156c01475
Finish the toughest part of the converter. Now it knows types of everything, so could correctly recognize bitwise operators and type convertions.
unc0rr
parents:
6854
diff
changeset
|
103 |
gldeletetextures, glreadpixels, glclearcolor, |
807156c01475
Finish the toughest part of the converter. Now it knows types of everything, so could correctly recognize bitwise operators and type convertions.
unc0rr
parents:
6854
diff
changeset
|
104 |
gl_line_strip, gldeleterenderbuffersext, |
807156c01475
Finish the toughest part of the converter. Now it knows types of everything, so could correctly recognize bitwise operators and type convertions.
unc0rr
parents:
6854
diff
changeset
|
105 |
gldeleteframebuffersext, glext_loadextension, |
807156c01475
Finish the toughest part of the converter. Now it knows types of everything, so could correctly recognize bitwise operators and type convertions.
unc0rr
parents:
6854
diff
changeset
|
106 |
gl_max_texture_size, glgetintegerv, gl_renderer, |
807156c01475
Finish the toughest part of the converter. Now it knows types of everything, so could correctly recognize bitwise operators and type convertions.
unc0rr
parents:
6854
diff
changeset
|
107 |
glgetstring, gl_vendor, gl_version, glgenframebuffersext, |
807156c01475
Finish the toughest part of the converter. Now it knows types of everything, so could correctly recognize bitwise operators and type convertions.
unc0rr
parents:
6854
diff
changeset
|
108 |
glbindframebufferext, glgenrenderbuffersext, |
807156c01475
Finish the toughest part of the converter. Now it knows types of everything, so could correctly recognize bitwise operators and type convertions.
unc0rr
parents:
6854
diff
changeset
|
109 |
glbindrenderbufferext, glrenderbufferstorageext, |
807156c01475
Finish the toughest part of the converter. Now it knows types of everything, so could correctly recognize bitwise operators and type convertions.
unc0rr
parents:
6854
diff
changeset
|
110 |
glframebufferrenderbufferext, glframebuffertexture2dext, |
807156c01475
Finish the toughest part of the converter. Now it knows types of everything, so could correctly recognize bitwise operators and type convertions.
unc0rr
parents:
6854
diff
changeset
|
111 |
gl_framebuffer_ext, gl_depth_component, |
807156c01475
Finish the toughest part of the converter. Now it knows types of everything, so could correctly recognize bitwise operators and type convertions.
unc0rr
parents:
6854
diff
changeset
|
112 |
gl_depth_attachment_ext, gl_renderbuffer_ext, gl_rgba8, |
807156c01475
Finish the toughest part of the converter. Now it knows types of everything, so could correctly recognize bitwise operators and type convertions.
unc0rr
parents:
6854
diff
changeset
|
113 |
gl_color_attachment0_ext, gl_modelview, gl_blend, |
807156c01475
Finish the toughest part of the converter. Now it knows types of everything, so could correctly recognize bitwise operators and type convertions.
unc0rr
parents:
6854
diff
changeset
|
114 |
gl_src_alpha, gl_one_minus_src_alpha, |
807156c01475
Finish the toughest part of the converter. Now it knows types of everything, so could correctly recognize bitwise operators and type convertions.
unc0rr
parents:
6854
diff
changeset
|
115 |
gl_perspective_correction_hint, gl_fastest, |
807156c01475
Finish the toughest part of the converter. Now it knows types of everything, so could correctly recognize bitwise operators and type convertions.
unc0rr
parents:
6854
diff
changeset
|
116 |
gl_dither, gl_vertex_array, gl_texture_coord_array, |
807156c01475
Finish the toughest part of the converter. Now it knows types of everything, so could correctly recognize bitwise operators and type convertions.
unc0rr
parents:
6854
diff
changeset
|
117 |
glviewport, glloadidentity, glmatrixmode, glhint, |
807156c01475
Finish the toughest part of the converter. Now it knows types of everything, so could correctly recognize bitwise operators and type convertions.
unc0rr
parents:
6854
diff
changeset
|
118 |
glblendfunc, glenableclientstate, gl_color_buffer_bit, |
6856 | 119 |
glclear, gldisableclientstate, gl_color_array, |
120 |
glcolorpointer, gl_depth_buffer_bit, gl_quads, |
|
121 |
glbegin, glend, gltexcoord2f, glvertex2d, |
|
6893 | 122 |
gl_true, gl_false, glcolormask, gl_projection, |
123 |
gl_texture_priority, glenum, gl_clamp_to_edge, |
|
124 |
gl_extensions : procedure; |
|
6838 | 125 |
|
126 |
TThreadId : function : integer; |
|
6854
873929cbd54b
Normalize RecordFields before conversion. Helps with namespaces problem.
unc0rr
parents:
6853
diff
changeset
|
127 |
BeginThread, ThreadSwitch : procedure; |
873929cbd54b
Normalize RecordFields before conversion. Helps with namespaces problem.
unc0rr
parents:
6853
diff
changeset
|
128 |
InterlockedIncrement, InterlockedDecrement : procedure; |
6853 | 129 |
|
130 |
random : function : integer; |
|
6855
807156c01475
Finish the toughest part of the converter. Now it knows types of everything, so could correctly recognize bitwise operators and type convertions.
unc0rr
parents:
6854
diff
changeset
|
131 |
randomize : procedure; |
6853 | 132 |
|
133 |
Assigned : function : boolean; |
|
6854
873929cbd54b
Normalize RecordFields before conversion. Helps with namespaces problem.
unc0rr
parents:
6853
diff
changeset
|
134 |
|
6898 | 135 |
_strconcat, _strappend, _strprepend : function : string; |
6860 | 136 |
_strcompare, _strncompare : function : boolean; |
6893 | 137 |
|
138 |
png_structp, png_set_write_fn, png_get_io_ptr, |
|
139 |
png_get_libpng_ver, png_create_write_struct, |
|
140 |
png_create_info_struct, png_destroy_write_struct, |
|
141 |
png_write_row, png_set_ihdr, png_write_info, |
|
142 |
png_write_end : procedure; |
|
6894 | 143 |
|
144 |
EnumToStr : function : string; |