ptconst.pas 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710
  1. {
  2. $Id$
  3. Copyright (c) 1998 by Florian Klaempfl
  4. Reads typed constants
  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. unit ptconst;
  19. interface
  20. uses symtable;
  21. { this procedure reads typed constants }
  22. { sym is only needed for ansi strings }
  23. { the assembler label is in the middle (PM) }
  24. procedure readtypedconst(def : pdef;sym : ptypedconstsym);
  25. implementation
  26. uses
  27. cobjects,globals,scanner,aasm,tree,pass_1,
  28. hcodegen,types,verbose
  29. { parser specific stuff }
  30. ,pbase,pexpr
  31. { processor specific stuff }
  32. {$ifdef i386}
  33. ,i386
  34. {$endif}
  35. {$ifdef m68k}
  36. ,m68k
  37. {$endif}
  38. ;
  39. { this procedure reads typed constants }
  40. procedure readtypedconst(def : pdef;sym : ptypedconstsym);
  41. var
  42. {$ifdef m68k}
  43. j : longint;
  44. {$endif m68k}
  45. p,hp : ptree;
  46. i,l,offset,
  47. strlength : longint;
  48. lsym : pvarsym;
  49. ll : plabel;
  50. s : string;
  51. ca : pchar;
  52. aktpos : longint;
  53. pd : pprocdef;
  54. obj : pobjectdef;
  55. symt : psymtable;
  56. hp1,hp2 : pdefcoll;
  57. value : bestreal;
  58. procedure check_range;
  59. begin
  60. if ((p^.value>porddef(def)^.high) or
  61. (p^.value<porddef(def)^.low)) then
  62. begin
  63. if (cs_check_range in aktlocalswitches) then
  64. Message(parser_e_range_check_error)
  65. else
  66. Message(parser_w_range_check_error);
  67. end;
  68. end;
  69. function is_po_equal(o1,o2:longint):boolean;
  70. begin
  71. { assembler does not affect }
  72. is_po_equal:=(o1 and not(poassembler))=
  73. (o2 and not(poassembler));
  74. end;
  75. {$R-} {Range check creates problem with init_8bit(-1) !!}
  76. begin
  77. case def^.deftype of
  78. orddef:
  79. begin
  80. p:=comp_expr(true);
  81. do_firstpass(p);
  82. case porddef(def)^.typ of
  83. s8bit,
  84. u8bit : begin
  85. if not is_constintnode(p) then
  86. { is't an int expected }
  87. Message(cg_e_illegal_expression)
  88. else
  89. begin
  90. datasegment^.concat(new(pai_const,init_8bit(p^.value)));
  91. check_range;
  92. end;
  93. end;
  94. s32bit : begin
  95. if not is_constintnode(p) then
  96. Message(cg_e_illegal_expression)
  97. else
  98. begin
  99. datasegment^.concat(new(pai_const,init_32bit(p^.value)));
  100. check_range;
  101. end;
  102. end;
  103. u32bit : begin
  104. if not is_constintnode(p) then
  105. Message(cg_e_illegal_expression)
  106. else
  107. datasegment^.concat(new(pai_const,init_32bit(p^.value)));
  108. end;
  109. bool8bit : begin
  110. if not is_constboolnode(p) then
  111. Message(cg_e_illegal_expression);
  112. datasegment^.concat(new(pai_const,init_8bit(p^.value)));
  113. end;
  114. uchar : begin
  115. if not is_constcharnode(p) then
  116. Message(cg_e_illegal_expression);
  117. datasegment^.concat(new(pai_const,init_8bit(p^.value)));
  118. end;
  119. u16bit,
  120. s16bit : begin
  121. if not is_constintnode(p) then
  122. Message(cg_e_illegal_expression);
  123. datasegment^.concat(new(pai_const,init_16bit(p^.value)));
  124. check_range;
  125. end;
  126. end;
  127. disposetree(p);
  128. end;
  129. floatdef:
  130. begin
  131. p:=comp_expr(true);
  132. do_firstpass(p);
  133. if is_constrealnode(p) then
  134. value:=p^.value_real
  135. else if is_constintnode(p) then
  136. value:=p^.value
  137. else
  138. Message(cg_e_illegal_expression);
  139. case pfloatdef(def)^.typ of
  140. s64real : datasegment^.concat(new(pai_double,init(value)));
  141. s32real : datasegment^.concat(new(pai_single,init(value)));
  142. s80real : datasegment^.concat(new(pai_extended,init(value)));
  143. s64bit : datasegment^.concat(new(pai_comp,init(value)));
  144. f32bit : datasegment^.concat(new(pai_const,init_32bit(trunc(value*65536))));
  145. else internalerror(18);
  146. end;
  147. disposetree(p);
  148. end;
  149. pointerdef:
  150. begin
  151. p:=comp_expr(true);
  152. do_firstpass(p);
  153. { allows horrible ofs(typeof(TButton)^) code !! }
  154. if (p^.treetype=addrn) and (p^.left^.treetype=derefn) then
  155. begin
  156. hp:=p^.left^.left;
  157. p^.left^.left:=nil;
  158. disposetree(p);
  159. p:=hp;
  160. end;
  161. { nil pointer ? }
  162. if p^.treetype=niln then
  163. datasegment^.concat(new(pai_const,init_32bit(0)))
  164. { maybe pchar ? }
  165. else
  166. if (ppointerdef(def)^.definition^.deftype=orddef) and
  167. (porddef(ppointerdef(def)^.definition)^.typ=uchar) then
  168. begin
  169. getdatalabel(ll);
  170. datasegment^.concat(new(pai_const,init_symbol(strpnew(lab2str(ll)))));
  171. consts^.concat(new(pai_label,init(ll)));
  172. if p^.treetype=stringconstn then
  173. consts^.concat(new(pai_string,init(p^.value_str^+#0)))
  174. else
  175. if is_constcharnode(p) then
  176. consts^.concat(new(pai_string,init(char(byte(p^.value))+#0)))
  177. else
  178. Message(cg_e_illegal_expression);
  179. { insert label }
  180. end
  181. else
  182. if p^.treetype=addrn then
  183. begin
  184. if (is_equal(ppointerdef(p^.resulttype)^.definition,ppointerdef(def)^.definition) or
  185. (is_equal(ppointerdef(p^.resulttype)^.definition,voiddef)) or
  186. (is_equal(ppointerdef(def)^.definition,voiddef))) and
  187. (p^.left^.treetype = loadn) then
  188. begin
  189. if token=POINT then
  190. begin
  191. offset:=0;
  192. while token=POINT do
  193. begin
  194. consume(POINT);
  195. lsym:=pvarsym(precdef(
  196. ppointerdef(p^.resulttype)^.definition)^.symtable^.search(pattern));
  197. if assigned(sym) then
  198. offset:=offset+lsym^.address
  199. else
  200. begin
  201. Message1(sym_e_illegal_field,pattern);
  202. end;
  203. consume(ID);
  204. end;
  205. datasegment^.concat(new(pai_const_symbol_offset,init(
  206. strpnew(p^.left^.symtableentry^.mangledname),offset)));
  207. end
  208. else
  209. begin
  210. datasegment^.concat(new(pai_const,init_symbol(
  211. strpnew(p^.left^.symtableentry^.mangledname))));
  212. end;
  213. maybe_concat_external(p^.left^.symtableentry^.owner,
  214. p^.left^.symtableentry^.mangledname);
  215. end
  216. else
  217. Message(cg_e_illegal_expression);
  218. end
  219. else
  220. { allow typeof(Object type)}
  221. if (p^.treetype=inlinen) and
  222. (p^.inlinenumber=in_typeof_x) then
  223. begin
  224. if (p^.left^.treetype=typen) then
  225. begin
  226. datasegment^.concat(new(pai_const,init_symbol(
  227. strpnew(pobjectdef(p^.left^.resulttype)^.vmt_mangledname))));
  228. if pobjectdef(p^.left^.resulttype)^.owner^.symtabletype=unitsymtable then
  229. concat_external(pobjectdef(p^.left^.resulttype)^.vmt_mangledname,EXT_NEAR);
  230. end
  231. else
  232. Message(cg_e_illegal_expression);
  233. end
  234. else
  235. Message(cg_e_illegal_expression);
  236. disposetree(p);
  237. end;
  238. setdef:
  239. begin
  240. p:=comp_expr(true);
  241. do_firstpass(p);
  242. if p^.treetype=setconstn then
  243. begin
  244. { we only allow const sets }
  245. if assigned(p^.left) then
  246. Message(cg_e_illegal_expression)
  247. else
  248. begin
  249. {$ifdef i386}
  250. for l:=0 to def^.savesize-1 do
  251. datasegment^.concat(new(pai_const,init_8bit(p^.value_set^[l])));
  252. {$endif}
  253. {$ifdef m68k}
  254. j:=0;
  255. for l:=0 to ((def^.savesize-1) div 4) do
  256. { HORRIBLE HACK because of endian }
  257. { now use intel endian for constant sets }
  258. begin
  259. datasegment^.concat(new(pai_const,init_8bit(p^.value_set^[j+3])));
  260. datasegment^.concat(new(pai_const,init_8bit(p^.value_set^[j+2])));
  261. datasegment^.concat(new(pai_const,init_8bit(p^.value_set^[j+1])));
  262. datasegment^.concat(new(pai_const,init_8bit(p^.value_set^[j])));
  263. Inc(j,4);
  264. end;
  265. {$endif}
  266. end;
  267. end
  268. else
  269. Message(cg_e_illegal_expression);
  270. disposetree(p);
  271. end;
  272. enumdef:
  273. begin
  274. p:=comp_expr(true);
  275. do_firstpass(p);
  276. if p^.treetype=ordconstn then
  277. begin
  278. if is_equal(p^.resulttype,def) then
  279. datasegment^.concat(new(pai_const,init_32bit(p^.value)))
  280. else
  281. Message(cg_e_illegal_expression);
  282. end
  283. else
  284. Message(cg_e_illegal_expression);
  285. disposetree(p);
  286. end;
  287. stringdef:
  288. begin
  289. p:=comp_expr(true);
  290. do_firstpass(p);
  291. { first take care of prefixes for long and ansi strings }
  292. case pstringdef(def)^.string_typ of
  293. st_shortstring:
  294. begin
  295. if p^.treetype=stringconstn then
  296. begin
  297. {$ifdef UseAnsiString}
  298. if p^.length>=def^.size then
  299. strlength:=def^.size-1
  300. else
  301. strlength:=p^.length;
  302. datasegment^.concat(new(pai_const,init_8bit(strlength)));
  303. { this can also handle longer strings }
  304. generate_pascii(datasegment,p^.value_str,strlength);
  305. {$else UseAnsiString}
  306. if length(p^.value_str^)>=def^.size then
  307. begin
  308. strlength:=def^.size-1;
  309. generate_ascii(datasegment,char(strlength)+copy(p^.value_str^,1,strlength));
  310. end
  311. else
  312. begin
  313. strlength:=length(p^.value_str^);
  314. generate_ascii(datasegment,char(strlength)+p^.value_str^);
  315. end;
  316. {$endif UseAnsiString}
  317. end
  318. else if is_constcharnode(p) then
  319. begin
  320. datasegment^.concat(new(pai_string,init(#1+char(byte(p^.value)))));
  321. strlength:=1;
  322. end
  323. else Message(cg_e_illegal_expression);
  324. if def^.size>strlength then
  325. begin
  326. getmem(ca,def^.size-strlength);
  327. fillchar(ca[0],def^.size-strlength-1,' ');
  328. ca[def^.size-strlength-1]:=#0;
  329. {$ifdef UseAnsiString}
  330. { this can also handle longer strings }
  331. { def^.size contains also the leading length, so we }
  332. { we have to subtract one }
  333. generate_pascii(datasegment,ca,def^.size-strlength-1);
  334. {$else UseAnsiString}
  335. datasegment^.concat(new(pai_string,init_pchar(ca)));
  336. {$endif UseAnsiString}
  337. end;
  338. end;
  339. {$ifdef UseLongString}
  340. st_longstring:
  341. begin
  342. { first write the maximum size }
  343. datasegment^.concat(new(pai_const,init_32bit(p^.length)))));
  344. { fill byte }
  345. datasegment^.concat(new(pai_const,init_8bit(0)));
  346. if p^.treetype=stringconstn then
  347. begin
  348. { this can also handle longer strings }
  349. generate_pascii(consts,p^.value_str,p^.length);
  350. end
  351. else if is_constcharnode(p) then
  352. begin
  353. consts^.concat(new(pai_const,init_8bit(p^.value)));
  354. strlength:=1;
  355. end
  356. else Message(cg_e_illegal_expression);
  357. datasegment^.concat(new(pai_const,init_8bit(0)));
  358. end;
  359. {$endif UseLongString}
  360. {$ifdef UseAnsiString}
  361. st_ansistring:
  362. begin
  363. { an empty ansi string is nil! }
  364. if (p^.treetype=stringconstn) and (p^.length=0) then
  365. datasegment^.concat(new(pai_const,init_32bit(0)))
  366. else
  367. begin
  368. getdatalabel(ll);
  369. datasegment^.concat(new(pai_const,init_symbol(strpnew(lab2str(ll)))));
  370. { first write the maximum size }
  371. consts^.concat(new(pai_const,init_32bit(p^.length)));
  372. { second write the real length }
  373. consts^.concat(new(pai_const,init_32bit(p^.length)));
  374. { redondent with maxlength but who knows ... (PM) }
  375. { third write use count (set to -1 for safety ) }
  376. consts^.concat(new(pai_const,init_32bit(-1)));
  377. { not longer necessary, because it insert_indata
  378. if assigned(sym) then
  379. sym^.really_insert_in_data;
  380. }
  381. consts^.concat(new(pai_label,init(ll)));
  382. if p^.treetype=stringconstn then
  383. begin
  384. { this can also handle longer strings }
  385. generate_pascii(consts,p^.value_str,p^.length);
  386. end
  387. else if is_constcharnode(p) then
  388. begin
  389. consts^.concat(new(pai_const,init_8bit(p^.value)));
  390. strlength:=1;
  391. end
  392. else Message(cg_e_illegal_expression);
  393. consts^.concat(new(pai_const,init_8bit(0)));
  394. end;
  395. end;
  396. {$endif UseAnsiString}
  397. end;
  398. disposetree(p);
  399. end;
  400. arraydef:
  401. begin
  402. if token=LKLAMMER then
  403. begin
  404. consume(LKLAMMER);
  405. for l:=parraydef(def)^.lowrange to parraydef(def)^.highrange-1 do
  406. begin
  407. readtypedconst(parraydef(def)^.definition,nil);
  408. consume(COMMA);
  409. end;
  410. readtypedconst(parraydef(def)^.definition,nil);
  411. consume(RKLAMMER);
  412. end
  413. else
  414. begin
  415. p:=comp_expr(true);
  416. do_firstpass(p);
  417. if p^.treetype=stringconstn then
  418. s:=p^.value_str^
  419. else if is_constcharnode(p) then
  420. s:=char(byte(p^.value))
  421. else Message(cg_e_illegal_expression);
  422. disposetree(p);
  423. l:=length(s);
  424. for i:=Parraydef(def)^.lowrange to Parraydef(def)^.highrange do
  425. begin
  426. if i+1-Parraydef(def)^.lowrange<=l then
  427. begin
  428. datasegment^.concat(new(pai_const,init_8bit(byte(s[1]))));
  429. delete(s,1,1);
  430. end
  431. else
  432. {Fill the remaining positions with #0.}
  433. datasegment^.concat(new(pai_const,init_8bit(0)));
  434. end;
  435. if length(s)>0 then
  436. Message(parser_e_string_too_long);
  437. end;
  438. end;
  439. procvardef:
  440. begin
  441. { Procvars and pointers are no longer compatible. }
  442. { under tp: =nil or =var under fpc: =nil or =@var }
  443. if token=_NIL then
  444. begin
  445. datasegment^.concat(new(pai_const,init_32bit(0)));
  446. consume(_NIL);
  447. exit;
  448. end
  449. else
  450. if not(m_tp_procvar in aktmodeswitches) then
  451. if token=KLAMMERAFFE then
  452. consume(KLAMMERAFFE);
  453. getsym(pattern,true);
  454. consume(ID);
  455. if srsym^.typ=unitsym then
  456. begin
  457. consume(POINT);
  458. getsymonlyin(punitsym(srsym)^.unitsymtable,pattern);
  459. consume(ID);
  460. end;
  461. if srsym^.typ<>procsym then
  462. Message(cg_e_illegal_expression)
  463. else
  464. begin
  465. pd:=pprocsym(srsym)^.definition;
  466. if assigned(pd^.nextoverloaded) then
  467. Message(parser_e_no_overloaded_procvars);
  468. if is_po_equal(pprocvardef(def)^.options,pd^.options) and
  469. is_equal(pprocvardef(def)^.retdef,pd^.retdef) then
  470. begin
  471. hp1:=pprocvardef(def)^.para1;
  472. hp2:=pd^.para1;
  473. while assigned(hp1) and assigned(hp2) do
  474. begin
  475. if not(is_equal(hp1^.data,hp2^.data)) or
  476. not(hp1^.paratyp=hp2^.paratyp) then
  477. begin
  478. Message(type_e_mismatch);
  479. break;
  480. end;
  481. hp1:=hp1^.next;
  482. hp2:=hp2^.next;
  483. end;
  484. if not((hp1=nil) and (hp2=nil)) then
  485. Message(type_e_mismatch);
  486. end
  487. else
  488. Message(type_e_mismatch);
  489. datasegment^.concat(new(pai_const,init_symbol(strpnew(pd^.mangledname))));
  490. if pd^.owner^.symtabletype=unitsymtable then
  491. concat_external(pd^.mangledname,EXT_NEAR);
  492. end;
  493. end;
  494. { reads a typed constant record }
  495. recorddef:
  496. begin
  497. consume(LKLAMMER);
  498. aktpos:=0;
  499. while token<>RKLAMMER do
  500. begin
  501. s:=pattern;
  502. consume(ID);
  503. consume(COLON);
  504. srsym:=precdef(def)^.symtable^.search(s);
  505. if srsym=nil then
  506. begin
  507. Message1(sym_e_id_not_found,s);
  508. consume_all_until(SEMICOLON);
  509. end
  510. else
  511. begin
  512. { check position }
  513. if pvarsym(srsym)^.address<aktpos then
  514. Message(parser_e_invalid_record_const);
  515. { if needed fill }
  516. if pvarsym(srsym)^.address>aktpos then
  517. for i:=1 to pvarsym(srsym)^.address-aktpos do
  518. datasegment^.concat(new(pai_const,init_8bit(0)));
  519. { new position }
  520. aktpos:=pvarsym(srsym)^.address+pvarsym(srsym)^.definition^.size;
  521. { read the data }
  522. readtypedconst(pvarsym(srsym)^.definition,nil);
  523. if token=SEMICOLON then
  524. consume(SEMICOLON)
  525. else break;
  526. end;
  527. end;
  528. for i:=1 to def^.size-aktpos do
  529. datasegment^.concat(new(pai_const,init_8bit(0)));
  530. consume(RKLAMMER);
  531. end;
  532. { reads a typed object }
  533. objectdef:
  534. begin
  535. if (pobjectdef(def)^.options and (oo_hasvmt or oo_is_class))<>0 then
  536. begin
  537. Message(parser_e_type_const_not_possible);
  538. consume_all_until(RKLAMMER);
  539. end
  540. else
  541. begin
  542. consume(LKLAMMER);
  543. aktpos:=0;
  544. while token<>RKLAMMER do
  545. begin
  546. s:=pattern;
  547. consume(ID);
  548. consume(COLON);
  549. srsym:=nil;
  550. obj:=pobjectdef(def);
  551. symt:=obj^.publicsyms;
  552. while (srsym=nil) and assigned(symt) do
  553. begin
  554. srsym:=symt^.search(s);
  555. if assigned(obj) then
  556. obj:=obj^.childof;
  557. if assigned(obj) then
  558. symt:=obj^.publicsyms
  559. else
  560. symt:=nil;
  561. end;
  562. if srsym=nil then
  563. begin
  564. Message1(sym_e_id_not_found,s);
  565. consume_all_until(SEMICOLON);
  566. end
  567. else
  568. begin
  569. { check position }
  570. if pvarsym(srsym)^.address<aktpos then
  571. Message(parser_e_invalid_record_const);
  572. { if needed fill }
  573. if pvarsym(srsym)^.address>aktpos then
  574. for i:=1 to pvarsym(srsym)^.address-aktpos do
  575. datasegment^.concat(new(pai_const,init_8bit(0)));
  576. { new position }
  577. aktpos:=pvarsym(srsym)^.address+pvarsym(srsym)^.definition^.size;
  578. { read the data }
  579. readtypedconst(pvarsym(srsym)^.definition,nil);
  580. if token=SEMICOLON then
  581. consume(SEMICOLON)
  582. else break;
  583. end;
  584. end;
  585. for i:=1 to def^.size-aktpos do
  586. datasegment^.concat(new(pai_const,init_8bit(0)));
  587. consume(RKLAMMER);
  588. end;
  589. end;
  590. else Message(parser_e_type_const_not_possible);
  591. end;
  592. end;
  593. end.
  594. {
  595. $Log$
  596. Revision 1.22 1998-10-20 08:06:56 pierre
  597. * several memory corruptions due to double freemem solved
  598. => never use p^.loc.location:=p^.left^.loc.location;
  599. + finally I added now by default
  600. that ra386dir translates global and unit symbols
  601. + added a first field in tsymtable and
  602. a nextsym field in tsym
  603. (this allows to obtain ordered type info for
  604. records and objects in gdb !)
  605. Revision 1.21 1998/10/19 08:55:03 pierre
  606. * wrong stabs info corrected once again !!
  607. + variable vmt offset with vmt field only if required
  608. implemented now !!!
  609. Revision 1.20 1998/10/16 08:51:49 peter
  610. + target_os.stackalignment
  611. + stack can be aligned at 2 or 4 byte boundaries
  612. Revision 1.19 1998/10/12 12:20:58 pierre
  613. + added tai_const_symbol_offset
  614. for r : pointer = @var.field;
  615. * better message for different arg names on implementation
  616. of function
  617. Revision 1.18 1998/10/12 09:50:05 florian
  618. + support of <procedure var type>:=<pointer> in delphi mode added
  619. Revision 1.17 1998/10/09 08:56:29 pierre
  620. * several memory leaks fixed
  621. Revision 1.16 1998/09/24 23:49:18 peter
  622. + aktmodeswitches
  623. Revision 1.15 1998/09/07 18:46:11 peter
  624. * update smartlinking, uses getdatalabel
  625. * renamed ptree.value vars to value_str,value_real,value_set
  626. Revision 1.14 1998/09/04 08:42:07 peter
  627. * updated some error messages
  628. Revision 1.13 1998/09/01 09:05:36 peter
  629. * fixed string[4]='.library'
  630. Revision 1.12 1998/08/31 12:26:32 peter
  631. * m68k and palmos updates from surebugfixes
  632. Revision 1.11 1998/08/10 14:50:20 peter
  633. + localswitches, moduleswitches, globalswitches splitting
  634. Revision 1.10 1998/07/21 11:16:25 florian
  635. * bug0147 fixed
  636. Revision 1.9 1998/07/20 22:17:16 florian
  637. * hex constants in numeric char (#$54#$43 ...) are now allowed
  638. * there was a bug in record_var_dec which prevents the used
  639. of nested variant records (for example drivers.tevent of tv)
  640. Revision 1.8 1998/07/20 18:40:15 florian
  641. * handling of ansi string constants should now work
  642. Revision 1.7 1998/07/18 22:54:29 florian
  643. * some ansi/wide/longstring support fixed:
  644. o parameter passing
  645. o returning as result from functions
  646. Revision 1.6 1998/06/08 22:59:52 peter
  647. * smartlinking works for win32
  648. * some defines to exclude some compiler parts
  649. Revision 1.5 1998/06/03 22:49:01 peter
  650. + wordbool,longbool
  651. * rename bis,von -> high,low
  652. * moved some systemunit loading/creating to psystem.pas
  653. Revision 1.4 1998/05/05 12:05:42 florian
  654. * problems with properties fixed
  655. * crash fixed: i:=l when i and l are undefined, was a problem with
  656. implementation of private/protected
  657. Revision 1.3 1998/04/29 10:34:00 pierre
  658. + added some code for ansistring (not complete nor working yet)
  659. * corrected operator overloading
  660. * corrected nasm output
  661. + started inline procedures
  662. + added starstarn : use ** for exponentiation (^ gave problems)
  663. + started UseTokenInfo cond to get accurate positions
  664. }