diff options
author | schnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2003-11-19 16:47:23 +0000 |
---|---|---|
committer | schnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2003-11-19 16:47:23 +0000 |
commit | 5c25a05eb1c460d434db27c2ccb69642d29c7533 (patch) | |
tree | 878b046a3fade0cb9c169eb49b0dc0d11e9c3f7a /lib/sbin/CreateFunctionBindings.pl | |
parent | 2e79048ff68431d16a7e6ff74ebc217a1901a049 (diff) |
Create #include statements in cctk_Functions.h for all thorns, not
just for those that actually use function aliasing. This prevents
recompiling when a thorn starts to use or stops using function
aliasing.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@3461 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/sbin/CreateFunctionBindings.pl')
-rw-r--r-- | lib/sbin/CreateFunctionBindings.pl | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/lib/sbin/CreateFunctionBindings.pl b/lib/sbin/CreateFunctionBindings.pl index f0dc6b6f..2668aae1 100644 --- a/lib/sbin/CreateFunctionBindings.pl +++ b/lib/sbin/CreateFunctionBindings.pl @@ -1604,22 +1604,13 @@ sub ThornMasterIncludes foreach $thorn (sort keys %function_db) { - my $localfns = keys %{$function_db{$thorn}}; - if ($localfns) - { - push(@data, "#ifdef THORN_IS_$thorn"); - push(@data, "#include \"${thorn}_Prototypes.h\""); - push(@data, "#define DECLARE_CCTK_FUNCTIONS DECLARE_\U$thorn\E_FUNCTIONS"); - push(@data, '#endif'); - push(@data, ''); - } + push(@data, "#ifdef THORN_IS_$thorn"); + push(@data, "#include \"${thorn}_Prototypes.h\""); + push(@data, "#define DECLARE_CCTK_FUNCTIONS DECLARE_\U$thorn\E_FUNCTIONS"); + push(@data, '#endif'); + push(@data, ''); } - push(@data, '#ifndef DECLARE_CCTK_FUNCTIONS'); - push(@data, '#define DECLARE_CCTK_FUNCTIONS _DECLARE_CCTK_FUNCTIONS'); - push(@data, '#endif'); - push(@data, ''); - push(@data, '#endif /* _CCTK_FUNCTIONALIASES_H_ */'); push(@data, "\n"); # workaround for perl 5.004_04 to add a trailing newline |