Skip spaces in serialisation.
This commit is contained in:
1 parent
4efa8c1ef9
commit
3a09efde91
1 file changed
+2
-2
@@ -567,7 +567,7 @@
|
|||||||
M_GET_INIT oplist (item); \
|
M_GET_INIT oplist (item); \
|
||||||
do { \
|
do { \
|
||||||
bool b = M_GET_PARSE_STR oplist (item, str, &str); \
|
bool b = M_GET_PARSE_STR oplist (item, str, &str); \
|
||||||
c = *str++; \
|
do { c = *str++; } while (isspace(c)); \
|
||||||
if (b == false || c == 0) { goto exit; } \
|
if (b == false || c == 0) { goto exit; } \
|
||||||
M_C(name, _push_back)(list, item); \
|
M_C(name, _push_back)(list, item); \
|
||||||
} while (c == M_GET_SEPARATOR oplist); \
|
} while (c == M_GET_SEPARATOR oplist); \
|
||||||
@@ -596,7 +596,7 @@
|
|||||||
M_GET_INIT oplist (item); \
|
M_GET_INIT oplist (item); \
|
||||||
do { \
|
do { \
|
||||||
bool b = M_GET_IN_STR oplist (item, file); \
|
bool b = M_GET_IN_STR oplist (item, file); \
|
||||||
c = fgetc(file); \
|
do { c = fgetc(file); } while (isspace(c)); \
|
||||||
if (b == false || c == EOF) { break; } \
|
if (b == false || c == EOF) { break; } \
|
||||||
M_C(name, _push_back)(list, item); \
|
M_C(name, _push_back)(list, item); \
|
||||||
} while (c == M_GET_SEPARATOR oplist); \
|
} while (c == M_GET_SEPARATOR oplist); \
|
||||||
|
|||||||
Reference in new issue
Block a user