parser.pas 23 KB

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