parser.pas 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708
  1. {
  2. $Id$
  3. Copyright (c) 1993-98 by Florian Klaempfl
  4. This unit does the parsing process
  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. {$ifdef tp}
  19. {$E+,N+,D+,F+}
  20. {$endif}
  21. unit parser;
  22. { Use exception catching so the compiler goes futher after a Stop }
  23. {$ifdef i386}
  24. {$define USEEXCEPT}
  25. {$endif}
  26. {$ifdef TP}
  27. {$ifdef DPMI}
  28. {$undef USEEXCEPT}
  29. {$endif}
  30. {$endif}
  31. interface
  32. procedure compile(const filename:string;compile_system:boolean);
  33. procedure initparser;
  34. procedure doneparser;
  35. implementation
  36. uses
  37. globtype,version,tokens,systems,
  38. cobjects,comphook,globals,verbose,
  39. symtable,files,aasm,hcodegen,
  40. assemble,link,script,gendef,
  41. {$ifdef BrowserLog}
  42. browlog,
  43. {$endif BrowserLog}
  44. {$ifdef BrowserCol}
  45. browcol,
  46. {$endif BrowserCol}
  47. {$ifdef UseExcept}
  48. tpexcept,compiler,
  49. {$endif UseExcept}
  50. tree,scanner,pbase,pdecl,psystem,pmodules;
  51. procedure initparser;
  52. begin
  53. forwardsallowed:=false;
  54. { ^M means a string or a char, because we don't parse a }
  55. { type declaration }
  56. ignore_equal:=false;
  57. { we didn't parse a object or class declaration }
  58. { and no function header }
  59. testcurobject:=0;
  60. { a long time, this was forgotten }
  61. aktprocsym:=nil;
  62. current_module:=nil;
  63. loaded_units.init;
  64. usedunits.init;
  65. { global switches }
  66. aktglobalswitches:=initglobalswitches;
  67. { memory sizes }
  68. if heapsize=0 then
  69. heapsize:=target_info.heapsize;
  70. if maxheapsize=0 then
  71. maxheapsize:=target_info.maxheapsize;
  72. if stacksize=0 then
  73. stacksize:=target_info.stacksize;
  74. end;
  75. procedure doneparser;
  76. begin
  77. loaded_units.done;
  78. usedunits.done;
  79. end;
  80. procedure default_macros;
  81. var
  82. hp : pstring_item;
  83. begin
  84. { commandline }
  85. hp:=pstring_item(initdefines.first);
  86. while assigned(hp) do
  87. begin
  88. def_macro(hp^.str^);
  89. hp:=pstring_item(hp^.next);
  90. end;
  91. { set macros for version checking }
  92. set_macro('FPC_VERSION',version_nr);
  93. set_macro('FPC_RELEASE',release_nr);
  94. set_macro('FPC_PATCH',patch_nr);
  95. end;
  96. procedure compile(const filename:string;compile_system:boolean);
  97. var
  98. { scanner }
  99. oldidtoken,
  100. oldtoken : ttoken;
  101. oldtokenpos : tfileposinfo;
  102. oldc : char;
  103. oldpattern,
  104. oldorgpattern : string;
  105. old_block_type : tblock_type;
  106. oldcurrent_scanner,prev_scanner,
  107. scanner : pscannerfile;
  108. { symtable }
  109. oldmacros,
  110. oldrefsymtable,
  111. oldsymtablestack : psymtable;
  112. oldprocprefix : string;
  113. oldaktprocsym : pprocsym;
  114. { cg }
  115. oldnextlabelnr : longint;
  116. oldparse_only : boolean;
  117. { asmlists }
  118. oldimports,
  119. oldexports,
  120. oldresource,
  121. oldrttilist,
  122. oldbsssegment,
  123. olddatasegment,
  124. oldcodesegment,
  125. oldexprasmlist,
  126. olddebuglist,
  127. oldinternals,
  128. oldexternals,
  129. oldconsts : paasmoutput;
  130. { akt.. things }
  131. oldaktlocalswitches : tlocalswitches;
  132. oldaktmoduleswitches : tmoduleswitches;
  133. oldaktfilepos : tfileposinfo;
  134. oldaktpackrecords : word;
  135. oldaktoutputformat : tasm;
  136. oldaktoptprocessor : tprocessors;
  137. oldaktasmmode : tasmmode;
  138. oldaktmodeswitches : tmodeswitches;
  139. {$ifdef USEEXCEPT}
  140. recoverpos : jmp_buf;
  141. oldrecoverpos : pjmp_buf;
  142. {$endif useexcept}
  143. begin
  144. inc(compile_level);
  145. { save symtable state }
  146. oldsymtablestack:=symtablestack;
  147. oldrefsymtable:=refsymtable;
  148. oldmacros:=macros;
  149. oldprocprefix:=procprefix;
  150. oldaktprocsym:=aktprocsym;
  151. { save scanner state }
  152. oldc:=c;
  153. oldpattern:=pattern;
  154. oldorgpattern:=orgpattern;
  155. oldtoken:=token;
  156. oldidtoken:=idtoken;
  157. old_block_type:=block_type;
  158. oldtokenpos:=tokenpos;
  159. oldcurrent_scanner:=current_scanner;
  160. { save cg }
  161. oldnextlabelnr:=nextlabelnr;
  162. oldparse_only:=parse_only;
  163. { save assembler lists }
  164. olddatasegment:=datasegment;
  165. oldbsssegment:=bsssegment;
  166. oldcodesegment:=codesegment;
  167. olddebuglist:=debuglist;
  168. oldexternals:=externals;
  169. oldinternals:=internals;
  170. oldconsts:=consts;
  171. oldrttilist:=rttilist;
  172. oldexprasmlist:=exprasmlist;
  173. oldimports:=importssection;
  174. oldexports:=exportssection;
  175. oldresource:=resourcesection;
  176. { save akt... state }
  177. oldaktlocalswitches:=aktlocalswitches;
  178. oldaktmoduleswitches:=aktmoduleswitches;
  179. oldaktpackrecords:=aktpackrecords;
  180. oldaktoutputformat:=aktoutputformat;
  181. oldaktoptprocessor:=aktoptprocessor;
  182. oldaktasmmode:=aktasmmode;
  183. oldaktfilepos:=aktfilepos;
  184. oldaktmodeswitches:=aktmodeswitches;
  185. { show info }
  186. Message1(parser_i_compiling,filename);
  187. { reset symtable }
  188. symtablestack:=nil;
  189. defaultsymtablestack:=nil;
  190. systemunit:=nil;
  191. objpasunit:=nil;
  192. refsymtable:=nil;
  193. aktprocsym:=nil;
  194. procprefix:='';
  195. registerdef:=true;
  196. { macros }
  197. macros:=new(psymtable,init(macrosymtable));
  198. macros^.name:=stringdup('Conditionals for '+filename);
  199. default_macros;
  200. { reset the unit or create a new program }
  201. if assigned(current_module) then
  202. begin
  203. {current_module^.reset this is wrong !! }
  204. scanner:=current_module^.scanner;
  205. current_module^.reset;
  206. current_module^.scanner:=scanner;
  207. end
  208. else
  209. begin
  210. current_module:=new(pmodule,init(filename,false));
  211. main_module:=current_module;
  212. end;
  213. { Load current state from the init values }
  214. aktlocalswitches:=initlocalswitches;
  215. aktmoduleswitches:=initmoduleswitches;
  216. aktmodeswitches:=initmodeswitches;
  217. aktpackrecords:=initpackrecords;
  218. aktpackenum:=initpackenum;
  219. aktoutputformat:=initoutputformat;
  220. aktoptprocessor:=initoptprocessor;
  221. aktasmmode:=initasmmode;
  222. { we need this to make the system unit }
  223. if compile_system then
  224. aktmoduleswitches:=aktmoduleswitches+[cs_compilesystem];
  225. { startup scanner, and save in current_module }
  226. current_scanner:=new(pscannerfile,Init(filename));
  227. current_scanner^.readtoken;
  228. prev_scanner:=current_module^.scanner;
  229. current_module^.scanner:=current_scanner;
  230. { init code generator for a new module }
  231. codegen_newmodule;
  232. { Handle things which need to be once }
  233. if (compile_level=1) then
  234. begin
  235. { open assembler response }
  236. AsmRes.Init(current_module^.outpath^+'ppas');
  237. end;
  238. { If the compile level > 1 we get a nice "unit expected" error
  239. message if we are trying to use a program as unit.}
  240. {$ifdef USEEXCEPT}
  241. if setjmp(recoverpos)=0 then
  242. begin
  243. oldrecoverpos:=recoverpospointer;
  244. recoverpospointer:=@recoverpos;
  245. {$endif USEEXCEPT}
  246. if (token=_UNIT) or (compile_level>1) then
  247. begin
  248. current_module^.is_unit:=true;
  249. proc_unit;
  250. end
  251. else
  252. proc_program(token=_LIBRARY);
  253. {$ifdef USEEXCEPT}
  254. recoverpospointer:=oldrecoverpos;
  255. end
  256. else
  257. begin
  258. recoverpospointer:=oldrecoverpos;
  259. longjump_used:=true;
  260. end;
  261. {$endif USEEXCEPT}
  262. { clear memory }
  263. {$ifdef Splitheap}
  264. if testsplit then
  265. begin
  266. { temp heap should be empty after that !!!}
  267. codegen_donemodule;
  268. Releasetempheap;
  269. end;
  270. {$endif Splitheap}
  271. { restore old state, close trees, > 0.99.5 has heapblocks, so
  272. it's the default to release the trees }
  273. codegen_donemodule;
  274. { free ppu }
  275. if assigned(current_module^.ppufile) then
  276. begin
  277. dispose(current_module^.ppufile,done);
  278. current_module^.ppufile:=nil;
  279. end;
  280. { free scanner }
  281. dispose(current_scanner,done);
  282. { restore previous scanner !! }
  283. current_module^.scanner:=prev_scanner;
  284. if assigned(prev_scanner) then
  285. prev_scanner^.invalid:=true;
  286. { free macros }
  287. {!!! No check for unused macros yet !!! }
  288. dispose(macros,done);
  289. if (compile_level>1) then
  290. begin
  291. { restore scanner }
  292. c:=oldc;
  293. pattern:=oldpattern;
  294. orgpattern:=oldorgpattern;
  295. token:=oldtoken;
  296. idtoken:=oldidtoken;
  297. tokenpos:=oldtokenpos;
  298. block_type:=old_block_type;
  299. current_scanner:=oldcurrent_scanner;
  300. { restore cg }
  301. nextlabelnr:=oldnextlabelnr;
  302. parse_only:=oldparse_only;
  303. { restore asmlists }
  304. exprasmlist:=oldexprasmlist;
  305. datasegment:=olddatasegment;
  306. bsssegment:=oldbsssegment;
  307. codesegment:=oldcodesegment;
  308. consts:=oldconsts;
  309. debuglist:=olddebuglist;
  310. externals:=oldexternals;
  311. internals:=oldinternals;
  312. importssection:=oldimports;
  313. exportssection:=oldexports;
  314. resourcesection:=oldresource;
  315. rttilist:=oldrttilist;
  316. { restore symtable state }
  317. refsymtable:=oldrefsymtable;
  318. symtablestack:=oldsymtablestack;
  319. macros:=oldmacros;
  320. aktprocsym:=oldaktprocsym;
  321. procprefix:=oldprocprefix;
  322. aktlocalswitches:=oldaktlocalswitches;
  323. aktmoduleswitches:=oldaktmoduleswitches;
  324. aktpackrecords:=oldaktpackrecords;
  325. aktoutputformat:=oldaktoutputformat;
  326. aktoptprocessor:=oldaktoptprocessor;
  327. aktasmmode:=oldaktasmmode;
  328. aktfilepos:=oldaktfilepos;
  329. aktmodeswitches:=oldaktmodeswitches;
  330. end;
  331. { Shut down things when the last file is compiled }
  332. if (compile_level=1) then
  333. begin
  334. { Close script }
  335. if (not AsmRes.Empty) then
  336. begin
  337. Message1(exec_i_closing_script,AsmRes.Fn);
  338. AsmRes.WriteToDisk;
  339. end;
  340. {$ifdef BrowserLog}
  341. { Write Browser Log }
  342. if cs_browser in aktmoduleswitches then
  343. begin
  344. if browserlog.elements_to_list^.empty then
  345. begin
  346. Message1(parser_i_writing_browser_log,browserlog.Fname);
  347. WriteBrowserLog;
  348. end
  349. else
  350. browserlog.list_elements;
  351. end;
  352. {$endif BrowserLog}
  353. {$ifdef BrowserCol}
  354. { Write Browser Collections }
  355. CreateBrowserCol;
  356. {$endif}
  357. { Free last aktprocsym }
  358. if assigned(aktprocsym) and (aktprocsym^.owner=nil) then
  359. begin
  360. { init parts are not needed in units !! }
  361. if current_module^.is_unit then
  362. aktprocsym^.definition^.forwarddef:=false;
  363. dispose(aktprocsym,done);
  364. end;
  365. end;
  366. dec(compile_level);
  367. {$ifdef USEEXCEPT}
  368. if longjump_used then
  369. longjmp(recoverpospointer^,1);
  370. {$endif USEEXCEPT}
  371. end;
  372. end.
  373. {
  374. $Log$
  375. Revision 1.64 1999-01-12 14:25:29 peter
  376. + BrowserLog for browser.log generation
  377. + BrowserCol for browser info in TCollections
  378. * released all other UseBrowser
  379. Revision 1.63 1998/12/11 00:03:26 peter
  380. + globtype,tokens,version unit splitted from globals
  381. Revision 1.62 1998/12/01 12:51:21 peter
  382. * fixed placing of ppas.sh and link.res when using -FE
  383. Revision 1.61 1998/11/10 10:09:11 peter
  384. * va_list -> array of const
  385. Revision 1.60 1998/10/28 18:26:14 pierre
  386. * removed some erros after other errors (introduced by useexcept)
  387. * stabs works again correctly (for how long !)
  388. Revision 1.59 1998/10/26 17:15:18 pierre
  389. + added two level of longjump to
  390. allow clean freeing of used memory on errors
  391. Revision 1.58 1998/10/16 08:50:02 peter
  392. * reset_gdb_info -> reset_global_def becuase it also resets rangenr !
  393. Revision 1.57 1998/10/08 17:17:23 pierre
  394. * current_module old scanner tagged as invalid if unit is recompiled
  395. + added ppheap for better info on tracegetmem of heaptrc
  396. (adds line column and file index)
  397. * several memory leaks removed ith help of heaptrc !!
  398. Revision 1.56 1998/10/08 13:48:45 peter
  399. * fixed memory leaks for do nothing source
  400. * fixed unit interdependency
  401. Revision 1.55 1998/10/06 17:16:53 pierre
  402. * some memory leaks fixed (thanks to Peter for heaptrc !)
  403. Revision 1.54 1998/10/05 21:33:23 peter
  404. * fixed 161,165,166,167,168
  405. Revision 1.53 1998/09/30 16:43:36 peter
  406. * fixed unit interdependency with circular uses
  407. Revision 1.52 1998/09/28 16:57:22 pierre
  408. * changed all length(p^.value_str^) into str_length(p)
  409. to get it work with and without ansistrings
  410. * changed sourcefiles field of tmodule to a pointer
  411. Revision 1.51 1998/09/26 17:45:30 peter
  412. + idtoken and only one token table
  413. Revision 1.50 1998/09/24 23:49:08 peter
  414. + aktmodeswitches
  415. Revision 1.49 1998/09/23 15:39:07 pierre
  416. * browser bugfixes
  417. was adding a reference when looking for the symbol
  418. if -bSYM_NAME was used
  419. Revision 1.48 1998/09/22 17:13:48 pierre
  420. + browsing updated and developed
  421. records and objects fields are also stored
  422. Revision 1.47 1998/09/21 09:00:18 peter
  423. * reset_gdb_info only when debuginfo is set
  424. Revision 1.46 1998/09/21 08:45:12 pierre
  425. + added vmt_offset in tobjectdef.write for fututre use
  426. (first steps to have objects without vmt if no virtual !!)
  427. + added fpu_used field for tabstractprocdef :
  428. sets this level to 2 if the functions return with value in FPU
  429. (is then set to correct value at parsing of implementation)
  430. THIS MIGHT refuse some code with FPU expression too complex
  431. that were accepted before and even in some cases
  432. that don't overflow in fact
  433. ( like if f : float; is a forward that finally in implementation
  434. only uses one fpu register !!)
  435. Nevertheless I think that it will improve security on
  436. FPU operations !!
  437. * most other changes only for UseBrowser code
  438. (added symtable references for record and objects)
  439. local switch for refs to args and local of each function
  440. (static symtable still missing)
  441. UseBrowser still not stable and probably broken by
  442. the definition hash array !!
  443. Revision 1.45 1998/09/18 08:01:35 pierre
  444. + improvement on the usebrowser part
  445. (does not work correctly for now)
  446. Revision 1.44 1998/09/10 15:25:34 daniel
  447. + Added maxheapsize.
  448. * Corrected semi-bug in calling the assembler and the linker
  449. Revision 1.43 1998/09/09 15:33:06 peter
  450. * fixed in_global to allow directives also after interface token
  451. Revision 1.42 1998/09/04 08:41:59 peter
  452. * updated some error messages
  453. Revision 1.41 1998/09/01 12:53:24 peter
  454. + aktpackenum
  455. Revision 1.40 1998/09/01 07:54:19 pierre
  456. * UseBrowser a little updated (might still be buggy !!)
  457. * bug in psub.pas in function specifier removed
  458. * stdcall allowed in interface and in implementation
  459. (FPC will not yet complain if it is missing in either part
  460. because stdcall is only a dummy !!)
  461. Revision 1.39 1998/08/26 10:07:09 peter
  462. * dispose trees is now default for all > 0.99.5 compiles
  463. Revision 1.38 1998/08/18 20:52:20 peter
  464. * renamed in_main to in_global which is more logical
  465. Revision 1.37 1998/08/17 09:17:49 peter
  466. * static/shared linking updates
  467. Revision 1.36 1998/08/14 21:56:36 peter
  468. * setting the outputfile using -o works now to create static libs
  469. Revision 1.35 1998/08/12 19:22:09 peter
  470. * reset also the link* lists when recompiling an existing unit
  471. Revision 1.34 1998/08/10 23:58:56 peter
  472. * fixed asmlist dispose for 0.99.5
  473. Revision 1.33 1998/08/10 14:50:07 peter
  474. + localswitches, moduleswitches, globalswitches splitting
  475. Revision 1.32 1998/08/10 10:18:28 peter
  476. + Compiler,Comphook unit which are the new interface units to the
  477. compiler
  478. Revision 1.31 1998/07/14 21:46:46 peter
  479. * updated messages file
  480. Revision 1.30 1998/07/14 14:46:49 peter
  481. * released NEWINPUT
  482. Revision 1.29 1998/07/07 11:19:59 peter
  483. + NEWINPUT for a better inputfile and scanner object
  484. Revision 1.28 1998/06/25 11:15:33 pierre
  485. * ppu files where not closed in newppu !!
  486. second compilation was impossible due to too many opened files
  487. (not visible in 'make cycle' as we remove all the ppu files)
  488. Revision 1.27 1998/06/17 14:10:15 peter
  489. * small os2 fixes
  490. * fixed interdependent units with newppu (remake3 under linux works now)
  491. Revision 1.26 1998/06/16 08:56:23 peter
  492. + targetcpu
  493. * cleaner pmodules for newppu
  494. Revision 1.25 1998/06/15 15:38:07 pierre
  495. * small bug in systems.pas corrected
  496. + operators in different units better hanlded
  497. Revision 1.24 1998/06/13 00:10:08 peter
  498. * working browser and newppu
  499. * some small fixes against crashes which occured in bp7 (but not in
  500. fpc?!)
  501. Revision 1.23 1998/06/08 22:59:48 peter
  502. * smartlinking works for win32
  503. * some defines to exclude some compiler parts
  504. Revision 1.22 1998/06/05 17:47:28 peter
  505. * some better uses clauses
  506. Revision 1.21 1998/06/04 23:51:49 peter
  507. * m68k compiles
  508. + .def file creation moved to gendef.pas so it could also be used
  509. for win32
  510. Revision 1.20 1998/06/03 22:48:55 peter
  511. + wordbool,longbool
  512. * rename bis,von -> high,low
  513. * moved some systemunit loading/creating to psystem.pas
  514. Revision 1.19 1998/05/27 19:45:04 peter
  515. * symtable.pas splitted into includefiles
  516. * symtable adapted for $ifdef NEWPPU
  517. Revision 1.18 1998/05/23 01:21:15 peter
  518. + aktasmmode, aktoptprocessor, aktoutputformat
  519. + smartlink per module $SMARTLINK-/+ (like MMX) and moved to aktswitches
  520. + $LIBNAME to set the library name where the unit will be put in
  521. * splitted cgi386 a bit (codeseg to large for bp7)
  522. * nasm, tasm works again. nasm moved to ag386nsm.pas
  523. Revision 1.17 1998/05/20 09:42:34 pierre
  524. + UseTokenInfo now default
  525. * unit in interface uses and implementation uses gives error now
  526. * only one error for unknown symbol (uses lastsymknown boolean)
  527. the problem came from the label code !
  528. + first inlined procedures and function work
  529. (warning there might be allowed cases were the result is still wrong !!)
  530. * UseBrower updated gives a global list of all position of all used symbols
  531. with switch -gb
  532. Revision 1.16 1998/05/12 10:47:00 peter
  533. * moved printstatus to verb_def
  534. + V_Normal which is between V_Error and V_Warning and doesn't have a
  535. prefix like error: warning: and is included in V_Default
  536. * fixed some messages
  537. * first time parameter scan is only for -v and -T
  538. - removed old style messages
  539. Revision 1.15 1998/05/11 13:07:54 peter
  540. + $ifdef NEWPPU for the new ppuformat
  541. + $define GDB not longer required
  542. * removed all warnings and stripped some log comments
  543. * no findfirst/findnext anymore to remove smartlink *.o files
  544. Revision 1.14 1998/05/06 18:36:53 peter
  545. * tai_section extended with code,data,bss sections and enumerated type
  546. * ident 'compiled by FPC' moved to pmodules
  547. * small fix for smartlink
  548. Revision 1.13 1998/05/06 08:38:42 pierre
  549. * better position info with UseTokenInfo
  550. UseTokenInfo greatly simplified
  551. + added check for changed tree after first time firstpass
  552. (if we could remove all the cases were it happen
  553. we could skip all firstpass if firstpasscount > 1)
  554. Only with ExtDebug
  555. Revision 1.12 1998/05/04 17:54:28 peter
  556. + smartlinking works (only case jumptable left todo)
  557. * redesign of systems.pas to support assemblers and linkers
  558. + Unitname is now also in the PPU-file, increased version to 14
  559. Revision 1.11 1998/05/01 16:38:45 florian
  560. * handling of private and protected fixed
  561. + change_keywords_to_tp implemented to remove
  562. keywords which aren't supported by tp
  563. * break and continue are now symbols of the system unit
  564. + widestring, longstring and ansistring type released
  565. Revision 1.10 1998/05/01 07:43:56 florian
  566. + basics for rtti implemented
  567. + switch $m (generate rtti for published sections)
  568. Revision 1.9 1998/04/30 15:59:40 pierre
  569. * GDB works again better :
  570. correct type info in one pass
  571. + UseTokenInfo for better source position
  572. * fixed one remaining bug in scanner for line counts
  573. * several little fixes
  574. Revision 1.8 1998/04/29 10:33:55 pierre
  575. + added some code for ansistring (not complete nor working yet)
  576. * corrected operator overloading
  577. * corrected nasm output
  578. + started inline procedures
  579. + added starstarn : use ** for exponentiation (^ gave problems)
  580. + started UseTokenInfo cond to get accurate positions
  581. Revision 1.7 1998/04/27 23:10:28 peter
  582. + new scanner
  583. * $makelib -> if smartlink
  584. * small filename fixes pmodule.setfilename
  585. * moved import from files.pas -> import.pas
  586. Revision 1.6 1998/04/21 10:16:48 peter
  587. * patches from strasbourg
  588. * objects is not used anymore in the fpc compiled version
  589. Revision 1.5 1998/04/10 14:41:43 peter
  590. * removed some Hints
  591. * small speed optimization for AsmLn
  592. Revision 1.4 1998/04/08 16:58:03 pierre
  593. * several bugfixes
  594. ADD ADC and AND are also sign extended
  595. nasm output OK (program still crashes at end
  596. and creates wrong assembler files !!)
  597. procsym types sym in tdef removed !!
  598. Revision 1.3 1998/04/07 22:45:04 florian
  599. * bug0092, bug0115 and bug0121 fixed
  600. + packed object/class/array
  601. }