aliases.inc 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. {
  2. This file is part of the Free Pascal run time library.
  3. Copyright (c) 2000 by Florian Klaempfl
  4. member of the Free Pascal development team.
  5. This file contains external definitions (which map to aliases
  6. of functions which are later implemented) so that they can
  7. be called before their implementation is known. We can't use
  8. forward definitions, because there's a bug which causes all
  9. sorts of trouble if you you first declare a procedure as
  10. forward, then call it and then implement it using an
  11. "external name 'bla'" where 'bla' is a public alias of a
  12. procedure defined after the call to the forward defined
  13. procedure.
  14. See the file COPYING.FPC, included in this distribution,
  15. for details about the copyright.
  16. This program is distributed in the hope that it will be useful,
  17. but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  19. **********************************************************************
  20. }
  21. { export for internal usage }
  22. Procedure int_Finalize (Data,TypeInfo: Pointer); [external name 'FPC_FINALIZE'];
  23. Procedure int_Addref (Data,TypeInfo : Pointer); [external name 'FPC_ADDREF'];
  24. Procedure int_Initialize (Data,TypeInfo: Pointer); [external name 'FPC_INITIALIZE'];
  25. procedure int_InitializeArray(data,typeinfo : pointer;count : SizeInt); [external name 'FPC_INITIALIZE_ARRAY'];
  26. procedure int_FinalizeArray(data,typeinfo : pointer;count : SizeInt); [external name 'FPC_FINALIZE_ARRAY'];
  27. {$if defined(FPC_HAS_FEATURE_RTTI) and not defined(cpujvm)}
  28. type
  29. TRTTIProc=procedure(Data,TypeInfo:Pointer);
  30. procedure RecordRTTI(Data,TypeInfo:Pointer;rttiproc:TRTTIProc); forward;
  31. {$endif FPC_HAS_FEATURE_RTTI and not cpujvm}