diff options
author | allen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 1999-01-29 11:49:37 +0000 |
---|---|---|
committer | allen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 1999-01-29 11:49:37 +0000 |
commit | 59a83ab2530029b7d3e6b0fb9d1cbb41551eef65 (patch) | |
tree | 20ab00e760ea988d67c70aaf7e17872cb93636c3 /lib/sbin/GridFuncStuff.pl | |
parent | b9d757ac48897c45d17f460f47899709d0216b8b (diff) |
Minor bug fixes
< $arglist .= "$sep"."(int *)(CCTK_STORAGESIZE(xGH, \"$1\",$2)";
---
> $arglist .= "$sep"."(int *)(CCTK_STORAGESIZE(xGH, \"$1\",$2))";
< push(@returndata, "#define \U$thorn"."_CARGS cGH *GH");
---
> push(@returndata, "#define \U$thorn"."_CARGUMENTS cGH *GH");
687c685
< push(@returndata, "#define \UDECLARE_$thorn"."_CARGS");
---
> push(@returndata, "#define \UDECLARE_$thorn"."_CARGUMENTS");
git-svn-id: http://svn.cactuscode.org/flesh/trunk@133 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/sbin/GridFuncStuff.pl')
-rw-r--r-- | lib/sbin/GridFuncStuff.pl | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/sbin/GridFuncStuff.pl b/lib/sbin/GridFuncStuff.pl index 6ca20aeb..3e797111 100644 --- a/lib/sbin/GridFuncStuff.pl +++ b/lib/sbin/GridFuncStuff.pl @@ -512,7 +512,7 @@ sub CreateCArgumentList { if($arguments{$argument} =~ m:STORAGESIZE\(([^,]*),\s*(\d+):) { - $arglist .= "$sep"."(int *)(CCTK_STORAGESIZE(xGH, \"$1\",$2)"; + $arglist .= "$sep"."(int *)(CCTK_STORAGESIZE(xGH, \"$1\",$2))"; $sep = ","; } } @@ -713,13 +713,13 @@ sub CreateThornArgumentHeaderFile # Argument prototypes push(@returndata, "#define \U$thorn"."_C2F_PROTO CCTK_C2F_PROTO\\"); + $sep = ","; foreach $block ("PRIVATE", "PROTECTED", "PUBLIC") { if($hasvars{$block}) { push(@returndata, "$sep"."\U$thorn"."_$block"."_C2F_PROTO\\"); - $sep = ","; } } @@ -729,13 +729,13 @@ sub CreateThornArgumentHeaderFile $sep = ""; push(@returndata, "#define PASS_\U$thorn"."_C2F(xGH) PASS_CCTK_C2F(xGH)\\"); + $sep = ","; foreach $block ("PRIVATE", "PROTECTED", "PUBLIC") { if($hasvars{$block}) { push(@returndata, "$sep"."PASS_\U$thorn"."_$block"."_C2F(xGH)\\"); - $sep = ","; } } @@ -750,7 +750,6 @@ sub CreateThornArgumentHeaderFile if($hasvars{$block}) { push(@returndata, "DECLARE_\U$thorn"."_$block"."_C2F\\"); - $sep = ","; } } @@ -765,7 +764,6 @@ sub CreateThornArgumentHeaderFile if($hasvars{$block}) { push(@returndata, "INITIALISE_\U$thorn"."_$block"."_C2F\\"); - $sep = ","; } } @@ -773,9 +771,9 @@ sub CreateThornArgumentHeaderFile # Dummy C declarations - push(@returndata, "#define \U$thorn"."_CARGS cGH *GH"); + push(@returndata, "#define \U$thorn"."_CARGUMENTS cGH *GH"); - push(@returndata, "#define \UDECLARE_$thorn"."_CARGS"); + push(@returndata, "#define \UDECLARE_$thorn"."_CARGUMENTS"); push(@returndata, "#endif /*CCODE*/"); |