summaryrefslogtreecommitdiff
path: root/csv.c
diff options
context:
space:
mode:
authorThomas Schmucker <ts@its1.de>2020-07-01 15:17:05 +0200
committerThomas Schmucker <ts@its1.de>2020-07-01 15:17:05 +0200
commit92ed56e6368b1685fbfbd23fda17fe95a109dd51 (patch)
treec69fe845fd2c626edb6937259b099dffcc167b2b /csv.c
parent8777397f3d8f792fed4bb76c80d2d67dee2d5545 (diff)
downloadlibcsv-92ed56e6368b1685fbfbd23fda17fe95a109dd51.tar.gz
libcsv-92ed56e6368b1685fbfbd23fda17fe95a109dd51.tar.bz2
libcsv-92ed56e6368b1685fbfbd23fda17fe95a109dd51.zip
Fix: Codelayout mit Leerzeilen
Diffstat (limited to 'csv.c')
-rw-r--r--csv.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/csv.c b/csv.c
index 8be2ea5..430630b 100644
--- a/csv.c
+++ b/csv.c
@@ -80,7 +80,6 @@ csv_fatal_error(csv_err_t csv_err, const csv_options_t * const csv_options)
80 if ( csv_options->cb_error != NULL ) { 80 if ( csv_options->cb_error != NULL ) {
81 (*csv_options->cb_error)(csv_err, csv_options->cb_error_arg); 81 (*csv_options->cb_error)(csv_err, csv_options->cb_error_arg);
82 } 82 }
83
84 fprintf(stderr, "fatal error: %s\n", csv_err_str(csv_err)); 83 fprintf(stderr, "fatal error: %s\n", csv_err_str(csv_err));
85 abort(); 84 abort();
86} 85}
@@ -127,7 +126,6 @@ csv_string_append(csv_string_t *csv_string, char ch, const csv_options_t * const
127 csv_fatal_error(CSV_ERR_OUT_OF_MEMORY, csv_options); 126 csv_fatal_error(CSV_ERR_OUT_OF_MEMORY, csv_options);
128 return; 127 return;
129 } 128 }
130
131 csv_string->cap = INITIAL_CAP; 129 csv_string->cap = INITIAL_CAP;
132 } 130 }
133 else { // subsequent call 131 else { // subsequent call
@@ -191,7 +189,6 @@ csv_field_append(csv_field_t *csv_field, int idx, const csv_options_t * const cs
191 csv_fatal_error(CSV_ERR_OUT_OF_MEMORY, csv_options); 189 csv_fatal_error(CSV_ERR_OUT_OF_MEMORY, csv_options);
192 return; 190 return;
193 } 191 }
194
195 csv_field->cap = INITIAL_CAP; 192 csv_field->cap = INITIAL_CAP;
196 } 193 }
197 else { // subsequent call 194 else { // subsequent call
@@ -278,7 +275,6 @@ csv_field(const csv_t * const csv, int idx)
278 csv_fatal_error(CSV_ERR_OUT_OF_RANGE, csv->csv_options); 275 csv_fatal_error(CSV_ERR_OUT_OF_RANGE, csv->csv_options);
279 return NULL; 276 return NULL;
280 } 277 }
281
282 return &csv->csv_string.str[csv->csv_field.fields[idx]]; 278 return &csv->csv_string.str[csv->csv_field.fields[idx]];
283} 279}
284 280