]> sjero.net Git - wget/blobdiff - src/html-parse.c
[svn] Applied Philipp Thomas's safe-ctype patch. Published in
[wget] / src / html-parse.c
index 0b42746f8bb2aa8a2bb368a88164961f19181d70..07e0377808fb9274ad04fe599f4fed808c28df52 100644 (file)
@@ -85,7 +85,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
 #include <stdio.h>
 #include <stdlib.h>
-#include <ctype.h>
 #ifdef HAVE_STRING_H
 # include <string.h>
 #else
@@ -99,6 +98,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #ifdef STANDALONE
 # define xmalloc malloc
 # define xrealloc realloc
+# define xfree free
 #endif /* STANDALONE */
 
 /* Pool support.  For efficiency, map_html_tags() stores temporary
@@ -432,7 +432,7 @@ advance_declaration (const char *beg, const char *end)
            state = AC_S_DEFAULT;
          break;
        case AC_S_QUOTE1:
-         assert (ch == '\'' || ch == '\"');
+         assert (ch == '\'' || ch == '"');
          quote_char = ch;      /* cheating -- I really don't feel like
                                   introducing more different states for
                                   different quote characters. */