+ /* compile regex matching blank lines or comments */
+ if (regcomp(&re_ignore, "^[[:space:]]*(#|$)", REG_EXTENDED|REG_NOSUB))
+ goto out_nore;
+ /* compile regex matching foo = "bar", with arbitrary whitespace at
+ beginning and end of line and surrounding the = */
+ if (regcomp(&re_config1,
+ "^[[:space:]]*([^=[:space:]]+)[[:space:]]*=[[:space:]]*\"(.*)\"[[:space:]]*$",
+ REG_EXTENDED)) {
+ regfree(&re_ignore);
+ goto out_nore;
+ }
+ /* compile regex matching foo = bar, with arbitrary whitespace at
+ beginning of line and surrounding the = */
+ if (regcomp(&re_config2,
+ "^[[:space:]]*([^=[:space:]]+)[[:space:]]*=[[:space:]]*(.*)$",
+ REG_EXTENDED|REG_NEWLINE)) {
+ regfree(&re_ignore);
+ regfree(&re_config1);
+ goto out_nore;
+ }