aboutsummaryrefslogtreecommitdiff
path: root/csv.c
diff options
context:
space:
mode:
authorThomas Schmucker <ts@its1.de>2020-06-25 08:43:58 +0200
committerThomas Schmucker <ts@its1.de>2020-06-25 08:43:58 +0200
commit55895fb08f28780424ca84e645aa45f21e11e080 (patch)
tree3da48dff0a2b068102e6fdfc20e01d24389c7fff /csv.c
parentb31926741461ad8d95f814968ed5420da83cb715 (diff)
downloadlibcsv-55895fb08f28780424ca84e645aa45f21e11e080.tar.gz
libcsv-55895fb08f28780424ca84e645aa45f21e11e080.tar.bz2
libcsv-55895fb08f28780424ca84e645aa45f21e11e080.zip
benutze überall int statt char als Feldbegrenzer/Feldtrenner
Diffstat (limited to 'csv.c')
-rw-r--r--csv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/csv.c b/csv.c
index a6d96e6..4b3325d 100644
--- a/csv.c
+++ b/csv.c
@@ -455,7 +455,7 @@ csv_write_field(FILE *out, const char *field, const csv_options_t * const csv_op
455 assert(field != NULL); 455 assert(field != NULL);
456 assert(out != NULL); 456 assert(out != NULL);
457 457
458 const char DELIM = csv_options->field_delimiter; 458 register const int DELIM = csv_options->field_delimiter;
459 459
460 if ( *field != '\0' ) { 460 if ( *field != '\0' ) {
461 putc(DELIM, out); 461 putc(DELIM, out);
@@ -487,7 +487,7 @@ csv_write(FILE *out, const csv_t * const csv)
487 assert(csv->csv_string.str != NULL); 487 assert(csv->csv_string.str != NULL);
488 assert(csv->csv_field.fields != NULL); 488 assert(csv->csv_field.fields != NULL);
489 489
490 const char SEP = csv->csv_options->field_separator; 490 register const int SEP = csv->csv_options->field_separator;
491 491
492 if ( 0 < csv->csv_field.pos ) { 492 if ( 0 < csv->csv_field.pos ) {
493 const char *str = csv->csv_string.str; 493 const char *str = csv->csv_string.str;
@@ -518,7 +518,7 @@ csv_write_ex(FILE *out, int n, const char *fields[], const csv_options_t * csv_o
518 csv_options = &csv_default_options; 518 csv_options = &csv_default_options;
519 } 519 }
520 520
521 const char SEP = csv_options->field_separator; 521 register const int SEP = csv_options->field_separator;
522 522
523 // process first field 523 // process first field
524 if ( 0 != n && *fields != NULL ) { 524 if ( 0 != n && *fields != NULL ) {