From 8532eb342ec94f6f7c92c73108c37228c91ee31c Mon Sep 17 00:00:00 2001 From: Patrick Lu Date: Mon, 7 Jun 1999 14:57:10 -0500 Subject: [svn-r1310] removed the '//' from display_string and put a macro for it in h5dump.h --- tools/h5dump.h | 2 +- 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, "\","); -- cgit v0.12