diff options
author | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2003-01-25 15:40:10 +0000 |
---|---|---|
committer | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2003-01-25 15:40:10 +0000 |
commit | 9ec1bb3db87bfb760a4cac6fa3077fa0d0f1a77f (patch) | |
tree | 2593afb255082a7331a35ff6255bb5c886c08b9a /lib/sbin/create_c_stuff.pl | |
parent | 3d3df5dad066d64f647d9d2b566b8d44665235bf (diff) |
Changed CreateParameterBindingFile() to include header files only if needed.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@3101 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/sbin/create_c_stuff.pl')
-rw-r--r-- | lib/sbin/create_c_stuff.pl | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/sbin/create_c_stuff.pl b/lib/sbin/create_c_stuff.pl index eb768eb7..046a3e23 100644 --- a/lib/sbin/create_c_stuff.pl +++ b/lib/sbin/create_c_stuff.pl @@ -21,15 +21,18 @@ sub CreateParameterBindingFile { - my($prefix, $structure, $rhparameters, $rhparameter_db) = @_; + my($include_headers, $structure, $rhparameters, $rhparameter_db) = @_; my($line,@data); my(%parameters); my($type); # Header Data - push(@data, '#include "cctk_Config.h"'); - push(@data, '#include "CParameterStructNames.h"'); - push(@data, ''); + if ($include_headers) + { + push(@data, '#include "cctk_Config.h"'); + push(@data, '#include "CParameterStructNames.h"'); + push(@data, ''); + } # Create the structure push(@data, 'struct'); |