Handle string literals with embedded \0 correctly.
[cparser] / string_rep.h
1 #ifndef STRING_REP_H
2 #define STRING_REP_H
3
4 #include <wchar.h>
5
6 typedef wchar_t wchar_rep_t;
7
8 typedef struct string_t {
9         const char *begin;
10         size_t      size;
11 } string_t;
12
13 typedef struct wide_string_t {
14         const wchar_rep_t *begin;
15         size_t             size;
16 } wide_string_t;
17
18 #endif