| 188 pool->allocator, NULL, sizeof(CSVData) |
188 pool->allocator, NULL, sizeof(CSVData) |
| 189 ); |
189 ); |
| 190 for (size_t i = 1 ; i < lc ; i++) { |
190 for (size_t i = 1 ; i < lc ; i++) { |
| 191 if (lines[i].length == 0) continue; |
191 if (lines[i].length == 0) continue; |
| 192 cxstring fields[3]; |
192 cxstring fields[3]; |
| 193 size_t fc = cx_strsplit(lines[i], cx_str(";"), 3, fields); |
193 size_t fc = cx_strsplit(lines[i], ";", 3, fields); |
| 194 if (fc != 3) { |
194 if (fc != 3) { |
| 195 fprintf(stderr, "Syntax error in line %zu.\n", i); |
195 fprintf(stderr, "Syntax error in line %zu.\n", i); |
| 196 cxMempoolFree(pool); |
196 cxMempoolFree(pool); |
| 197 return 1; |
197 return 1; |
| 198 } |
198 } |