-/* $OpenBSD: makemap.c,v 1.55 2015/10/17 19:44:07 gilles Exp $ */
+/* $OpenBSD: makemap.c,v 1.56 2015/10/26 16:38:06 sunil Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@poolp.org>
char *line;
size_t len;
size_t lineno = 0;
- char delim[] = { '\\', '\\', '#' };
if (strcmp(filename, "-") == 0)
fp = fdopen(0, "r");
return 0;
}
- while ((line = fparseln(fp, &len, &lineno, delim, 0)) != NULL) {
+ while ((line = fparseln(fp, &len, &lineno,
+ NULL, FPARSELN_UNESCCOMM)) != NULL) {
if (! parse_entry(line, len, lineno)) {
free(line);
fclose(fp);
keyp = line;
while (isspace((unsigned char)*keyp))
keyp++;
- if (*keyp == '\0' || *keyp == '#')
+ if (*keyp == '\0')
return 1;
valp = keyp;
goto bad;
while (*valp == ':' || isspace((unsigned char)*valp))
valp++;
- if (*valp == '\0' || *valp == '#')
+ if (*valp == '\0')
goto bad;
/* Check for dups. */
keyp = line;
while (isspace((unsigned char)*keyp))
keyp++;
- if (*keyp == '\0' || *keyp == '#')
+ if (*keyp == '\0')
return 1;
val.data = "<set>";