diff options
Diffstat (limited to 'source/csv_parser.h')
| -rw-r--r-- | source/csv_parser.h | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/source/csv_parser.h b/source/csv_parser.h deleted file mode 100644 index 1aa96b9..0000000 --- a/source/csv_parser.h +++ /dev/null | |||
| @@ -1,40 +0,0 @@ | |||
| 1 | #ifndef CSV_PARSER_H | ||
| 2 | #define CSV_PARSER_H | ||
| 3 | |||
| 4 | typedef struct csv_row csv_row; | ||
| 5 | struct csv_row | ||
| 6 | { | ||
| 7 | // array of size col_count, points into mmap buffer | ||
| 8 | string8 *fields; | ||
| 9 | s32 count; | ||
| 10 | }; | ||
| 11 | |||
| 12 | typedef struct csv_table csv_table; | ||
| 13 | struct csv_table | ||
| 14 | { | ||
| 15 | // first row, col names | ||
| 16 | // all data rows | ||
| 17 | string8 *headers; | ||
| 18 | csv_row *rows; | ||
| 19 | s32 col_count; | ||
| 20 | s32 row_count; | ||
| 21 | }; | ||
| 22 | |||
| 23 | read_only global_variable | ||
| 24 | csv_row nil_csv_row = | ||
| 25 | { | ||
| 26 | .fields = &nil_string, | ||
| 27 | .count = 0, | ||
| 28 | }; | ||
| 29 | |||
| 30 | read_only global_variable | ||
| 31 | csv_table nil_csv_table = | ||
| 32 | { | ||
| 33 | .headers = &nil_string, | ||
| 34 | .rows = &nil_csv_row, | ||
| 35 | .col_count = 0, | ||
| 36 | .row_count = 0, | ||
| 37 | }; | ||
| 38 | |||
| 39 | |||
| 40 | #endif /* CSV_PARSER_H */ | ||
