diff options
author | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2002-03-27 15:34:19 +0000 |
---|---|---|
committer | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2002-03-27 15:34:19 +0000 |
commit | 489ed36e225fbadf3618d9e338d158750347fa9f (patch) | |
tree | 606b59cd9a8da7b83da483f23d54a9fb8a21e53e /lib/sbin/output_config.pl | |
parent | 358c188550d74a47d1fb817de7d9add766720f04 (diff) |
Reworked treatment of CCTK_DECLARE macros. Now the C file preprocessor
will put everything up to the closing bracket for a routine into a new block.
Also, the USE_CCTK macro is now appended directly to the CCTK_DECLARE macro.
There is no need anymore to use CCTK_NO_AUTOUSE_MACRO.
Also changed the way how parameters and arguments are used within the USE_CCTK
macros: now it's done by "(void) (parameter = 0);" which is better than
assigning the address of it to some dummy pointer.
This fixes problems where one had to parse for a possible return statement
at the end of the routine.
This fix closes PR Cactus/949.
Also did some perl code optimization and added grdoc headers for files
generated by the CST.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2676 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/sbin/output_config.pl')
-rw-r--r-- | lib/sbin/output_config.pl | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/lib/sbin/output_config.pl b/lib/sbin/output_config.pl deleted file mode 100644 index 6d632bd9..00000000 --- a/lib/sbin/output_config.pl +++ /dev/null @@ -1,27 +0,0 @@ -#! /usr/bin/perl -s -#/*@@ -# @file output_config.pl -# @date Tue Jan 19 18:59:59 1999 -# @author Tom Goodale -# @desc -# Outputs all configuration data -# @enddesc -#@@*/ - -sub OutputFile -{ - my($directory, $file, @data) = @_; - - $dataout = ""; - - foreach $line (@data) - { - $dataout .= "$line\n"; - } - - &WriteFile("$directory/$file",\$dataout); - -} - -1; - |