symppu.inc 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798
  1. {
  2. $Id$
  3. Copyright (c) 1993-98 by Florian Klaempfl, Pierre Muller
  4. Implementation of the reading of PPU Files for the symtable
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; if not, write to the Free Software
  15. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  16. ****************************************************************************
  17. }
  18. const
  19. {$ifdef FPC}
  20. ppubufsize=32768;
  21. {$ELSE}
  22. {$IFDEF USEOVERLAY}
  23. ppubufsize=512;
  24. {$ELSE}
  25. ppubufsize=4096;
  26. {$ENDIF}
  27. {$ENDIF}
  28. {*****************************************************************************
  29. PPU Writing
  30. *****************************************************************************}
  31. procedure writebyte(b:byte);
  32. begin
  33. current_ppu^.putbyte(b);
  34. end;
  35. procedure writeword(w:word);
  36. begin
  37. current_ppu^.putword(w);
  38. end;
  39. procedure writelong(l:longint);
  40. begin
  41. current_ppu^.putlongint(l);
  42. end;
  43. procedure writereal(d:bestreal);
  44. begin
  45. current_ppu^.putreal(d);
  46. end;
  47. procedure writestring(const s:string);
  48. begin
  49. current_ppu^.putstring(s);
  50. end;
  51. procedure writenormalset(var s); {You cannot pass an array[0..31] of byte!}
  52. begin
  53. current_ppu^.putdata(s,sizeof(tnormalset));
  54. end;
  55. procedure writeposinfo(const p:tfileposinfo);
  56. begin
  57. current_ppu^.putword(p.fileindex);
  58. current_ppu^.putlongint(p.line);
  59. current_ppu^.putword(p.column);
  60. end;
  61. procedure writederef(p : psymtableentry);
  62. begin
  63. if p=nil then
  64. current_ppu^.putbyte(ord(derefnil))
  65. else
  66. begin
  67. { Static symtable ? }
  68. if p^.owner^.symtabletype=staticsymtable then
  69. begin
  70. current_ppu^.putbyte(ord(derefaktstaticindex));
  71. current_ppu^.putword(p^.indexnr);
  72. end
  73. { Local record/object symtable ? }
  74. else if (p^.owner=aktrecordsymtable) then
  75. begin
  76. current_ppu^.putbyte(ord(derefaktrecordindex));
  77. current_ppu^.putword(p^.indexnr);
  78. end
  79. else
  80. { else if p^.owner^.unitid>$8000 then
  81. current_ppu^.putword(p^.owner^.unitid) }
  82. begin
  83. current_ppu^.putbyte(ord(derefindex));
  84. current_ppu^.putword(p^.indexnr);
  85. { Current unit symtable ? }
  86. repeat
  87. if not assigned(p) then
  88. internalerror(556655);
  89. case p^.owner^.symtabletype of
  90. unitsymtable :
  91. begin
  92. current_ppu^.putbyte(ord(derefunit));
  93. current_ppu^.putword(p^.owner^.unitid);
  94. break;
  95. end;
  96. staticsymtable :
  97. begin
  98. current_ppu^.putbyte(ord(derefaktstaticindex));
  99. current_ppu^.putword(p^.indexnr);
  100. break;
  101. end;
  102. localsymtable :
  103. begin
  104. p:=p^.owner^.defowner;
  105. current_ppu^.putbyte(ord(dereflocal));
  106. current_ppu^.putword(p^.indexnr);
  107. end;
  108. parasymtable :
  109. begin
  110. p:=p^.owner^.defowner;
  111. current_ppu^.putbyte(ord(derefpara));
  112. current_ppu^.putword(p^.indexnr);
  113. end;
  114. objectsymtable,
  115. recordsymtable :
  116. begin
  117. p:=p^.owner^.defowner;
  118. current_ppu^.putbyte(ord(derefrecord));
  119. current_ppu^.putword(p^.indexnr);
  120. end;
  121. else
  122. internalerror(556656);
  123. end;
  124. until false;
  125. end;
  126. end;
  127. end;
  128. procedure writedefref(p : pdef);
  129. begin
  130. writederef(p);
  131. end;
  132. procedure writesymref(p : psym);
  133. begin
  134. writederef(p);
  135. end;
  136. procedure writesourcefiles;
  137. var
  138. hp : pinputfile;
  139. begin
  140. { second write the used source files }
  141. current_ppu^.do_crc:=false;
  142. hp:=current_module^.sourcefiles^.files;
  143. while assigned(hp) do
  144. begin
  145. { only name and extension }
  146. current_ppu^.putstring(hp^.name^);
  147. hp:=hp^.ref_next;
  148. end;
  149. current_ppu^.writeentry(ibsourcefiles);
  150. current_ppu^.do_crc:=true;
  151. end;
  152. procedure writeusedunit;
  153. var
  154. hp : pused_unit;
  155. begin
  156. numberunits;
  157. hp:=pused_unit(current_module^.used_units.first);
  158. while assigned(hp) do
  159. begin
  160. current_ppu^.do_interface_crc:=hp^.in_interface;
  161. current_ppu^.putstring(hp^.name^);
  162. { the checksum should not affect the crc of this unit ! (PFV) }
  163. current_ppu^.do_crc:=false;
  164. current_ppu^.putlongint(hp^.checksum);
  165. current_ppu^.putlongint(hp^.interface_checksum);
  166. current_ppu^.do_crc:=true;
  167. current_ppu^.putbyte(byte(hp^.in_interface));
  168. hp:=pused_unit(hp^.next);
  169. end;
  170. current_ppu^.do_interface_crc:=true;
  171. current_ppu^.writeentry(ibloadunit);
  172. end;
  173. procedure writelinkcontainer(var p:tlinkcontainer;id:byte;strippath:boolean);
  174. var
  175. hcontainer : tlinkcontainer;
  176. s : string;
  177. mask : longint;
  178. begin
  179. hcontainer.init;
  180. while not p.empty do
  181. begin
  182. s:=p.get(mask);
  183. if strippath then
  184. current_ppu^.putstring(SplitFileName(s))
  185. else
  186. current_ppu^.putstring(s);
  187. current_ppu^.putlongint(mask);
  188. hcontainer.insert(s,mask);
  189. end;
  190. current_ppu^.writeentry(id);
  191. p:=hcontainer;
  192. end;
  193. { procedure writelinkother(var p:tstringcontainer;id:byte;strippath:boolean);
  194. var
  195. hcontainer : tstringcontainer;
  196. s : string;
  197. begin
  198. hcontainer.init;
  199. while not p.empty do
  200. begin
  201. s:=p.get;
  202. if strippath then
  203. current_ppu^.putstring(SplitFileName(s))
  204. else
  205. current_ppu^.putstring(s);
  206. hcontainer.insert(s);
  207. end;
  208. current_ppu^.writeentry(id);
  209. p:=hcontainer;
  210. end; }
  211. procedure writeunitas(const s : string;unittable : punitsymtable;only_crc : boolean);
  212. begin
  213. Message1(unit_u_ppu_write,s);
  214. { create unit flags }
  215. with Current_Module^ do
  216. begin
  217. if cs_smartlink in aktmoduleswitches then
  218. flags:=flags or uf_smart_linked;
  219. {$ifdef GDB}
  220. if cs_gdb_dbx in aktglobalswitches then
  221. flags:=flags or uf_has_dbx;
  222. {$endif GDB}
  223. if target_os.endian=endian_big then
  224. flags:=flags or uf_big_endian;
  225. if cs_browser in aktmoduleswitches then
  226. flags:=flags or uf_has_browser;
  227. if cs_local_browser in aktmoduleswitches then
  228. flags:=flags or uf_local_browser;
  229. end;
  230. {$ifdef Test_Double_checksum_write}
  231. If only_crc then
  232. Assign(CRCFile,s+'.INT')
  233. else
  234. Assign(CRCFile,s+'.IMP');
  235. Rewrite(CRCFile);
  236. {$endif def Test_Double_checksum_write}
  237. { open ppufile }
  238. current_ppu:=new(pppufile,init(s));
  239. if not current_ppu^.create then
  240. Message(unit_f_ppu_cannot_write);
  241. current_ppu^.crc_only:=only_crc;
  242. {$ifdef Test_Double_checksum}
  243. if only_crc then
  244. begin
  245. new(current_ppu^.crc_test);
  246. end
  247. else
  248. begin
  249. current_ppu^.crc_test:=Current_Module^.crc_array;
  250. current_ppu^.crc_index:=Current_Module^.crc_size;
  251. end;
  252. {$endif def Test_Double_checksum}
  253. current_ppu^.change_endian:=source_os.endian<>target_os.endian;
  254. { write symbols and definitions }
  255. unittable^.writeasunit;
  256. { flush to be sure }
  257. current_ppu^.flush;
  258. { create and write header }
  259. current_ppu^.header.size:=current_ppu^.size;
  260. current_ppu^.header.checksum:=current_ppu^.crc;
  261. current_ppu^.header.interface_checksum:=current_ppu^.interface_crc;
  262. current_ppu^.header.compiler:=wordversion;
  263. current_ppu^.header.cpu:=word(target_cpu);
  264. current_ppu^.header.target:=word(target_info.target);
  265. current_ppu^.header.flags:=current_module^.flags;
  266. current_ppu^.writeheader;
  267. { save crc in current_module also }
  268. current_module^.crc:=current_ppu^.crc;
  269. current_module^.interface_crc:=current_ppu^.interface_crc;
  270. if only_crc then
  271. begin
  272. {$ifdef Test_Double_checksum}
  273. Current_Module^.crc_array:=current_ppu^.crc_test;
  274. current_ppu^.crc_test:=nil;
  275. Current_Module^.crc_size:=current_ppu^.crc_index;
  276. {$endif def Test_Double_checksum}
  277. closecurrentppu;
  278. end;
  279. {$ifdef Test_Double_checksum_write}
  280. close(CRCFile);
  281. {$endif Test_Double_checksum_write}
  282. end;
  283. procedure closecurrentppu;
  284. begin
  285. {$ifdef Test_Double_checksum}
  286. if assigned(current_ppu^.crc_test) then
  287. dispose(current_ppu^.crc_test);
  288. {$endif Test_Double_checksum}
  289. { close }
  290. current_ppu^.close;
  291. dispose(current_ppu,done);
  292. current_ppu:=nil;
  293. end;
  294. {*****************************************************************************
  295. PPU Reading
  296. *****************************************************************************}
  297. function readbyte:byte;
  298. begin
  299. readbyte:=current_ppu^.getbyte;
  300. if current_ppu^.error then
  301. Message(unit_f_ppu_read_error);
  302. end;
  303. function readword:word;
  304. begin
  305. readword:=current_ppu^.getword;
  306. if current_ppu^.error then
  307. Message(unit_f_ppu_read_error);
  308. end;
  309. function readlong:longint;
  310. begin
  311. readlong:=current_ppu^.getlongint;
  312. if current_ppu^.error then
  313. Message(unit_f_ppu_read_error);
  314. end;
  315. function readreal : bestreal;
  316. begin
  317. readreal:=current_ppu^.getreal;
  318. if current_ppu^.error then
  319. Message(unit_f_ppu_read_error);
  320. end;
  321. function readstring : string;
  322. begin
  323. readstring:=current_ppu^.getstring;
  324. if current_ppu^.error then
  325. Message(unit_f_ppu_read_error);
  326. end;
  327. procedure readnormalset(var s); {You cannot pass an array [0..31] of byte.}
  328. begin
  329. current_ppu^.getdata(s,sizeof(tnormalset));
  330. if current_ppu^.error then
  331. Message(unit_f_ppu_read_error);
  332. end;
  333. procedure readposinfo(var p:tfileposinfo);
  334. begin
  335. p.fileindex:=current_ppu^.getword;
  336. p.line:=current_ppu^.getlongint;
  337. p.column:=current_ppu^.getword;
  338. end;
  339. {$ifndef OLDDEREF}
  340. function readderef : pderef;
  341. var
  342. hp,p : pderef;
  343. b : tdereftype;
  344. begin
  345. p:=nil;
  346. repeat
  347. hp:=p;
  348. b:=tdereftype(current_ppu^.getbyte);
  349. case b of
  350. derefnil :
  351. break;
  352. derefunit,
  353. derefaktrecordindex,
  354. derefaktstaticindex :
  355. begin
  356. new(p,init(b,current_ppu^.getword));
  357. p^.next:=hp;
  358. break;
  359. end;
  360. derefindex,
  361. derefrecord :
  362. begin
  363. new(p,init(b,current_ppu^.getword));
  364. p^.next:=hp;
  365. end;
  366. end;
  367. until false;
  368. readderef:=p;
  369. end;
  370. function readdefref : pdef;
  371. begin
  372. readdefref:=pdef(readderef);
  373. end;
  374. function readsymref : psym;
  375. begin
  376. readsymref:=psym(readderef);
  377. end;
  378. {$else}
  379. function readdefref : pdef;
  380. var
  381. hd : pdef;
  382. begin
  383. longint(hd):=current_ppu^.getword;
  384. longint(hd):=longint(hd) or (longint(current_ppu^.getword) shl 16);
  385. readdefref:=hd;
  386. end;
  387. function readsymref : psym;
  388. var
  389. hd : psym;
  390. begin
  391. longint(hd):=current_ppu^.getword;
  392. longint(hd):=longint(hd) or (longint(current_ppu^.getword) shl 16);
  393. readsymref:=hd;
  394. end;
  395. {$endif}
  396. procedure readsourcefiles;
  397. var
  398. temp,hs : string;
  399. incfile_found : boolean;
  400. ppufiletime,
  401. source_time : longint;
  402. hp : pinputfile;
  403. begin
  404. ppufiletime:=getnamedfiletime(current_module^.ppufilename^);
  405. current_module^.sources_avail:=true;
  406. while not current_ppu^.endofentry do
  407. begin
  408. hs:=current_ppu^.getstring;
  409. temp:='';
  410. if (current_module^.flags and uf_in_library)<>0 then
  411. begin
  412. current_module^.sources_avail:=false;
  413. temp:=' library';
  414. end
  415. else if pos('Macro ',hs)=1 then
  416. begin
  417. { we don't want to find this file }
  418. { but there is a problem with file indexing !! }
  419. temp:='';
  420. end
  421. else
  422. begin
  423. { check the date of the source files }
  424. Source_Time:=GetNamedFileTime(current_module^.path^+hs);
  425. incfile_found:=false;
  426. if (Source_Time=-1) then
  427. begin
  428. temp:=search(hs,includesearchpath,incfile_found);
  429. if incfile_found then
  430. begin
  431. hs:=temp+hs;
  432. Source_Time:=GetNamedFileTime(hs);
  433. end
  434. end
  435. else
  436. hs:=current_module^.path^+hs;
  437. if Source_Time=-1 then
  438. begin
  439. current_module^.sources_avail:=false;
  440. temp:=' not found';
  441. end
  442. else
  443. begin
  444. { time newer? But only allow if the file is not searched
  445. in the include path (PFV), else you've problems with
  446. units which use the same includefile names }
  447. if incfile_found then
  448. temp:=' found'
  449. else
  450. begin
  451. temp:=' time '+filetimestring(source_time);
  452. if (source_time>ppufiletime) then
  453. begin
  454. current_module^.do_compile:=true;
  455. temp:=temp+' *'
  456. end;
  457. end;
  458. end;
  459. new(hp,init(hs));
  460. { the indexing is wrong here PM }
  461. current_module^.sourcefiles^.register_file(hp);
  462. end;
  463. Message1(unit_u_ppu_source,hs+temp);
  464. end;
  465. { main source is always the last }
  466. stringdispose(current_module^.mainsource);
  467. current_module^.mainsource:=stringdup(hs);
  468. { the indexing is corrected here PM }
  469. current_module^.sourcefiles^.inverse_register_indexes;
  470. { check if we want to rebuild every unit, only if the sources are
  471. available }
  472. if do_build and current_module^.sources_avail then
  473. current_module^.do_compile:=true;
  474. end;
  475. procedure readloadunit;
  476. var
  477. hs : string;
  478. intfchecksum,
  479. checksum : longint;
  480. in_interface : boolean;
  481. begin
  482. while not current_ppu^.endofentry do
  483. begin
  484. hs:=current_ppu^.getstring;
  485. checksum:=current_ppu^.getlongint;
  486. intfchecksum:=current_ppu^.getlongint;
  487. in_interface:=(current_ppu^.getbyte<>0);
  488. current_module^.used_units.concat(new(pused_unit,init_to_load(hs,checksum,intfchecksum,in_interface)));
  489. end;
  490. end;
  491. procedure readlinkcontainer(var p:tlinkcontainer);
  492. var
  493. s : string;
  494. m : longint;
  495. begin
  496. while not current_ppu^.endofentry do
  497. begin
  498. s:=current_ppu^.getstring;
  499. m:=current_ppu^.getlongint;
  500. p.insert(s,m);
  501. end;
  502. end;
  503. procedure load_interface;
  504. var
  505. b : byte;
  506. begin
  507. { read interface part }
  508. repeat
  509. b:=current_ppu^.readentry;
  510. case b of
  511. ibmodulename :
  512. begin
  513. stringdispose(current_module^.modulename);
  514. current_module^.modulename:=stringdup(current_ppu^.getstring);
  515. end;
  516. ibsourcefiles :
  517. readsourcefiles;
  518. ibloadunit :
  519. readloadunit;
  520. iblinkunitofiles :
  521. readlinkcontainer(current_module^.LinkUnitOFiles);
  522. iblinkunitstaticlibs :
  523. readlinkcontainer(current_module^.LinkUnitStaticLibs);
  524. iblinkunitsharedlibs :
  525. readlinkcontainer(current_module^.LinkUnitSharedLibs);
  526. iblinkotherofiles :
  527. readlinkcontainer(current_module^.LinkotherOFiles);
  528. iblinkotherstaticlibs :
  529. readlinkcontainer(current_module^.LinkotherStaticLibs);
  530. iblinkothersharedlibs :
  531. readlinkcontainer(current_module^.LinkotherSharedLibs);
  532. ibendinterface :
  533. break;
  534. else
  535. Message1(unit_f_ppu_invalid_entry,tostr(b));
  536. end;
  537. until false;
  538. end;
  539. {
  540. $Log$
  541. Revision 1.43 1999-07-03 00:30:00 peter
  542. * new link writing to the ppu, one .ppu is needed for all link types,
  543. static (.o) is now always created also when smartlinking is used
  544. Revision 1.42 1999/06/22 16:24:47 pierre
  545. * local browser stuff corrected
  546. Revision 1.41 1999/05/14 17:52:28 peter
  547. * new deref code
  548. Revision 1.40 1999/05/13 21:59:44 peter
  549. * removed oldppu code
  550. * warning if objpas is loaded from uses
  551. * first things for new deref writing
  552. Revision 1.39 1999/05/04 21:45:06 florian
  553. * changes to compile it with Delphi 4.0
  554. Revision 1.38 1999/04/26 13:31:51 peter
  555. * release storenumber,double_checksum
  556. Revision 1.37 1999/04/21 09:43:53 peter
  557. * storenumber works
  558. * fixed some typos in double_checksum
  559. + incompatible types type1 and type2 message (with storenumber)
  560. Revision 1.36 1999/04/14 09:15:01 peter
  561. * first things to store the symbol/def number in the ppu
  562. Revision 1.35 1999/04/07 15:39:35 pierre
  563. + double_checksum code added
  564. Revision 1.34 1999/03/02 13:49:19 peter
  565. * renamed loadunit_int -> loadunit
  566. Revision 1.33 1999/02/23 18:29:25 pierre
  567. * win32 compilation error fix
  568. + some work for local browser (not cl=omplete yet)
  569. Revision 1.32 1999/02/22 13:07:08 pierre
  570. + -b and -bl options work !
  571. + cs_local_browser ($L+) is disabled if cs_browser ($Y+)
  572. is not enabled when quitting global section
  573. * local vars and procedures are not yet stored into PPU
  574. Revision 1.31 1999/02/16 00:48:25 peter
  575. * save in the ppu if linked with obj file instead of using the
  576. library flag, so the .inc files are also checked
  577. Revision 1.30 1999/02/05 08:54:30 pierre
  578. + linkofiles splitted inot linkofiles and linkunitfiles
  579. because linkofiles must be stored with directory
  580. to enabled linking of different objects with same name
  581. in a different directory
  582. Revision 1.29 1999/01/20 10:16:46 peter
  583. * don't update crc when writing objs,libs and sources
  584. Revision 1.28 1999/01/12 14:25:35 peter
  585. + BrowserLog for browser.log generation
  586. + BrowserCol for browser info in TCollections
  587. * released all other UseBrowser
  588. Revision 1.27 1998/12/08 10:18:14 peter
  589. + -gh for heaptrc unit
  590. Revision 1.26 1998/11/26 14:36:02 peter
  591. * set also library flag if smartlinking and outputname is different
  592. Revision 1.25 1998/10/26 09:35:47 peter
  593. * don't count includefiles which are found in the includepath for a
  594. recompile.
  595. Revision 1.24 1998/10/20 08:06:59 pierre
  596. * several memory corruptions due to double freemem solved
  597. => never use p^.loc.location:=p^.left^.loc.location;
  598. + finally I added now by default
  599. that ra386dir translates global and unit symbols
  600. + added a first field in tsymtable and
  601. a nextsym field in tsym
  602. (this allows to obtain ordered type info for
  603. records and objects in gdb !)
  604. Revision 1.23 1998/10/16 13:37:24 florian
  605. + switch -FD added to specify the path for utilities
  606. Revision 1.22 1998/10/14 13:38:24 peter
  607. * fixed path with staticlib/objects in ppufiles
  608. Revision 1.21 1998/10/14 10:45:10 pierre
  609. * ppu problems for m68k fixed (at least in cross compiling)
  610. * one last memory leak for sysamiga fixed
  611. * the amiga RTL compiles now completely !!
  612. Revision 1.20 1998/10/13 13:10:30 peter
  613. * new style for m68k/i386 infos and enums
  614. Revision 1.19 1998/10/08 23:29:07 peter
  615. * -vu shows unit info, -vt shows tried/used files
  616. Revision 1.18 1998/09/28 16:57:27 pierre
  617. * changed all length(p^.value_str^) into str_length(p)
  618. to get it work with and without ansistrings
  619. * changed sourcefiles field of tmodule to a pointer
  620. Revision 1.17 1998/09/22 17:13:53 pierre
  621. + browsing updated and developed
  622. records and objects fields are also stored
  623. Revision 1.16 1998/09/22 15:40:56 peter
  624. * some extra ifdef GDB
  625. Revision 1.15 1998/09/21 08:45:23 pierre
  626. + added vmt_offset in tobjectdef.write for fututre use
  627. (first steps to have objects without vmt if no virtual !!)
  628. + added fpu_used field for tabstractprocdef :
  629. sets this level to 2 if the functions return with value in FPU
  630. (is then set to correct value at parsing of implementation)
  631. THIS MIGHT refuse some code with FPU expression too complex
  632. that were accepted before and even in some cases
  633. that don't overflow in fact
  634. ( like if f : float; is a forward that finally in implementation
  635. only uses one fpu register !!)
  636. Nevertheless I think that it will improve security on
  637. FPU operations !!
  638. * most other changes only for UseBrowser code
  639. (added symtable references for record and objects)
  640. local switch for refs to args and local of each function
  641. (static symtable still missing)
  642. UseBrowser still not stable and probably broken by
  643. the definition hash array !!
  644. Revision 1.14 1998/09/01 07:54:24 pierre
  645. * UseBrowser a little updated (might still be buggy !!)
  646. * bug in psub.pas in function specifier removed
  647. * stdcall allowed in interface and in implementation
  648. (FPC will not yet complain if it is missing in either part
  649. because stdcall is only a dummy !!)
  650. Revision 1.13 1998/08/17 10:10:11 peter
  651. - removed OLDPPU
  652. Revision 1.12 1998/08/17 09:17:53 peter
  653. * static/shared linking updates
  654. Revision 1.11 1998/08/16 20:32:49 peter
  655. * crcs of used units are not important for the current crc, reduces the
  656. amount of recompiles
  657. Revision 1.10 1998/08/13 10:57:30 peter
  658. * constant sets are now written correctly to the ppufile
  659. Revision 1.9 1998/08/11 15:31:41 peter
  660. * write extended to ppu file
  661. * new version 0.99.7
  662. Revision 1.8 1998/08/10 14:50:29 peter
  663. + localswitches, moduleswitches, globalswitches splitting
  664. Revision 1.7 1998/07/14 14:47:07 peter
  665. * released NEWINPUT
  666. Revision 1.6 1998/07/07 11:20:14 peter
  667. + NEWINPUT for a better inputfile and scanner object
  668. Revision 1.5 1998/06/24 14:48:39 peter
  669. * ifdef newppu -> ifndef oldppu
  670. Revision 1.4 1998/06/16 08:56:32 peter
  671. + targetcpu
  672. * cleaner pmodules for newppu
  673. Revision 1.3 1998/06/13 00:10:17 peter
  674. * working browser and newppu
  675. * some small fixes against crashes which occured in bp7 (but not in
  676. fpc?!)
  677. Revision 1.2 1998/05/28 14:40:28 peter
  678. * fixes for newppu, remake3 works now with it
  679. Revision 1.1 1998/05/27 19:45:09 peter
  680. * symtable.pas splitted into includefiles
  681. * symtable adapted for $ifdef NEWPPU
  682. }