diff options
author | allen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 1999-07-19 15:30:19 +0000 |
---|---|---|
committer | allen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 1999-07-19 15:30:19 +0000 |
commit | da672c4ee63e41d4a8e568894a729d34dde9dcf0 (patch) | |
tree | a97af831a7c69486866b8367585440202d1dab0e | |
parent | 38d36535facbd15b6972692d1143309d4c0a07d6 (diff) |
Banner is causing a problem on the origin, and I can't see why. for the
moment I'll remove the offending line.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@741 17b73243-c579-4c4c-a9d2-2d5706c11dac
-rw-r--r-- | src/main/Banner.c | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/src/main/Banner.c b/src/main/Banner.c index aef67f1f..8310224e 100644 --- a/src/main/Banner.c +++ b/src/main/Banner.c @@ -14,7 +14,10 @@ #include "cctk_parameters.h" static int number_banners = 0; -static const char **strings; +static const char **banner_strings; + +void CCTKi_PrintBanners(void); + /*@@ @routine CCTK_RegisterBanner @@ -37,11 +40,12 @@ void CCTK_RegisterBanner(const char *string) number_banners++; if (number_banners == 1) - strings = (const char **)malloc( number_banners*sizeof(const char *)); + banner_strings = (const char **)malloc( number_banners*sizeof(const char *)); else - realloc( strings, number_banners*sizeof(const char *)); + realloc( banner_strings, number_banners*sizeof(const char *)); + + banner_strings[number_banners-1] = string; - strings[number_banners-1] = string; } @@ -71,9 +75,13 @@ void CCTKi_PrintBanners(void) { for (i=0;i<number_banners;i++) { - printf("-------------------------------------------------------------------------------------\n"); - printf("%s\n",strings[i]); - printf("-------------------------------------------------------------------------------------\n"); + if (banner_strings[i]) + { + printf("-------------------------------------------------------------------------------------\n"); + printf("Banner\n"); + /* printf("%s\n",banner_strings[i]); */ + printf("-------------------------------------------------------------------------------------\n"); + } } } } |