summaryrefslogtreecommitdiff
path: root/csv.c
diff options
context:
space:
mode:
Diffstat (limited to 'csv.c')
-rw-r--r--csv.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/csv.c b/csv.c
index 8bb2fa8..a155cb4 100644
--- a/csv.c
+++ b/csv.c
@@ -65,7 +65,7 @@ csv_fatal_error(csv_err_t csv_err, const csv_options_t * const csv_options)
65 65
66/* === CSV-STRING Interface === */ 66/* === CSV-STRING Interface === */
67 67
68static void 68static inline void
69csv_string_init(csv_string_t *csv_string) 69csv_string_init(csv_string_t *csv_string)
70{ 70{
71 assert(csv_string != NULL); 71 assert(csv_string != NULL);
@@ -75,7 +75,7 @@ csv_string_init(csv_string_t *csv_string)
75 csv_string->pos = 0; 75 csv_string->pos = 0;
76} 76}
77 77
78static void 78static inline void
79csv_string_reset(csv_string_t *csv_string) 79csv_string_reset(csv_string_t *csv_string)
80{ 80{
81 assert(csv_string != NULL); 81 assert(csv_string != NULL);
@@ -83,7 +83,7 @@ csv_string_reset(csv_string_t *csv_string)
83 csv_string->pos = 0; 83 csv_string->pos = 0;
84} 84}
85 85
86static int 86static inline int
87csv_string_empty(csv_string_t *csv_string) 87csv_string_empty(csv_string_t *csv_string)
88{ 88{
89 assert(csv_string != NULL); 89 assert(csv_string != NULL);
@@ -91,7 +91,7 @@ csv_string_empty(csv_string_t *csv_string)
91 return ( csv_string->pos == 0 ) ? 1 : 0; 91 return ( csv_string->pos == 0 ) ? 1 : 0;
92} 92}
93 93
94static void 94static inline void
95csv_string_append(csv_string_t *csv_string, char ch, const csv_options_t * const csv_options) 95csv_string_append(csv_string_t *csv_string, char ch, const csv_options_t * const csv_options)
96{ 96{
97 assert(csv_string != NULL); 97 assert(csv_string != NULL);
@@ -123,7 +123,7 @@ csv_string_append(csv_string_t *csv_string, char ch, const csv_options_t * const
123 csv_string->str[csv_string->pos++] = ch; /* append char */ 123 csv_string->str[csv_string->pos++] = ch; /* append char */
124} 124}
125 125
126static void 126static inline void
127csv_string_free(csv_string_t *csv_string, const csv_options_t * const csv_options) 127csv_string_free(csv_string_t *csv_string, const csv_options_t * const csv_options)
128{ 128{
129 assert(csv_string != NULL); 129 assert(csv_string != NULL);
@@ -137,7 +137,7 @@ csv_string_free(csv_string_t *csv_string, const csv_options_t * const csv_option
137 137
138/* === CSV-FIELD Interface === */ 138/* === CSV-FIELD Interface === */
139 139
140static void 140static inline void
141csv_field_init(csv_field_t *csv_field) 141csv_field_init(csv_field_t *csv_field)
142{ 142{
143 assert(csv_field != NULL); 143 assert(csv_field != NULL);
@@ -147,7 +147,7 @@ csv_field_init(csv_field_t *csv_field)
147 csv_field->pos = 0; 147 csv_field->pos = 0;
148} 148}
149 149
150static void 150static inline void
151csv_field_reset(csv_field_t *csv_field) 151csv_field_reset(csv_field_t *csv_field)
152{ 152{
153 assert(csv_field != NULL); 153 assert(csv_field != NULL);
@@ -155,7 +155,7 @@ csv_field_reset(csv_field_t *csv_field)
155 csv_field->pos = 0; 155 csv_field->pos = 0;
156} 156}
157 157
158static void 158static inline void
159csv_field_append(csv_field_t *csv_field, int idx, const csv_options_t * const csv_options) 159csv_field_append(csv_field_t *csv_field, int idx, const csv_options_t * const csv_options)
160{ 160{
161 assert(csv_field != NULL); 161 assert(csv_field != NULL);
@@ -187,7 +187,7 @@ csv_field_append(csv_field_t *csv_field, int idx, const csv_options_t * const cs
187 csv_field->fields[csv_field->pos++] = idx; /* append idx */ 187 csv_field->fields[csv_field->pos++] = idx; /* append idx */
188} 188}
189 189
190static void 190static inline void
191csv_field_free(csv_field_t *csv_field, const csv_options_t * const csv_options) 191csv_field_free(csv_field_t *csv_field, const csv_options_t * const csv_options)
192{ 192{
193 assert(csv_field != NULL); 193 assert(csv_field != NULL);