diff options
author | Patrick Lu <ptlu@hawkwind.ncsa.uiuc.edu> | 1999-06-07 19:57:10 (GMT) |
---|---|---|
committer | Patrick Lu <ptlu@hawkwind.ncsa.uiuc.edu> | 1999-06-07 19:57:10 (GMT) |
commit | 8532eb342ec94f6f7c92c73108c37228c91ee31c (patch) | |
tree | f7428c50e804d09f890fe2201ddfcedd2dc1947d | |
parent | 6881c423a13ae1e7dbf73f1b6fc02d91c71e5947 (diff) | |
download | hdf5-8532eb342ec94f6f7c92c73108c37228c91ee31c.zip hdf5-8532eb342ec94f6f7c92c73108c37228c91ee31c.tar.gz hdf5-8532eb342ec94f6f7c92c73108c37228c91ee31c.tar.bz2 |
[svn-r1310]
removed the '//' from display_string and put a macro for it in h5dump.h
-rw-r--r-- | tools/h5dump.h | 2 | ||||
-rw-r--r-- | tools/h5tools.c | 14 |
2 files changed, 8 insertions, 8 deletions
diff --git a/tools/h5dump.h b/tools/h5dump.h index c4213fb..4b1ed02 100644 --- a/tools/h5dump.h +++ b/tools/h5dump.h @@ -25,7 +25,7 @@ #define STRPAD "STRPAD" #define CSET "CSET" #define CTYPE "CTYPE" - +#define CONCATENATOR "//" #define BEGIN "{" #define END "}" diff --git a/tools/h5tools.c b/tools/h5tools.c index 226b036..fdc544d 100644 --- a/tools/h5tools.c +++ b/tools/h5tools.c @@ -1159,7 +1159,7 @@ h5dump_simple_data(FILE *stream, const h5dump_t *info, hid_t container, * Modifications: * *------------------------------------------------------------------------- - */ + */ static int h5dump_simple_dset(FILE *stream, const h5dump_t *info, hid_t dset, hid_t p_type, int obj_data) @@ -1908,7 +1908,7 @@ static void display_string printf("%s\"", out_buf); strncpy(out_buf, tempstr.s, x); out_buf[x] = '\0'; - printf("%s\" //\n", out_buf); + printf("%s\" CONCATENATOR\n", out_buf); first_row = 0; out_buf[0] = '\0'; } else { @@ -1917,7 +1917,7 @@ static void display_string memset(out_buf, '\0', nCols); temp = copy_atomic_char(out_buf,tempstr.s,tempstr.len,x); out_buf[x] = '\0'; - printf("%s\" //\n", out_buf); + printf("%s\" CONCATENATOR\n", out_buf); x = temp; } } @@ -1933,7 +1933,7 @@ static void display_string indentation(indent+COL); strncpy(out_buf, tempstr.s+x+j*y, y); out_buf[y] = '\0'; - printf("\"%s\" //\n", out_buf); + printf("\"%s\" CONCATENATOR\n", out_buf); } if ((elmtno+i+1) == p_nelmts) { /* last element */ @@ -1941,7 +1941,7 @@ static void display_string indentation(indent+COL); strncpy(out_buf, tempstr.s+x+j*y, y); out_buf[y] = '\0'; - printf("\"%s\" //\n", out_buf); + printf("\"%s\" CONCATENATOR\n", out_buf); indentation(indent+COL); printf("\"%s\"", tempstr.s+x+m*y); if (compound_data) { @@ -1970,7 +1970,7 @@ static void display_string indentation(indent+COL); strncpy(out_buf, tempstr.s+x+j*y, y); out_buf[y] = '\0'; - printf("\"%s\" //\n", out_buf); + printf("\"%s\" CONCATENATOR\n", out_buf); indentation(indent+COL); printf("\"%s\",\n", tempstr.s+x+m*y); } else { @@ -1986,7 +1986,7 @@ static void display_string indentation(indent+COL); strncpy(out_buf, tempstr.s+x+j*y, y); out_buf[y] = '\0'; - printf("\"%s\" //\n", out_buf); + printf("\"%s\" CONCATENATOR\n", out_buf); strcpy(out_buf, "\""); strcat(out_buf, tempstr.s+x+m*y); strcat(out_buf, "\","); |