aliases.inc 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. {
  2. $Id$
  3. This file is part of the Free Pascal run time library.
  4. Copyright (c) 2000 by Florian Klaempfl
  5. member of the Free Pascal development team.
  6. This file contains external definitions (which map to aliases
  7. of functions which are later implemented) so that they can
  8. be called before their implementation is known. We can't use
  9. forward definitions, because there's a bug which causes all
  10. sorts of trouble if you you first declare a procedure as
  11. forward, then call it and then implement it using an
  12. "external name 'bla'" where 'bla' is a public alias of a
  13. procedure defined after the call to the forward defined
  14. procedure.
  15. See the file COPYING.FPC, included in this distribution,
  16. for details about the copyright.
  17. This program is distributed in the hope that it will be useful,
  18. but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  20. **********************************************************************
  21. }
  22. { export for internal usage }
  23. Procedure int_Finalize (Data,TypeInfo: Pointer); [external name 'FPC_FINALIZE'];
  24. Procedure int_Addref (Data,TypeInfo : Pointer);saveregisters; [external name 'FPC_ADDREF'];
  25. Procedure int_DecRef (Data, TypeInfo : Pointer);saveregisters;[external name 'FPC_DECREF'];
  26. Procedure int_Initialize (Data,TypeInfo: Pointer); [external name 'FPC_INITIALIZE'];
  27. procedure int_FinalizeArray(data,typeinfo : pointer;count,size : longint); [external name 'FPC_FINALIZEARRAY'];
  28. {
  29. $Log$
  30. Revision 1.1 2001-08-01 15:00:10 jonas
  31. + "compproc" helpers
  32. * renamed several helpers so that their name is the same as their
  33. "public alias", which should facilitate the conversion of processor
  34. specific code in the code generator to processor independent code
  35. * some small fixes to the val_ansistring and val_widestring helpers
  36. (always immediately exit if the source string is longer than 255
  37. chars)
  38. * fixed fpc_dynarray_high and fpc_dynarray_length if the dynarray is
  39. still nil (used to crash, now return resp -1 and 0)
  40. }