[svn] Use 0x22 instead of '"' or '\"'.

This commit is contained in:
hniksic 2001-11-16 09:26:42 -08:00
parent dc0070ca2d
commit 90cdb82942
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2001-11-16 Hrvoje Niksic <hniksic@arsdigita.com>
* html-parse.c (advance_declaration): Use 0x22 instead of '"' or
'\"'. Different compilers' assert macros are broken in different
ways.
2001-09-29 Christian Fraenkel <c.fraenkel@gmx.net>
* http.c (gethttp): print debug output for errors occuring during

View File

@ -432,7 +432,9 @@ advance_declaration (const char *beg, const char *end)
state = AC_S_DEFAULT;
break;
case AC_S_QUOTE1:
assert (ch == '\'' || ch == '"');
/* We must use 0x22 because broken assert macros choke on
'"' and '\"'. */
assert (ch == '\'' || ch == 0x22);
quote_char = ch; /* cheating -- I really don't feel like
introducing more different states for
different quote characters. */