]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Some functions are static here, but extern in libxml's
authorGisle Vanem <gvanem@broadpark.no>
Wed, 9 Feb 2005 15:15:01 +0000 (15:15 +0000)
committerGisle Vanem <gvanem@broadpark.no>
Wed, 9 Feb 2005 15:15:01 +0000 (15:15 +0000)
SAX.h. gcc doesn't like that. Rename.

docs/examples/htmltitle.cc

index 9e683488f8fb6ac2a99b41208cc379f6f0df7bc2..62a4363d534471486ffca7679a93523c95fa7443 100644 (file)
@@ -131,7 +131,7 @@ static bool init(CURL *&conn, char *url)
 //  libxml start element callback function
 //
 
-static void startElement(void *voidContext,
+static void StartElement(void *voidContext,
                          const xmlChar *name,
                          const xmlChar **attributes)
 {
@@ -148,7 +148,7 @@ static void startElement(void *voidContext,
 //  libxml end element callback function
 //
 
-static void endElement(void *voidContext,
+static void EndElement(void *voidContext,
                        const xmlChar *name)
 {
   Context *context = (Context *)voidContext;
@@ -173,7 +173,7 @@ static void handleCharacters(Context *context,
 //  libxml PCDATA callback function
 //
 
-static void characters(void *voidContext,
+static void Characters(void *voidContext,
                        const xmlChar *chars,
                        int length)
 {
@@ -215,10 +215,10 @@ static htmlSAXHandler saxHandler =
   NULL,
   NULL,
   NULL,
-  startElement,
-  endElement,
+  StartElement,
+  EndElement,
   NULL,
-  characters,
+  Characters,
   NULL,
   NULL,
   NULL,