From 90cdb82942f5c904a933e6f9b05e6f046df0dd4c Mon Sep 17 00:00:00 2001 From: hniksic Date: Fri, 16 Nov 2001 09:26:42 -0800 Subject: [PATCH] [svn] Use 0x22 instead of '"' or '\"'. --- src/ChangeLog | 6 ++++++ src/html-parse.c | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 9cfdb4d7..d559fb1a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2001-11-16 Hrvoje Niksic + + * html-parse.c (advance_declaration): Use 0x22 instead of '"' or + '\"'. Different compilers' assert macros are broken in different + ways. + 2001-09-29 Christian Fraenkel * http.c (gethttp): print debug output for errors occuring during diff --git a/src/html-parse.c b/src/html-parse.c index 4ae7afe7..e10c4855 100644 --- a/src/html-parse.c +++ b/src/html-parse.c @@ -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. */