#endif
/*
+ * In sysio_init we'll allow simple comments, strings outside {}
+ * delimited by COMMENT_INTRO, and '\n' or '\0'
+ */
+#define COMMENT_INTRO '#'
+
+/*
* Sysio library initialization. Must be called before anything else in the
* library.
*/
/*
* Discard leading white space.
*/
- while ((c = *arg) != '\0' &&
- !(c == '{' || strchr(IGNORE_WHITE, c) == NULL))
+ while ((c = *arg) != '\0' && strchr(IGNORE_WHITE, c))
arg++;
+ if (COMMENT_INTRO == c) {
+ while (*arg && (*arg != '\n')) {
+ ++arg;
+ }
+
+ continue;
+ }
if (c == '\0')
break;
if (c != '{') {