t_linux.pas 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711
  1. {
  2. $Id$
  3. Copyright (c) 1998-2000 by Peter Vreman
  4. This unit implements support import,export,link routines
  5. for the (i386) Linux target
  6. This program is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2 of the License, or
  9. (at your option) any later version.
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU General Public License for more details.
  14. You should have received a copy of the GNU General Public License
  15. along with this program; if not, write to the Free Software
  16. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17. ****************************************************************************
  18. }
  19. unit t_linux;
  20. {$i defines.inc}
  21. interface
  22. uses
  23. import,export,link;
  24. type
  25. timportliblinux=class(timportlib)
  26. procedure preparelib(const s:string);override;
  27. procedure importprocedure(const func,module:string;index:longint;const name:string);override;
  28. procedure importvariable(const varname,module:string;const name:string);override;
  29. procedure generatelib;override;
  30. end;
  31. texportliblinux=class(texportlib)
  32. procedure preparelib(const s : string);override;
  33. procedure exportprocedure(hp : texported_item);override;
  34. procedure exportvar(hp : texported_item);override;
  35. procedure generatelib;override;
  36. end;
  37. tlinkerlinux=class(tlinker)
  38. private
  39. Glibc2,
  40. Glibc21 : boolean;
  41. Function WriteResponseFile(isdll:boolean) : Boolean;
  42. public
  43. constructor Create;
  44. procedure SetDefaultInfo;override;
  45. function MakeExecutable:boolean;override;
  46. function MakeSharedLibrary:boolean;override;
  47. end;
  48. implementation
  49. uses
  50. cutils,cclasses,
  51. verbose,systems,globtype,globals,
  52. symconst,script,
  53. fmodule,aasm,cpuasm,cpubase,symsym;
  54. {*****************************************************************************
  55. TIMPORTLIBLINUX
  56. *****************************************************************************}
  57. procedure timportliblinux.preparelib(const s : string);
  58. begin
  59. end;
  60. procedure timportliblinux.importprocedure(const func,module : string;index : longint;const name : string);
  61. begin
  62. { insert sharedlibrary }
  63. current_module.linkothersharedlibs.add(SplitName(module),link_allways);
  64. { do nothing with the procedure, only set the mangledname }
  65. if name<>'' then
  66. aktprocsym.definition.setmangledname(name)
  67. else
  68. message(parser_e_empty_import_name);
  69. end;
  70. procedure timportliblinux.importvariable(const varname,module:string;const name:string);
  71. begin
  72. { insert sharedlibrary }
  73. current_module.linkothersharedlibs.add(SplitName(module),link_allways);
  74. { reset the mangledname and turn off the dll_var option }
  75. aktvarsym.setmangledname(name);
  76. exclude(aktvarsym.varoptions,vo_is_dll_var);
  77. end;
  78. procedure timportliblinux.generatelib;
  79. begin
  80. end;
  81. {*****************************************************************************
  82. TEXPORTLIBLINUX
  83. *****************************************************************************}
  84. procedure texportliblinux.preparelib(const s:string);
  85. begin
  86. end;
  87. procedure texportliblinux.exportprocedure(hp : texported_item);
  88. var
  89. hp2 : texported_item;
  90. begin
  91. { first test the index value }
  92. if (hp.options and eo_index)<>0 then
  93. begin
  94. Message1(parser_e_no_export_with_index_for_target,'linux');
  95. exit;
  96. end;
  97. { now place in correct order }
  98. hp2:=texported_item(current_module._exports.first);
  99. while assigned(hp2) and
  100. (hp.name^>hp2.name^) do
  101. hp2:=texported_item(hp2.next);
  102. { insert hp there !! }
  103. if assigned(hp2) and (hp2.name^=hp.name^) then
  104. begin
  105. { this is not allowed !! }
  106. Message1(parser_e_export_name_double,hp.name^);
  107. exit;
  108. end;
  109. if hp2=texported_item(current_module._exports.first) then
  110. current_module._exports.concat(hp)
  111. else if assigned(hp2) then
  112. begin
  113. hp.next:=hp2;
  114. hp.previous:=hp2.previous;
  115. if assigned(hp2.previous) then
  116. hp2.previous.next:=hp;
  117. hp2.previous:=hp;
  118. end
  119. else
  120. current_module._exports.concat(hp);
  121. end;
  122. procedure texportliblinux.exportvar(hp : texported_item);
  123. begin
  124. hp.is_var:=true;
  125. exportprocedure(hp);
  126. end;
  127. procedure texportliblinux.generatelib;
  128. var
  129. hp2 : texported_item;
  130. begin
  131. hp2:=texported_item(current_module._exports.first);
  132. while assigned(hp2) do
  133. begin
  134. if not hp2.is_var then
  135. begin
  136. {$ifdef i386}
  137. { place jump in codesegment }
  138. codesegment.concat(Tai_align.Create_op(4,$90));
  139. codeSegment.concat(Tai_symbol.Createname_global(hp2.name^,0));
  140. codeSegment.concat(Taicpu.Op_sym(A_JMP,S_NO,newasmsymbol(hp2.sym.mangledname)));
  141. codeSegment.concat(Tai_symbol_end.Createname(hp2.name^));
  142. {$endif i386}
  143. end
  144. else
  145. Message1(parser_e_no_export_of_variables_for_target,'linux');
  146. hp2:=texported_item(hp2.next);
  147. end;
  148. end;
  149. {*****************************************************************************
  150. TLINKERLINUX
  151. *****************************************************************************}
  152. Constructor TLinkerLinux.Create;
  153. begin
  154. Inherited Create;
  155. LibrarySearchPath.AddPath('/lib;/usr/lib;/usr/X11R6/lib',true);
  156. end;
  157. procedure TLinkerLinux.SetDefaultInfo;
  158. {
  159. This will also detect which libc version will be used
  160. }
  161. begin
  162. Glibc2:=false;
  163. Glibc21:=false;
  164. with Info do
  165. begin
  166. ExeCmd[1]:='ld $OPT $DYNLINK $STATIC $STRIP -L. -o $EXE $RES';
  167. DllCmd[1]:='ld $OPT -shared -L. -o $EXE $RES';
  168. DllCmd[2]:='strip --strip-unneeded $EXE';
  169. { first try glibc2 }
  170. DynamicLinker:='/lib/ld-linux.so.2';
  171. if FileExists(DynamicLinker) then
  172. begin
  173. Glibc2:=true;
  174. { Check for 2.0 files, else use the glibc 2.1 stub }
  175. if FileExists('/lib/ld-2.0.*') then
  176. Glibc21:=false
  177. else
  178. Glibc21:=true;
  179. end
  180. else
  181. DynamicLinker:='/lib/ld-linux.so.1';
  182. {$ifdef BSD}
  183. DynamicLinker:='';
  184. {$endif}
  185. end;
  186. end;
  187. Function TLinkerLinux.WriteResponseFile(isdll:boolean) : Boolean;
  188. Var
  189. linkres : TLinkRes;
  190. i : longint;
  191. cprtobj,
  192. gprtobj,
  193. prtobj : string[80];
  194. HPath : TStringListItem;
  195. s : string;
  196. linkdynamic,
  197. linklibc : boolean;
  198. begin
  199. WriteResponseFile:=False;
  200. { set special options for some targets }
  201. linkdynamic:=not(SharedLibFiles.empty);
  202. linklibc:=(SharedLibFiles.Find('c')<>nil);
  203. prtobj:='prt0';
  204. cprtobj:='cprt0';
  205. gprtobj:='gprt0';
  206. if glibc21 then
  207. begin
  208. cprtobj:='cprt21';
  209. gprtobj:='gprt21';
  210. end;
  211. if cs_profile in aktmoduleswitches then
  212. begin
  213. prtobj:=gprtobj;
  214. if not glibc2 then
  215. AddSharedLibrary('gmon');
  216. AddSharedLibrary('c');
  217. linklibc:=true;
  218. end
  219. else
  220. begin
  221. if linklibc then
  222. prtobj:=cprtobj;
  223. end;
  224. { Open link.res file }
  225. LinkRes:=TLinkRes.Create(outputexedir+Info.ResName);
  226. { Write path to search libraries }
  227. HPath:=TStringListItem(current_module.locallibrarysearchpath.First);
  228. while assigned(HPath) do
  229. begin
  230. LinkRes.Add('SEARCH_DIR('+HPath.Str+')');
  231. HPath:=TStringListItem(HPath.Next);
  232. end;
  233. HPath:=TStringListItem(LibrarySearchPath.First);
  234. while assigned(HPath) do
  235. begin
  236. LinkRes.Add('SEARCH_DIR('+HPath.Str+')');
  237. HPath:=TStringListItem(HPath.Next);
  238. end;
  239. LinkRes.Add('INPUT(');
  240. { add objectfiles, start with prt0 always }
  241. if prtobj<>'' then
  242. LinkRes.AddFileName(FindObjectFile(prtobj,''));
  243. { try to add crti and crtbegin if linking to C }
  244. if linklibc then
  245. begin
  246. if librarysearchpath.FindFile('crtbegin.o',s) then
  247. LinkRes.AddFileName(s);
  248. if librarysearchpath.FindFile('crti.o',s) then
  249. LinkRes.AddFileName(s);
  250. end;
  251. { main objectfiles }
  252. while not ObjectFiles.Empty do
  253. begin
  254. s:=ObjectFiles.GetFirst;
  255. if s<>'' then
  256. LinkRes.AddFileName(s);
  257. end;
  258. LinkRes.Add(')');
  259. { Write staticlibraries }
  260. if not StaticLibFiles.Empty then
  261. begin
  262. LinkRes.Add('GROUP(');
  263. While not StaticLibFiles.Empty do
  264. begin
  265. S:=StaticLibFiles.GetFirst;
  266. LinkRes.AddFileName(s)
  267. end;
  268. LinkRes.Add(')');
  269. end;
  270. { Write sharedlibraries like -l<lib>, also add the needed dynamic linker
  271. here to be sure that it gets linked this is needed for glibc2 systems (PFV) }
  272. if not SharedLibFiles.Empty then
  273. begin
  274. LinkRes.Add('INPUT(');
  275. While not SharedLibFiles.Empty do
  276. begin
  277. S:=SharedLibFiles.GetFirst;
  278. if s<>'c' then
  279. begin
  280. i:=Pos(target_info.sharedlibext,S);
  281. if i>0 then
  282. Delete(S,i,255);
  283. LinkRes.Add('-l'+s);
  284. end
  285. else
  286. begin
  287. linklibc:=true;
  288. linkdynamic:=false; { libc will include the ld-linux for us }
  289. end;
  290. end;
  291. { be sure that libc is the last lib }
  292. if linklibc then
  293. LinkRes.Add('-lc');
  294. { when we have -static for the linker the we also need libgcc }
  295. if (cs_link_staticflag in aktglobalswitches) then
  296. LinkRes.Add('-lgcc');
  297. if linkdynamic and (Info.DynamicLinker<>'') then
  298. LinkRes.AddFileName(Info.DynamicLinker);
  299. LinkRes.Add(')');
  300. end;
  301. { objects which must be at the end }
  302. if linklibc then
  303. begin
  304. LinkRes.Add('INPUT(');
  305. if librarysearchpath.FindFile('crtend.o',s) then
  306. LinkRes.AddFileName(s);
  307. if librarysearchpath.FindFile('crtn.o',s) then
  308. LinkRes.AddFileName(s);
  309. LinkRes.Add(')');
  310. end;
  311. { Write and Close response }
  312. linkres.writetodisk;
  313. linkres.Free;
  314. WriteResponseFile:=True;
  315. end;
  316. function TLinkerLinux.MakeExecutable:boolean;
  317. var
  318. binstr,
  319. cmdstr : string;
  320. success : boolean;
  321. DynLinkStr : string[60];
  322. StaticStr,
  323. StripStr : string[40];
  324. begin
  325. if not(cs_link_extern in aktglobalswitches) then
  326. Message1(exec_i_linking,current_module.exefilename^);
  327. { Create some replacements }
  328. StaticStr:='';
  329. StripStr:='';
  330. DynLinkStr:='';
  331. if (cs_link_staticflag in aktglobalswitches) then
  332. StaticStr:='-static';
  333. if (cs_link_strip in aktglobalswitches) then
  334. StripStr:='-s';
  335. If (cs_profile in aktmoduleswitches) or
  336. ((Info.DynamicLinker<>'') and (not SharedLibFiles.Empty)) then
  337. DynLinkStr:='-dynamic-linker='+Info.DynamicLinker;
  338. { Write used files and libraries }
  339. WriteResponseFile(false);
  340. { Call linker }
  341. SplitBinCmd(Info.ExeCmd[1],binstr,cmdstr);
  342. Replace(cmdstr,'$EXE',current_module.exefilename^);
  343. Replace(cmdstr,'$OPT',Info.ExtraOptions);
  344. Replace(cmdstr,'$RES',outputexedir+Info.ResName);
  345. Replace(cmdstr,'$STATIC',StaticStr);
  346. Replace(cmdstr,'$STRIP',StripStr);
  347. Replace(cmdstr,'$DYNLINK',DynLinkStr);
  348. success:=DoExec(FindUtil(BinStr),CmdStr,true,false);
  349. { Remove ReponseFile }
  350. if (success) and not(cs_link_extern in aktglobalswitches) then
  351. RemoveFile(outputexedir+Info.ResName);
  352. MakeExecutable:=success; { otherwise a recursive call to link method }
  353. end;
  354. Function TLinkerLinux.MakeSharedLibrary:boolean;
  355. var
  356. binstr,
  357. cmdstr : string;
  358. success : boolean;
  359. begin
  360. MakeSharedLibrary:=false;
  361. if not(cs_link_extern in aktglobalswitches) then
  362. Message1(exec_i_linking,current_module.sharedlibfilename^);
  363. { Write used files and libraries }
  364. WriteResponseFile(true);
  365. { Call linker }
  366. SplitBinCmd(Info.DllCmd[1],binstr,cmdstr);
  367. Replace(cmdstr,'$EXE',current_module.sharedlibfilename^);
  368. Replace(cmdstr,'$OPT',Info.ExtraOptions);
  369. Replace(cmdstr,'$RES',outputexedir+Info.ResName);
  370. success:=DoExec(FindUtil(binstr),cmdstr,true,false);
  371. { Strip the library ? }
  372. if success and (cs_link_strip in aktglobalswitches) then
  373. begin
  374. SplitBinCmd(Info.DllCmd[2],binstr,cmdstr);
  375. Replace(cmdstr,'$EXE',current_module.sharedlibfilename^);
  376. success:=DoExec(FindUtil(binstr),cmdstr,true,false);
  377. end;
  378. { Remove ReponseFile }
  379. if (success) and not(cs_link_extern in aktglobalswitches) then
  380. RemoveFile(outputexedir+Info.ResName);
  381. MakeSharedLibrary:=success; { otherwise a recursive call to link method }
  382. end;
  383. {*****************************************************************************
  384. Initialize
  385. *****************************************************************************}
  386. {$ifdef i386}
  387. const
  388. target_i386_linux_info : ttargetinfo =
  389. (
  390. target : target_i386_LINUX;
  391. name : 'Linux for i386';
  392. shortname : 'Linux';
  393. flags : [];
  394. cpu : i386;
  395. unit_env : 'LINUXUNITS';
  396. sharedlibext : '.so';
  397. staticlibext : '.a';
  398. sourceext : '.pp';
  399. pasext : '.pas';
  400. exeext : '';
  401. defext : '.def';
  402. scriptext : '.sh';
  403. smartext : '.sl';
  404. unitext : '.ppu';
  405. unitlibext : '.ppl';
  406. asmext : '.s';
  407. objext : '.o';
  408. resext : '.res';
  409. resobjext : '.or';
  410. libprefix : 'libp';
  411. Cprefix : '';
  412. newline : #10;
  413. assem : as_i386_elf32;
  414. assemextern : as_i386_as;
  415. link : ld_i386_linux;
  416. linkextern : ld_i386_linux;
  417. ar : ar_gnu_ar;
  418. res : res_none;
  419. endian : endian_little;
  420. stackalignment : 4;
  421. maxCrecordalignment : 4;
  422. size_of_pointer : 4;
  423. size_of_longint : 4;
  424. heapsize : 256*1024;
  425. maxheapsize : 32768*1024;
  426. stacksize : 8192;
  427. DllScanSupported:false;
  428. use_bound_instruction : false;
  429. use_function_relative_addresses : true
  430. );
  431. {$endif i386}
  432. {$ifdef m68k}
  433. const
  434. target_m68k_linux_info : ttargetinfo =
  435. (
  436. target : target_m68k_linux;
  437. name : 'Linux for m68k';
  438. shortname : 'linux';
  439. flags : [];
  440. cpu : m68k;
  441. short_name : 'LINUX';
  442. unit_env : 'LINUXUNITS';
  443. sharedlibext : '.so';
  444. staticlibext : '.a';
  445. sourceext : '.pp';
  446. pasext : '.pas';
  447. exeext : '';
  448. defext : '';
  449. scriptext : '.sh';
  450. smartext : '.sl';
  451. unitext : '.ppu';
  452. unitlibext : '.ppl';
  453. asmext : '.s';
  454. objext : '.o';
  455. resext : '.res';
  456. resobjext : '.or';
  457. libprefix : 'libp';
  458. Cprefix : '';
  459. newline : #10;
  460. assem : as_m68k_as;
  461. assemextern : as_m68k_as;
  462. link : ld_m68k_linux;
  463. linkextern : ld_m68k_linux;
  464. ar : ar_m68k_ar;
  465. res : res_none;
  466. endian : endian_big;
  467. stackalignment : 2;
  468. maxCrecordalignment : 32;
  469. size_of_pointer : 4;
  470. size_of_longint : 4;
  471. heapsize : 128*1024;
  472. maxheapsize : 32768*1024;
  473. stacksize : 8192;
  474. DllScanSupported:false;
  475. use_bound_instruction : false;
  476. use_function_relative_addresses : true
  477. );
  478. {$endif m68k}
  479. {$ifdef powerpc}
  480. const
  481. target_powerpc_linux_info : ttargetinfo =
  482. (
  483. target : target_powerpc_LINUX;
  484. name : 'Linux for PowerPC';
  485. shortname : 'linuxppc';
  486. flags : [];
  487. cpu : powerpc;
  488. short_name : 'LINUX';
  489. unit_env : '';
  490. sharedlibext : '.so';
  491. staticlibext : '.s';
  492. sourceext : '.pp';
  493. pasext : '.pas';
  494. exeext : '';
  495. defext : '.def';
  496. scriptext : '.sh';
  497. smartext : '.sl';
  498. unitext : '.ppu';
  499. unitlibext : '.ppl';
  500. asmext : '.s';
  501. objext : '.o';
  502. resext : '.res';
  503. resobjext : '.or';
  504. libprefix : 'libp';
  505. Cprefix : '';
  506. newline : #10;
  507. assem : as_powerpc_as;
  508. assemsrc : as_powerpc_as;
  509. ar : ar_powerpc_ar;
  510. res : res_none;
  511. endian : endian_big;
  512. stackalignment : 8;
  513. maxCrecordalignment : 32;
  514. size_of_pointer : 4;
  515. size_of_longint : 4;
  516. heapsize : 256*1024;
  517. maxheapsize : 32768*1024;
  518. stacksize : 8192;
  519. DllScanSupported:false;
  520. use_bound_instruction : false;
  521. use_function_relative_addresses : true
  522. );
  523. {$endif powerpc}
  524. {$ifdef alpha}
  525. const
  526. target_alpha_linux_info : ttargetinfo =
  527. (
  528. target : target_alpha_LINUX;
  529. name : 'Linux for Alpha';
  530. shortname : 'axplinux';
  531. flags : [];
  532. cpu : alpha;
  533. short_name : 'LINUX';
  534. unit_env : 'LINUXUNITS';
  535. sharedlibext : '.so';
  536. staticlibext : '.a';
  537. sourceext : '.pp';
  538. pasext : '.pas';
  539. exeext : '';
  540. defext : '.def';
  541. scriptext : '.sh';
  542. smartext : '.sl';
  543. unitext : '.ppu';
  544. unitlibext : '.ppl';
  545. asmext : '.s';
  546. objext : '.o';
  547. resext : '.res';
  548. resobjext : '.or';
  549. libprefix : 'libp';
  550. Cprefix : '';
  551. newline : #10;
  552. assem : as_alpha_as;
  553. assemextern : as_alpha_as;
  554. link : ld_alpha_linux;
  555. linkextern : ld_alpha_linux;
  556. ar : ar_alpha_ar;
  557. res : res_none;
  558. endian : endian_little;
  559. stackalignment : 8;
  560. maxCrecordalignment : 32;
  561. size_of_pointer : 8;
  562. size_of_longint : 4;
  563. heapsize : 256*1024;
  564. maxheapsize : 32768*1024;
  565. stacksize : 8192;
  566. DllScanSupported:false;
  567. use_bound_instruction : false;
  568. use_function_relative_addresses : true
  569. );
  570. {$endif alpha}
  571. initialization
  572. {$ifdef i386}
  573. RegisterLinker(ld_i386_linux,TLinkerLinux);
  574. RegisterImport(target_i386_linux,timportliblinux);
  575. RegisterExport(target_i386_linux,texportliblinux);
  576. RegisterTarget(target_i386_linux_info);
  577. {$endif i386}
  578. {$ifdef m68k}
  579. RegisterLinker(ld_m68k_linux,TLinkerLinux);
  580. RegisterImport(target_m68k_linux,timportliblinux);
  581. RegisterExport(target_m68k_linux,texportliblinux);
  582. RegisterTarget(target_m68k_linux_info);
  583. {$endif m68k}
  584. {$ifdef powerpc}
  585. RegisterLinker(ld_powerpc_linux,TLinkerLinux);
  586. RegisterImport(target_powerpc_linux,timportliblinux);
  587. RegisterExport(target_powerpc_linux,texportliblinux);
  588. RegisterTarget(target_powerpc_linux_info);
  589. {$endif powerpc}
  590. {$ifdef alpha}
  591. RegisterLinker(ld_alpha_linux,TLinkerLinux);
  592. RegisterImport(target_alpha_linux,timportliblinux);
  593. RegisterExport(target_alpha_linux,texportliblinux);
  594. RegisterTarget(target_alpha_linux_info);
  595. {$endif alpha}
  596. end.
  597. {
  598. $Log$
  599. Revision 1.4 2001-04-18 22:02:04 peter
  600. * registration of targets and assemblers
  601. Revision 1.3 2001/04/13 01:22:21 peter
  602. * symtable change to classes
  603. * range check generation and errors fixed, make cycle DEBUG=1 works
  604. * memory leaks fixed
  605. Revision 1.2 2001/03/22 10:08:12 michael
  606. + .ctor patch merged from fixbranch
  607. Revision 1.1 2001/02/26 19:43:11 peter
  608. * moved target units to subdir
  609. Revision 1.11 2001/02/20 21:41:17 peter
  610. * new fixfilename, findfile for unix. Look first for lowercase, then
  611. NormalCase and last for UPPERCASE names.
  612. Revision 1.10 2000/12/30 22:53:25 peter
  613. * export with the case provided in the exports section
  614. Revision 1.9 2000/12/25 00:07:30 peter
  615. + new tlinkedlist class (merge of old tstringqueue,tcontainer and
  616. tlinkedlist objects)
  617. Revision 1.8 2000/10/31 22:02:54 peter
  618. * symtable splitted, no real code changes
  619. Revision 1.7 2000/09/24 21:33:47 peter
  620. * message updates merges
  621. Revision 1.6 2000/09/24 15:06:31 peter
  622. * use defines.inc
  623. Revision 1.5 2000/09/10 20:26:55 peter
  624. * bsd patches from marco
  625. Revision 1.4 2000/08/27 16:11:54 peter
  626. * moved some util functions from globals,cobjects to cutils
  627. * splitted files into finput,fmodule
  628. Revision 1.3 2000/07/13 12:08:28 michael
  629. + patched to 1.1.0 with former 1.09patch from peter
  630. Revision 1.2 2000/07/13 11:32:50 michael
  631. + removed logs
  632. }