mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-09 19:08:15 +02:00
+ Add global_used callback procedure
git-svn-id: trunk@21778 -
This commit is contained in:
parent
7982b34416
commit
68d7e943c8
@ -191,6 +191,15 @@ interface
|
||||
|
||||
function ReplaceForbiddenAsmSymbolChars(const s: string): string;
|
||||
|
||||
{ dummy default noop callback }
|
||||
procedure default_global_used;
|
||||
type
|
||||
TGlobalUsedProcedure = procedure;
|
||||
{ Procedure variable to allow for special handling of
|
||||
the occurence of use of a global variable,
|
||||
used by PIC code generation to request GOT loading }
|
||||
const
|
||||
global_used : TGlobalUsedProcedure = @default_global_used;
|
||||
|
||||
implementation
|
||||
|
||||
@ -420,6 +429,7 @@ implementation
|
||||
is_set:=false;
|
||||
{ write it always }
|
||||
increfs;
|
||||
global_used;
|
||||
end;
|
||||
|
||||
|
||||
@ -447,4 +457,8 @@ implementation
|
||||
increfs;
|
||||
end;
|
||||
|
||||
procedure default_global_used;
|
||||
begin
|
||||
end;
|
||||
|
||||
end.
|
||||
|
Loading…
Reference in New Issue
Block a user