symppu.inc 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802
  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 writesmallset(var s);
  56. begin
  57. current_ppu^.putdata(s,4);
  58. end;
  59. procedure writeposinfo(const p:tfileposinfo);
  60. begin
  61. current_ppu^.putword(p.fileindex);
  62. current_ppu^.putlongint(p.line);
  63. current_ppu^.putword(p.column);
  64. end;
  65. procedure writederef(p : psymtableentry);
  66. begin
  67. if p=nil then
  68. current_ppu^.putbyte(ord(derefnil))
  69. else
  70. begin
  71. { Static symtable ? }
  72. if p^.owner^.symtabletype=staticsymtable then
  73. begin
  74. current_ppu^.putbyte(ord(derefaktstaticindex));
  75. current_ppu^.putword(p^.indexnr);
  76. end
  77. { Local record/object symtable ? }
  78. else if (p^.owner=aktrecordsymtable) then
  79. begin
  80. current_ppu^.putbyte(ord(derefaktrecordindex));
  81. current_ppu^.putword(p^.indexnr);
  82. end
  83. else
  84. begin
  85. current_ppu^.putbyte(ord(derefindex));
  86. current_ppu^.putword(p^.indexnr);
  87. { Current unit symtable ? }
  88. repeat
  89. if not assigned(p) then
  90. internalerror(556655);
  91. case p^.owner^.symtabletype of
  92. unitsymtable :
  93. begin
  94. current_ppu^.putbyte(ord(derefunit));
  95. current_ppu^.putword(p^.owner^.unitid);
  96. break;
  97. end;
  98. staticsymtable :
  99. begin
  100. current_ppu^.putbyte(ord(derefaktstaticindex));
  101. current_ppu^.putword(p^.indexnr);
  102. break;
  103. end;
  104. localsymtable :
  105. begin
  106. p:=p^.owner^.defowner;
  107. current_ppu^.putbyte(ord(dereflocal));
  108. current_ppu^.putword(p^.indexnr);
  109. end;
  110. parasymtable :
  111. begin
  112. p:=p^.owner^.defowner;
  113. current_ppu^.putbyte(ord(derefpara));
  114. current_ppu^.putword(p^.indexnr);
  115. end;
  116. objectsymtable,
  117. recordsymtable :
  118. begin
  119. p:=p^.owner^.defowner;
  120. current_ppu^.putbyte(ord(derefrecord));
  121. current_ppu^.putword(p^.indexnr);
  122. end;
  123. else
  124. internalerror(556656);
  125. end;
  126. until false;
  127. end;
  128. end;
  129. end;
  130. procedure writedefref(p : pdef);
  131. begin
  132. writederef(p);
  133. end;
  134. procedure writesymref(p : psym);
  135. begin
  136. writederef(p);
  137. end;
  138. procedure writesourcefiles;
  139. var
  140. hp : pinputfile;
  141. begin
  142. { second write the used source files }
  143. current_ppu^.do_crc:=false;
  144. hp:=current_module^.sourcefiles^.files;
  145. while assigned(hp) do
  146. begin
  147. { only name and extension }
  148. current_ppu^.putstring(hp^.name^);
  149. hp:=hp^.ref_next;
  150. end;
  151. current_ppu^.writeentry(ibsourcefiles);
  152. current_ppu^.do_crc:=true;
  153. end;
  154. procedure writeusedunit;
  155. var
  156. hp : pused_unit;
  157. begin
  158. numberunits;
  159. hp:=pused_unit(current_module^.used_units.first);
  160. while assigned(hp) do
  161. begin
  162. current_ppu^.do_interface_crc:=hp^.in_interface;
  163. current_ppu^.putstring(hp^.name^);
  164. { the checksum should not affect the crc of this unit ! (PFV) }
  165. current_ppu^.do_crc:=false;
  166. current_ppu^.putlongint(hp^.checksum);
  167. current_ppu^.putlongint(hp^.interface_checksum);
  168. current_ppu^.do_crc:=true;
  169. current_ppu^.putbyte(byte(hp^.in_interface));
  170. hp:=pused_unit(hp^.next);
  171. end;
  172. current_ppu^.do_interface_crc:=true;
  173. current_ppu^.writeentry(ibloadunit);
  174. end;
  175. procedure writelinkcontainer(var p:tlinkcontainer;id:byte;strippath:boolean);
  176. var
  177. hcontainer : tlinkcontainer;
  178. s : string;
  179. mask : longint;
  180. begin
  181. hcontainer.init;
  182. while not p.empty do
  183. begin
  184. s:=p.get(mask);
  185. if strippath then
  186. current_ppu^.putstring(SplitFileName(s))
  187. else
  188. current_ppu^.putstring(s);
  189. current_ppu^.putlongint(mask);
  190. hcontainer.insert(s,mask);
  191. end;
  192. current_ppu^.writeentry(id);
  193. p:=hcontainer;
  194. end;
  195. procedure writeunitas(const s : string;unittable : punitsymtable;only_crc : boolean);
  196. begin
  197. Message1(unit_u_ppu_write,s);
  198. { create unit flags }
  199. with Current_Module^ do
  200. begin
  201. if cs_smartlink in aktmoduleswitches then
  202. flags:=flags or uf_smart_linked;
  203. {$ifdef GDB}
  204. if cs_gdb_dbx in aktglobalswitches then
  205. flags:=flags or uf_has_dbx;
  206. {$endif GDB}
  207. if target_os.endian=endian_big then
  208. flags:=flags or uf_big_endian;
  209. if cs_browser in aktmoduleswitches then
  210. flags:=flags or uf_has_browser;
  211. if cs_local_browser in aktmoduleswitches then
  212. flags:=flags or uf_local_browser;
  213. end;
  214. {$ifdef Test_Double_checksum_write}
  215. If only_crc then
  216. Assign(CRCFile,s+'.INT')
  217. else
  218. Assign(CRCFile,s+'.IMP');
  219. Rewrite(CRCFile);
  220. {$endif def Test_Double_checksum_write}
  221. { open ppufile }
  222. current_ppu:=new(pppufile,init(s));
  223. if not current_ppu^.create then
  224. Message(unit_f_ppu_cannot_write);
  225. current_ppu^.crc_only:=only_crc;
  226. {$ifdef Test_Double_checksum}
  227. if only_crc then
  228. begin
  229. new(current_ppu^.crc_test);
  230. end
  231. else
  232. begin
  233. current_ppu^.crc_test:=Current_Module^.crc_array;
  234. current_ppu^.crc_index:=Current_Module^.crc_size;
  235. end;
  236. {$endif def Test_Double_checksum}
  237. current_ppu^.change_endian:=source_os.endian<>target_os.endian;
  238. { write symbols and definitions }
  239. unittable^.writeasunit;
  240. { flush to be sure }
  241. current_ppu^.flush;
  242. { create and write header }
  243. current_ppu^.header.size:=current_ppu^.size;
  244. current_ppu^.header.checksum:=current_ppu^.crc;
  245. current_ppu^.header.interface_checksum:=current_ppu^.interface_crc;
  246. current_ppu^.header.compiler:=wordversion;
  247. current_ppu^.header.cpu:=word(target_cpu);
  248. current_ppu^.header.target:=word(target_info.target);
  249. current_ppu^.header.flags:=current_module^.flags;
  250. current_ppu^.writeheader;
  251. { save crc in current_module also }
  252. current_module^.crc:=current_ppu^.crc;
  253. current_module^.interface_crc:=current_ppu^.interface_crc;
  254. if only_crc then
  255. begin
  256. {$ifdef Test_Double_checksum}
  257. Current_Module^.crc_array:=current_ppu^.crc_test;
  258. current_ppu^.crc_test:=nil;
  259. Current_Module^.crc_size:=current_ppu^.crc_index;
  260. {$endif def Test_Double_checksum}
  261. closecurrentppu;
  262. end;
  263. {$ifdef Test_Double_checksum_write}
  264. close(CRCFile);
  265. {$endif Test_Double_checksum_write}
  266. end;
  267. procedure closecurrentppu;
  268. begin
  269. {$ifdef Test_Double_checksum}
  270. if assigned(current_ppu^.crc_test) then
  271. dispose(current_ppu^.crc_test);
  272. {$endif Test_Double_checksum}
  273. { close }
  274. current_ppu^.close;
  275. dispose(current_ppu,done);
  276. current_ppu:=nil;
  277. end;
  278. {*****************************************************************************
  279. PPU Reading
  280. *****************************************************************************}
  281. function readbyte:byte;
  282. begin
  283. readbyte:=current_ppu^.getbyte;
  284. if current_ppu^.error then
  285. Message(unit_f_ppu_read_error);
  286. end;
  287. function readword:word;
  288. begin
  289. readword:=current_ppu^.getword;
  290. if current_ppu^.error then
  291. Message(unit_f_ppu_read_error);
  292. end;
  293. function readlong:longint;
  294. begin
  295. readlong:=current_ppu^.getlongint;
  296. if current_ppu^.error then
  297. Message(unit_f_ppu_read_error);
  298. end;
  299. function readreal : bestreal;
  300. begin
  301. readreal:=current_ppu^.getreal;
  302. if current_ppu^.error then
  303. Message(unit_f_ppu_read_error);
  304. end;
  305. function readstring : string;
  306. begin
  307. readstring:=current_ppu^.getstring;
  308. if current_ppu^.error then
  309. Message(unit_f_ppu_read_error);
  310. end;
  311. procedure readnormalset(var s); {You cannot pass an array [0..31] of byte.}
  312. begin
  313. current_ppu^.getdata(s,sizeof(tnormalset));
  314. if current_ppu^.error then
  315. Message(unit_f_ppu_read_error);
  316. end;
  317. procedure readsmallset(var s);
  318. begin
  319. current_ppu^.getdata(s,4);
  320. if current_ppu^.error then
  321. Message(unit_f_ppu_read_error);
  322. end;
  323. procedure readposinfo(var p:tfileposinfo);
  324. begin
  325. p.fileindex:=current_ppu^.getword;
  326. p.line:=current_ppu^.getlongint;
  327. p.column:=current_ppu^.getword;
  328. end;
  329. {$ifndef OLDDEREF}
  330. function readderef : pderef;
  331. var
  332. hp,p : pderef;
  333. b : tdereftype;
  334. begin
  335. p:=nil;
  336. repeat
  337. hp:=p;
  338. b:=tdereftype(current_ppu^.getbyte);
  339. case b of
  340. derefnil :
  341. break;
  342. derefunit,
  343. derefaktrecordindex,
  344. derefaktstaticindex :
  345. begin
  346. new(p,init(b,current_ppu^.getword));
  347. p^.next:=hp;
  348. break;
  349. end;
  350. derefindex,
  351. derefrecord :
  352. begin
  353. new(p,init(b,current_ppu^.getword));
  354. p^.next:=hp;
  355. end;
  356. end;
  357. until false;
  358. readderef:=p;
  359. end;
  360. function readdefref : pdef;
  361. begin
  362. readdefref:=pdef(readderef);
  363. end;
  364. function readsymref : psym;
  365. begin
  366. readsymref:=psym(readderef);
  367. end;
  368. {$else}
  369. function readdefref : pdef;
  370. var
  371. hd : pdef;
  372. begin
  373. longint(hd):=current_ppu^.getword;
  374. longint(hd):=longint(hd) or (longint(current_ppu^.getword) shl 16);
  375. readdefref:=hd;
  376. end;
  377. function readsymref : psym;
  378. var
  379. hd : psym;
  380. begin
  381. longint(hd):=current_ppu^.getword;
  382. longint(hd):=longint(hd) or (longint(current_ppu^.getword) shl 16);
  383. readsymref:=hd;
  384. end;
  385. {$endif}
  386. procedure readsourcefiles;
  387. var
  388. temp,hs : string;
  389. incfile_found : boolean;
  390. ppufiletime,
  391. source_time : longint;
  392. hp : pinputfile;
  393. begin
  394. ppufiletime:=getnamedfiletime(current_module^.ppufilename^);
  395. current_module^.sources_avail:=true;
  396. while not current_ppu^.endofentry do
  397. begin
  398. hs:=current_ppu^.getstring;
  399. temp:='';
  400. if (current_module^.flags and uf_in_library)<>0 then
  401. begin
  402. current_module^.sources_avail:=false;
  403. temp:=' library';
  404. end
  405. else if pos('Macro ',hs)=1 then
  406. begin
  407. { we don't want to find this file }
  408. { but there is a problem with file indexing !! }
  409. temp:='';
  410. end
  411. else
  412. begin
  413. { check the date of the source files }
  414. Source_Time:=GetNamedFileTime(current_module^.path^+hs);
  415. incfile_found:=false;
  416. if (Source_Time=-1) then
  417. begin
  418. temp:=search(hs,includesearchpath,incfile_found);
  419. if incfile_found then
  420. begin
  421. hs:=temp+hs;
  422. Source_Time:=GetNamedFileTime(hs);
  423. end
  424. end
  425. else
  426. hs:=current_module^.path^+hs;
  427. if Source_Time=-1 then
  428. begin
  429. current_module^.sources_avail:=false;
  430. temp:=' not found';
  431. end
  432. else
  433. begin
  434. { time newer? But only allow if the file is not searched
  435. in the include path (PFV), else you've problems with
  436. units which use the same includefile names }
  437. if incfile_found then
  438. temp:=' found'
  439. else
  440. begin
  441. temp:=' time '+filetimestring(source_time);
  442. if (source_time>ppufiletime) then
  443. begin
  444. current_module^.do_compile:=true;
  445. current_module^.recompile_reason:=rr_sourcenewer;
  446. temp:=temp+' *'
  447. end;
  448. end;
  449. end;
  450. new(hp,init(hs));
  451. { the indexing is wrong here PM }
  452. current_module^.sourcefiles^.register_file(hp);
  453. end;
  454. Message1(unit_u_ppu_source,hs+temp);
  455. end;
  456. { main source is always the last }
  457. stringdispose(current_module^.mainsource);
  458. current_module^.mainsource:=stringdup(hs);
  459. { the indexing is corrected here PM }
  460. current_module^.sourcefiles^.inverse_register_indexes;
  461. { check if we want to rebuild every unit, only if the sources are
  462. available }
  463. if do_build and current_module^.sources_avail then
  464. begin
  465. current_module^.do_compile:=true;
  466. current_module^.recompile_reason:=rr_build;
  467. end;
  468. end;
  469. procedure readloadunit;
  470. var
  471. hs : string;
  472. intfchecksum,
  473. checksum : longint;
  474. in_interface : boolean;
  475. begin
  476. while not current_ppu^.endofentry do
  477. begin
  478. hs:=current_ppu^.getstring;
  479. checksum:=current_ppu^.getlongint;
  480. intfchecksum:=current_ppu^.getlongint;
  481. in_interface:=(current_ppu^.getbyte<>0);
  482. current_module^.used_units.concat(new(pused_unit,init_to_load(hs,checksum,intfchecksum,in_interface)));
  483. end;
  484. end;
  485. procedure readlinkcontainer(var p:tlinkcontainer);
  486. var
  487. s : string;
  488. m : longint;
  489. begin
  490. while not current_ppu^.endofentry do
  491. begin
  492. s:=current_ppu^.getstring;
  493. m:=current_ppu^.getlongint;
  494. p.insert(s,m);
  495. end;
  496. end;
  497. procedure load_interface;
  498. var
  499. b : byte;
  500. begin
  501. { read interface part }
  502. repeat
  503. b:=current_ppu^.readentry;
  504. case b of
  505. ibmodulename :
  506. begin
  507. stringdispose(current_module^.modulename);
  508. current_module^.modulename:=stringdup(current_ppu^.getstring);
  509. end;
  510. ibsourcefiles :
  511. readsourcefiles;
  512. ibloadunit :
  513. readloadunit;
  514. iblinkunitofiles :
  515. readlinkcontainer(current_module^.LinkUnitOFiles);
  516. iblinkunitstaticlibs :
  517. readlinkcontainer(current_module^.LinkUnitStaticLibs);
  518. iblinkunitsharedlibs :
  519. readlinkcontainer(current_module^.LinkUnitSharedLibs);
  520. iblinkotherofiles :
  521. readlinkcontainer(current_module^.LinkotherOFiles);
  522. iblinkotherstaticlibs :
  523. readlinkcontainer(current_module^.LinkotherStaticLibs);
  524. iblinkothersharedlibs :
  525. readlinkcontainer(current_module^.LinkotherSharedLibs);
  526. ibendinterface :
  527. break;
  528. else
  529. Message1(unit_f_ppu_invalid_entry,tostr(b));
  530. end;
  531. until false;
  532. end;
  533. {
  534. $Log$
  535. Revision 1.45 1999-08-03 22:03:17 peter
  536. * moved bitmask constants to sets
  537. * some other type/const renamings
  538. Revision 1.44 1999/07/14 21:19:12 florian
  539. + implemented a better error message if a PPU file isn't found as suggested
  540. by Lee John
  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. }