lin_targ.pas 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. {
  2. $Id$
  3. Copyright (c) 1998 by Florian Klaempfl
  4. This unit implements some support routines for the linux target like
  5. import/export handling
  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 lin_targ;
  20. interface
  21. uses import;
  22. type
  23. pimportliblinux=^timportliblinux;
  24. timportliblinux=object(timportlib)
  25. procedure preparelib(const s:string);virtual;
  26. procedure importprocedure(const func,module:string;index:longint;const name:string);virtual;
  27. procedure generatelib;virtual;
  28. end;
  29. implementation
  30. uses
  31. strings,cobjects,systems,globals,
  32. files,aasm,symtable;
  33. procedure timportliblinux.preparelib(const s : string);
  34. begin
  35. end;
  36. procedure timportliblinux.importprocedure(const func,module : string;index : longint;const name : string);
  37. begin
  38. { insert sharedlibrary }
  39. current_module^.linksharedlibs.insert(SplitName(module));
  40. { do nothing with the procedure, only set the mangledname }
  41. aktprocsym^.definition^.setmangledname(name);
  42. end;
  43. procedure timportliblinux.generatelib;
  44. begin
  45. end;
  46. end.
  47. {
  48. $Log$
  49. Revision 1.1 1998-10-19 18:07:13 peter
  50. + external dll_name name func support for linux
  51. }