tcalvar4.pp 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744
  1. {****************************************************************}
  2. { CODE GENERATOR TEST PROGRAM }
  3. { By Carl Eric Codere }
  4. {****************************************************************}
  5. { NODE TESTED : secondcallparan() }
  6. {****************************************************************}
  7. { PRE-REQUISITES: secondload() }
  8. { secondassign() }
  9. { secondtypeconv() }
  10. { secondtryexcept() }
  11. { secondcalln() }
  12. { secondadd() }
  13. {****************************************************************}
  14. { DEFINES: }
  15. { FPC = Target is FreePascal compiler }
  16. {****************************************************************}
  17. { REMARKS: This tests a subset of the secondcalln() node }
  18. { (var parameters with cdecl calling convention) }
  19. {****************************************************************}
  20. program tcalvar4;
  21. {$ifdef fpc}
  22. {$mode objfpc}
  23. {$INLINE ON}
  24. {$endif}
  25. {$R+}
  26. {$P-}
  27. {$V+}
  28. {$ifdef VER70}
  29. {$define tp}
  30. {$endif}
  31. { REAL should map to single or double }
  32. { so it is not checked, since single }
  33. { double nodes are checked. }
  34. { assumes that enumdef is the same as orddef (same storage format) }
  35. const
  36. { should be defined depending on CPU target }
  37. {$ifdef fpc}
  38. {$ifdef cpu68k}
  39. BIG_INDEX = 8000;
  40. SMALL_INDEX = 13;
  41. {$endif}
  42. {$ifdef cpui386}
  43. BIG_INDEX = 33000;
  44. SMALL_INDEX = 13; { value should not be aligned! }
  45. {$endif}
  46. {$else}
  47. BIG_INDEX = 33000;
  48. SMALL_INDEX = 13; { value should not be aligned! }
  49. {$endif}
  50. RESULT_U8BIT = $55;
  51. RESULT_U16BIT = $500F;
  52. RESULT_S32BIT = $500F0000;
  53. RESULT_S64BIT = $500F0000;
  54. RESULT_S32REAL = 1777.12;
  55. RESULT_S64REAL = 3444.24;
  56. RESULT_BOOL8BIT = 1;
  57. RESULT_BOOL16BIT = 1;
  58. RESULT_BOOL32BIT = 1;
  59. RESULT_PCHAR = 'Hello world';
  60. RESULT_BIGSTRING = 'Hello world';
  61. RESULT_SMALLSTRING = 'H';
  62. RESULT_CHAR = 'I';
  63. RESULT_BOOLEAN = TRUE;
  64. type
  65. {$ifdef fpc}
  66. pbytearr=^byte;
  67. {$else}
  68. pbytearr=^tbytearr;
  69. tbytearr=array[0..$fffffff] of byte;
  70. {$endif}
  71. tclass1 = class
  72. end;
  73. tprocedure = procedure;
  74. tsmallrecord = packed record
  75. b: byte;
  76. w: word;
  77. end;
  78. tlargerecord = packed record
  79. b: array[1..BIG_INDEX] of byte;
  80. end;
  81. tsmallarray = packed array[1..SMALL_INDEX] of byte;
  82. tsmallsetenum =
  83. (A_A,A_B,A_C,A_D);
  84. tsmallset = set of tsmallsetenum;
  85. tlargeset = set of char;
  86. tsmallstring = string[2];
  87. var
  88. global_u8bit : byte;
  89. global_u16bit : word;
  90. global_s32bit : longint;
  91. global_s64bit : int64;
  92. global_s32real : single;
  93. global_s64real : double;
  94. global_ptr : pchar;
  95. global_proc : tprocedure;
  96. global_class : tclass1;
  97. global_bigstring : shortstring;
  98. global_boolean : boolean;
  99. global_char : char;
  100. value_u8bit : byte;
  101. value_u16bit : word;
  102. value_s32bit : longint;
  103. value_s64bit : int64;
  104. value_s32real : single;
  105. value_s64real : double;
  106. value_proc : tprocedure;
  107. value_ptr : pchar;
  108. value_class : tclass1;
  109. value_smallrec : tsmallrecord;
  110. value_largerec : tlargerecord;
  111. value_smallset : tsmallset;
  112. value_smallstring : tsmallstring;
  113. value_bigstring : shortstring;
  114. value_largeset : tlargeset;
  115. value_smallarray : tsmallarray;
  116. value_boolean : boolean;
  117. value_char : char;
  118. procedure fail;
  119. begin
  120. WriteLn('Failure.');
  121. halt(1);
  122. end;
  123. procedure clear_globals;
  124. begin
  125. global_u8bit := 0;
  126. global_u16bit := 0;
  127. global_s32bit := 0;
  128. global_s64bit := 0;
  129. global_s32real := 0.0;
  130. global_s64real := 0.0;
  131. global_ptr := nil;
  132. global_proc := nil;
  133. global_class := nil;
  134. global_bigstring := '';
  135. global_boolean := false;
  136. global_char := #0;
  137. end;
  138. procedure clear_values;
  139. begin
  140. value_u8bit := 0;
  141. value_u16bit := 0;
  142. value_s32bit := 0;
  143. value_s64bit := 0;
  144. value_s32real := 0.0;
  145. value_s64real := 0.0;
  146. value_proc := nil;
  147. value_ptr := nil;
  148. value_class := nil;
  149. fillchar(value_smallrec, sizeof(value_smallrec), #0);
  150. fillchar(value_largerec, sizeof(value_largerec), #0);
  151. value_smallset := [];
  152. value_smallstring := '';
  153. value_bigstring := '';
  154. value_largeset := [];
  155. fillchar(value_smallarray, sizeof(value_smallarray), #0);
  156. value_boolean := false;
  157. value_char:=#0;
  158. end;
  159. procedure testprocedure;
  160. begin
  161. end;
  162. function getu8bit : byte;
  163. begin
  164. getu8bit:=RESULT_U8BIT;
  165. end;
  166. function getu16bit: word;
  167. begin
  168. getu16bit:=RESULT_U16BIT;
  169. end;
  170. function gets32bit: longint;
  171. begin
  172. gets32bit:=RESULT_S32BIT;
  173. end;
  174. function gets64bit: int64;
  175. begin
  176. gets64bit:=RESULT_S64BIT;
  177. end;
  178. function gets32real: single;
  179. begin
  180. gets32real:=RESULT_S32REAL;
  181. end;
  182. function gets64real: double;
  183. begin
  184. gets64real:=RESULT_S64REAL;
  185. end;
  186. {************************************************************************}
  187. { VAR PARAMETERS }
  188. {************************************************************************}
  189. procedure proc_var_s32bit(var v : longint);cdecl;
  190. begin
  191. v:=RESULT_S32BIT;
  192. end;
  193. procedure proc_var_s64bit(var v: int64);cdecl;
  194. begin
  195. v:=RESULT_S64BIT;
  196. end;
  197. procedure proc_var_u8bit(var v: byte);cdecl;
  198. begin
  199. v:=RESULT_U8BIT;
  200. end;
  201. procedure proc_var_smallrecord(var smallrec : tsmallrecord);cdecl;
  202. begin
  203. smallrec.b := RESULT_U8BIT;
  204. smallrec.w := RESULT_U16BIT;
  205. end;
  206. procedure proc_var_largerecord(var largerec : tlargerecord);cdecl;
  207. begin
  208. largerec.b[1] := RESULT_U8BIT;
  209. largerec.b[2] := RESULT_U8BIT;
  210. end;
  211. procedure proc_var_smallset(var smallset : tsmallset);cdecl;
  212. begin
  213. smallset := [A_A,A_D];
  214. end;
  215. procedure proc_var_largeset(var largeset : tlargeset);cdecl;
  216. begin
  217. largeset:= largeset + ['I'];
  218. end;
  219. procedure proc_var_smallstring(var s:tsmallstring);cdecl;
  220. begin
  221. s:=RESULT_SMALLSTRING;
  222. end;
  223. procedure proc_var_bigstring(var s:shortstring);cdecl;
  224. begin
  225. s:=RESULT_BIGSTRING;
  226. end;
  227. procedure proc_var_openstring(var s: OpenString);cdecl;
  228. begin
  229. global_u8bit := {high(s) is not available with cdecl}255;
  230. s:=RESULT_SMALLSTRING;
  231. end;
  232. procedure proc_var_smallarray(var arr : tsmallarray);cdecl;
  233. begin
  234. arr[SMALL_INDEX] := RESULT_U8BIT;
  235. arr[1] := RESULT_U8BIT;
  236. end;
  237. procedure proc_var_formaldef_array(var buf);cdecl;
  238. var
  239. p: pbytearr;
  240. begin
  241. { array is indexed from 1 }
  242. p := @buf;
  243. p[SMALL_INDEX-1] := RESULT_U8BIT;
  244. p[0] := RESULT_U8BIT;
  245. end;
  246. procedure proc_var_formaldef_string(var buf);cdecl;
  247. var
  248. p: pbytearr;
  249. begin
  250. { array is indexed from 1 }
  251. p := @buf;
  252. p[SMALL_INDEX-1] := RESULT_U8BIT;
  253. p[0] := RESULT_U8BIT;
  254. end;
  255. {************************************************************************}
  256. { MIXED VAR PARAMETERS }
  257. {************************************************************************}
  258. procedure proc_var_s32bit_mixed(b1 : byte;var v : longint; b2: byte);cdecl;
  259. begin
  260. v:=RESULT_S32BIT;
  261. value_u8bit := RESULT_U8BIT;
  262. end;
  263. procedure proc_var_s64bit_mixed(b1 : byte;var v: int64; b2: byte);cdecl;
  264. begin
  265. v:=RESULT_S64BIT;
  266. value_u8bit := RESULT_U8BIT;
  267. end;
  268. procedure proc_var_u8bit_mixed(b1 : byte;var v: byte; b2: byte);cdecl;
  269. begin
  270. v:=RESULT_U8BIT;
  271. value_u8bit := RESULT_U8BIT;
  272. end;
  273. procedure proc_var_smallrecord_mixed(b1 : byte; var smallrec : tsmallrecord; b2: byte);cdecl;
  274. begin
  275. smallrec.b := RESULT_U8BIT;
  276. smallrec.w := RESULT_U16BIT;
  277. value_u8bit := RESULT_U8BIT;
  278. end;
  279. procedure proc_var_largerecord_mixed(b1 : byte; var largerec : tlargerecord; b2: byte);cdecl;
  280. begin
  281. largerec.b[1] := RESULT_U8BIT;
  282. largerec.b[2] := RESULT_U8BIT;
  283. value_u8bit := RESULT_U8BIT;
  284. end;
  285. procedure proc_var_smallset_mixed(b1 : byte; var smallset : tsmallset; b2: byte);cdecl;
  286. begin
  287. smallset := [A_A,A_D];
  288. value_u8bit := RESULT_U8BIT;
  289. end;
  290. procedure proc_var_largeset_mixed(b1 : byte; var largeset : tlargeset; b2: byte);cdecl;
  291. begin
  292. largeset:= largeset + ['I'];
  293. value_u8bit := RESULT_U8BIT;
  294. end;
  295. procedure proc_var_smallstring_mixed(b1 : byte; var s:tsmallstring; b2: byte);cdecl;
  296. begin
  297. s:=RESULT_SMALLSTRING;
  298. value_u8bit := RESULT_U8BIT;
  299. end;
  300. procedure proc_var_bigstring_mixed(b1 : byte; var s:shortstring; b2: byte);cdecl;
  301. begin
  302. s:=RESULT_BIGSTRING;
  303. value_u8bit := RESULT_U8BIT;
  304. end;
  305. procedure proc_var_openstring_mixed(b1 : byte; var s: OpenString; b2: byte);cdecl;
  306. begin
  307. global_u8bit := {high(s) is not available with cdecl}255;
  308. s:=RESULT_SMALLSTRING;
  309. value_u8bit := RESULT_U8BIT;
  310. end;
  311. procedure proc_var_smallarray_mixed(b1 : byte; var arr : tsmallarray; b2: byte);cdecl;
  312. begin
  313. arr[SMALL_INDEX] := RESULT_U8BIT;
  314. arr[1] := RESULT_U8BIT;
  315. value_u8bit := RESULT_U8BIT;
  316. end;
  317. procedure proc_var_formaldef_array_mixed(b1 : byte; var buf; b2: byte);cdecl;
  318. var
  319. p: pbytearr;
  320. begin
  321. { array is indexed from 1 }
  322. p := @buf;
  323. p[SMALL_INDEX-1] := RESULT_U8BIT;
  324. p[0] := RESULT_U8BIT;
  325. value_u8bit := RESULT_U8BIT;
  326. end;
  327. procedure proc_var_formaldef_string_mixed(b1 : byte; var buf; b2: byte);cdecl;
  328. var
  329. p: pbytearr;
  330. begin
  331. { array is indexed from 1 }
  332. p := @buf;
  333. p[SMALL_INDEX-1] := RESULT_U8BIT;
  334. p[0] := RESULT_U8BIT;
  335. value_u8bit := RESULT_U8BIT;
  336. end;
  337. var
  338. failed: boolean;
  339. pp : ^pchar;
  340. begin
  341. {***************************** NORMAL TESTS *******************************}
  342. clear_globals;
  343. clear_values;
  344. failed:=false;
  345. write('Var parameter test (src : LOC_REFERENCE (orddef)))...');
  346. proc_var_s32bit(global_s32bit);
  347. if global_s32bit <> RESULT_S32BIT then
  348. failed:=true;
  349. clear_globals;
  350. clear_values;
  351. proc_var_s64bit(global_s64bit);
  352. if global_s64bit <> RESULT_S64BIT then
  353. failed:=true;
  354. clear_globals;
  355. clear_values;
  356. proc_var_u8bit(global_u8bit);
  357. if global_u8bit <> RESULT_U8BIT then
  358. failed:=true;
  359. if failed then
  360. fail
  361. else
  362. WriteLn('Passed!');
  363. write('Var parameter test (src : LOC_REFERENCE (recorddef)))...');
  364. clear_globals;
  365. clear_values;
  366. failed := false;
  367. proc_var_smallrecord(value_smallrec);
  368. if (value_smallrec.b <> RESULT_U8BIT) or (value_smallrec.w <> RESULT_U16BIT) then
  369. failed := true;
  370. clear_globals;
  371. clear_values;
  372. proc_var_largerecord(value_largerec);
  373. if (value_largerec.b[1] <> RESULT_U8BIT) or (value_largerec.b[2] <> RESULT_U8BIT) then
  374. failed := true;
  375. if failed then
  376. fail
  377. else
  378. WriteLn('Passed!');
  379. write('var parameter test (src : LOC_REFERENCE (setdef)))...');
  380. clear_globals;
  381. clear_values;
  382. failed := false;
  383. proc_var_smallset(value_smallset);
  384. if (not (A_A in value_smallset)) or (not (A_D in value_smallset)) then
  385. failed := true;
  386. clear_globals;
  387. clear_values;
  388. proc_var_largeset(value_largeset);
  389. if not ('I' in value_largeset) then
  390. failed := true;
  391. if failed then
  392. fail
  393. else
  394. WriteLn('Passed!');
  395. write('var parameter test (src : LOC_REFERENCE (stringdef)))...');
  396. clear_globals;
  397. clear_values;
  398. failed := false;
  399. proc_var_smallstring(value_smallstring);
  400. if value_smallstring <> RESULT_SMALLSTRING then
  401. failed := true;
  402. clear_globals;
  403. clear_values;
  404. proc_var_bigstring(value_bigstring);
  405. if value_bigstring <> RESULT_BIGSTRING then
  406. failed := true;
  407. clear_globals;
  408. clear_values;
  409. proc_var_openstring(value_smallstring);
  410. if (value_smallstring <> RESULT_SMALLSTRING) or
  411. { high is not passed to cdecl'ared functions thus
  412. value_smallstring should be 255 on retyurn PM }
  413. (global_u8bit <> {high(value_smallstring)}255) then
  414. failed := true;
  415. if failed then
  416. fail
  417. else
  418. WriteLn('Passed!');
  419. write('Var parameter test (src : LOC_REFERENCE (formaldef)))...');
  420. clear_globals;
  421. clear_values;
  422. failed:=false;
  423. proc_var_formaldef_array(value_smallarray);
  424. if (value_smallarray[SMALL_INDEX] <> RESULT_U8BIT) or (value_smallarray[1] <> RESULT_U8BIT) then
  425. failed := true;
  426. if failed then
  427. fail
  428. else
  429. WriteLn('Passed!');
  430. write('Var parameter test (src : LOC_REFERENCE (arraydef)))...');
  431. clear_globals;
  432. clear_values;
  433. failed:=false;
  434. value_smallarray[SMALL_INDEX] := RESULT_U8BIT;
  435. proc_var_smallarray(value_smallarray);
  436. if (value_smallarray[SMALL_INDEX] <> RESULT_U8BIT) or (value_smallarray[1] <> RESULT_U8BIT) then
  437. failed := true;
  438. if failed then
  439. fail
  440. else
  441. WriteLn('Passed!');
  442. {***************************** MIXED TESTS *******************************}
  443. clear_globals;
  444. clear_values;
  445. failed:=false;
  446. write('Var parameter test (src : LOC_REFERENCE (orddef)))...');
  447. proc_var_s32bit_mixed(RESULT_U8BIT, global_s32bit, RESULT_U8BIT);
  448. if global_s32bit <> RESULT_S32BIT then
  449. failed:=true;
  450. if value_u8bit <> RESULT_U8BIT then
  451. failed := true;
  452. clear_globals;
  453. clear_values;
  454. proc_var_s64bit_mixed(RESULT_U8BIT, global_s64bit, RESULT_U8BIT);
  455. if global_s64bit <> RESULT_S64BIT then
  456. failed:=true;
  457. if value_u8bit <> RESULT_U8BIT then
  458. failed := true;
  459. clear_globals;
  460. clear_values;
  461. proc_var_u8bit_mixed(RESULT_U8BIT, global_u8bit, RESULT_U8BIT);
  462. if global_u8bit <> RESULT_U8BIT then
  463. failed:=true;
  464. if value_u8bit <> RESULT_U8BIT then
  465. failed := true;
  466. if failed then
  467. fail
  468. else
  469. WriteLn('Passed!');
  470. write('Var parameter test (src : LOC_REFERENCE (recorddef)))...');
  471. clear_globals;
  472. clear_values;
  473. failed := false;
  474. proc_var_smallrecord_mixed(RESULT_U8BIT,value_smallrec, RESULT_U8BIT);
  475. if (value_smallrec.b <> RESULT_U8BIT) or (value_smallrec.w <> RESULT_U16BIT) then
  476. failed := true;
  477. if value_u8bit <> RESULT_U8BIT then
  478. failed := true;
  479. clear_globals;
  480. clear_values;
  481. proc_var_largerecord_mixed(RESULT_U8BIT, value_largerec, RESULT_U8BIT);
  482. if (value_largerec.b[1] <> RESULT_U8BIT) or (value_largerec.b[2] <> RESULT_U8BIT) then
  483. failed := true;
  484. if value_u8bit <> RESULT_U8BIT then
  485. failed := true;
  486. if failed then
  487. fail
  488. else
  489. WriteLn('Passed!');
  490. write('var parameter test (src : LOC_REFERENCE (setdef)))...');
  491. clear_globals;
  492. clear_values;
  493. failed := false;
  494. proc_var_smallset_mixed(RESULT_U8BIT, value_smallset, RESULT_U8BIT);
  495. if (not (A_A in value_smallset)) or (not (A_D in value_smallset)) then
  496. failed := true;
  497. if value_u8bit <> RESULT_U8BIT then
  498. failed := true;
  499. clear_globals;
  500. clear_values;
  501. proc_var_largeset_mixed(RESULT_U8BIT, value_largeset, RESULT_U8BIT);
  502. if not ('I' in value_largeset) then
  503. failed := true;
  504. if value_u8bit <> RESULT_U8BIT then
  505. failed := true;
  506. if failed then
  507. fail
  508. else
  509. WriteLn('Passed!');
  510. write('var parameter test (src : LOC_REFERENCE (stringdef)))...');
  511. clear_globals;
  512. clear_values;
  513. failed := false;
  514. proc_var_smallstring_mixed(RESULT_U8BIT, value_smallstring, RESULT_U8BIT);
  515. if value_smallstring <> RESULT_SMALLSTRING then
  516. failed := true;
  517. if value_u8bit <> RESULT_U8BIT then
  518. failed := true;
  519. clear_globals;
  520. clear_values;
  521. proc_var_bigstring_mixed(RESULT_U8BIT, value_bigstring,RESULT_U8BIT);
  522. if value_bigstring <> RESULT_BIGSTRING then
  523. failed := true;
  524. if value_u8bit <> RESULT_U8BIT then
  525. failed := true;
  526. clear_globals;
  527. clear_values;
  528. proc_var_openstring_mixed(RESULT_U8BIT, value_smallstring, RESULT_U8BIT);
  529. if (value_smallstring <> RESULT_SMALLSTRING) or
  530. { high is not passed to cdecl'ared functions thus
  531. value_smallstring should be 255 on retyurn PM }
  532. (global_u8bit <> {high(value_smallstring)}255) then
  533. failed := true;
  534. if value_u8bit <> RESULT_U8BIT then
  535. failed := true;
  536. if failed then
  537. fail
  538. else
  539. WriteLn('Passed!');
  540. write('Var parameter test (src : LOC_REFERENCE (formaldef)))...');
  541. clear_globals;
  542. clear_values;
  543. failed:=false;
  544. proc_var_formaldef_array_mixed(RESULT_U8BIT, value_smallarray, RESULT_U8BIT);
  545. if (value_smallarray[SMALL_INDEX] <> RESULT_U8BIT) or (value_smallarray[1] <> RESULT_U8BIT) then
  546. failed := true;
  547. if value_u8bit <> RESULT_U8BIT then
  548. failed := true;
  549. if failed then
  550. fail
  551. else
  552. WriteLn('Passed!');
  553. write('Var parameter test (src : LOC_REFERENCE (arraydef)))...');
  554. clear_globals;
  555. clear_values;
  556. failed:=false;
  557. value_smallarray[SMALL_INDEX] := RESULT_U8BIT;
  558. proc_var_smallarray_mixed(RESULT_U8BIT, value_smallarray, RESULT_U8BIT);
  559. if (value_smallarray[SMALL_INDEX] <> RESULT_U8BIT) or (value_smallarray[1] <> RESULT_U8BIT) then
  560. failed := true;
  561. if value_u8bit <> RESULT_U8BIT then
  562. failed := true;
  563. if failed then
  564. fail
  565. else
  566. WriteLn('Passed!');
  567. end.
  568. {
  569. $Log$
  570. Revision 1.8 2002-12-29 15:30:55 peter
  571. * updated for 1.1 compiler that does not allow calling conventions
  572. for constructor/destructor
  573. Revision 1.7 2002/12/05 15:54:20 pierre
  574. * update as openstrings are transformed into normal string in cdecl'ared functions
  575. Revision 1.6 2002/11/20 19:39:21 carl
  576. - high() cannot be used in cdecle'd routines
  577. Revision 1.5 2002/11/09 21:47:37 carl
  578. + updated tests for correct parsing (array of const now allowed with high!)
  579. Revision 1.4 2002/09/22 09:08:41 carl
  580. * gets64bit was not returning an int64!
  581. Revision 1.3 2002/09/07 15:40:55 peter
  582. * old logs removed and tabs fixed
  583. Revision 1.2 2002/05/13 13:45:38 peter
  584. * updated to compile tests with kylix
  585. Revision 1.1 2002/04/13 17:51:00 carl
  586. + var parameter passing for different calling conventions
  587. }