mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-29 06:23:43 +02:00

* Unified fpc_initialize_array,fpc_finalize_array with fpc_decref_array and fpc_addref_array by removing 'size' parameter from the former two. Element size is easily calculated from RTTI, so omitting it simplifies code generation. All four helpers are now callable by tcg.g_array_rtti_helper(). * ncgutil.pas: initialization of open array out-parameters is now done properly (using fpc_initialize_array). + Test git-svn-id: trunk@17081 -
33 lines
1.5 KiB
PHP
33 lines
1.5 KiB
PHP
{
|
|
This file is part of the Free Pascal run time library.
|
|
Copyright (c) 2000 by Florian Klaempfl
|
|
member of the Free Pascal development team.
|
|
|
|
This file contains external definitions (which map to aliases
|
|
of functions which are later implemented) so that they can
|
|
be called before their implementation is known. We can't use
|
|
forward definitions, because there's a bug which causes all
|
|
sorts of trouble if you you first declare a procedure as
|
|
forward, then call it and then implement it using an
|
|
"external name 'bla'" where 'bla' is a public alias of a
|
|
procedure defined after the call to the forward defined
|
|
procedure.
|
|
|
|
See the file COPYING.FPC, included in this distribution,
|
|
for details about the copyright.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
**********************************************************************
|
|
}
|
|
|
|
{ export for internal usage }
|
|
Procedure int_Finalize (Data,TypeInfo: Pointer); [external name 'FPC_FINALIZE'];
|
|
Procedure int_Addref (Data,TypeInfo : Pointer); [external name 'FPC_ADDREF'];
|
|
Procedure int_DecRef (Data, TypeInfo : Pointer); [external name 'FPC_DECREF'];
|
|
Procedure int_Initialize (Data,TypeInfo: Pointer); [external name 'FPC_INITIALIZE'];
|
|
procedure int_FinalizeArray(data,typeinfo : pointer;count : longint); [external name 'FPC_FINALIZE_ARRAY'];
|
|
|