From f4f58194b9648c5910ce1c71fe2bd5ec1861e7be Mon Sep 17 00:00:00 2001 From: Thomas Schmucker Date: Tue, 23 Jun 2020 15:42:27 +0200 Subject: keine neuen (pseudo) Schlüsselwörter einführen... MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- csv.c | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'csv.c') diff --git a/csv.c b/csv.c index 736c76d..d82f531 100644 --- a/csv.c +++ b/csv.c @@ -4,7 +4,6 @@ #include #include "csv.h" -#define INLINE static inline /* === CSV-MEMORY Interface === */ @@ -46,7 +45,7 @@ const csv_options_t csv_default_options = { /* === CSV-ERROR Interface === */ -INLINE void +static void csv_fatal_error(csv_err_t csv_err, const csv_options_t * const csv_options) { if ( csv_options->cb_error != NULL ) { @@ -59,7 +58,7 @@ csv_fatal_error(csv_err_t csv_err, const csv_options_t * const csv_options) /* === CSV-STRING Interface === */ -INLINE void +static void csv_string_init(csv_string_t *csv_string) { assert(csv_string != NULL); @@ -69,7 +68,7 @@ csv_string_init(csv_string_t *csv_string) csv_string->pos = 0; } -INLINE void +static void csv_string_reset(csv_string_t *csv_string) { assert(csv_string != NULL); @@ -77,7 +76,7 @@ csv_string_reset(csv_string_t *csv_string) csv_string->pos = 0; } -INLINE int +static int csv_string_empty(csv_string_t *csv_string) { assert(csv_string != NULL); @@ -85,7 +84,7 @@ csv_string_empty(csv_string_t *csv_string) return ( csv_string->pos == 0 ) ? 1 : 0; } -INLINE void +static void csv_string_append(csv_string_t *csv_string, char ch, const csv_options_t * const csv_options) { assert(csv_string != NULL); @@ -117,7 +116,7 @@ csv_string_append(csv_string_t *csv_string, char ch, const csv_options_t * const csv_string->str[csv_string->pos++] = ch; /* append char */ } -INLINE void +static void csv_string_free(csv_string_t *csv_string, const csv_options_t * const csv_options) { assert(csv_string != NULL); @@ -131,7 +130,7 @@ csv_string_free(csv_string_t *csv_string, const csv_options_t * const csv_option /* === CSV-FIELD Interface === */ -INLINE void +static void csv_field_init(csv_field_t *csv_field) { assert(csv_field != NULL); @@ -141,7 +140,7 @@ csv_field_init(csv_field_t *csv_field) csv_field->pos = 0; } -INLINE void +static void csv_field_reset(csv_field_t *csv_field) { assert(csv_field != NULL); @@ -149,7 +148,7 @@ csv_field_reset(csv_field_t *csv_field) csv_field->pos = 0; } -INLINE void +static void csv_field_append(csv_field_t *csv_field, int idx, const csv_options_t * const csv_options) { assert(csv_field != NULL); @@ -181,7 +180,7 @@ csv_field_append(csv_field_t *csv_field, int idx, const csv_options_t * const cs csv_field->fields[csv_field->pos++] = idx; /* append idx */ } -INLINE void +static void csv_field_free(csv_field_t *csv_field, const csv_options_t * const csv_options) { assert(csv_field != NULL); -- cgit v1.3