]> granicus.if.org Git - libexpat/commitdiff
Avoid specifying XMLPARSEAPI in the middle of a prototype's return
authorFred L. Drake, Jr. <fdrake@users.sourceforge.net>
Sat, 21 Jul 2001 02:28:28 +0000 (02:28 +0000)
committerFred L. Drake, Jr. <fdrake@users.sourceforge.net>
Sat, 21 Jul 2001 02:28:28 +0000 (02:28 +0000)
value; some compilers that expand XMLPARSEAPI to a non-empty value
complain.

This closes SF patch #412076.

expat/lib/expat.h.in

index 1873e74fa01fefd37fd23b0b9d79310f4f699579..6d3bbad505172e8537d7795ef9d79d26ff5d5651 100644 (file)
@@ -549,7 +549,7 @@ Returns zero if out of memory, non-zero otherwise. */
 int XMLPARSEAPI
 XML_SetBase(XML_Parser parser, const XML_Char *base);
 
-const XML_Char  XMLPARSEAPI *
+const XML_Char * XMLPARSEAPI
 XML_GetBase(XML_Parser parser);
 
 /* Returns the number of the attribute/value pairs passed in last call
@@ -575,7 +575,7 @@ len may be zero for this call (or any other). */
 int XMLPARSEAPI
 XML_Parse(XML_Parser parser, const char *s, int len, int isFinal);
 
-void XMLPARSEAPI *
+void * XMLPARSEAPI
 XML_GetBuffer(XML_Parser parser, int len);
 
 int XMLPARSEAPI
@@ -691,7 +691,7 @@ XML_GetCurrentByteCount(XML_Parser parser);
    NOTE: The character pointer returned should not be used outside
    the handler that makes the call. */
 
-const char XMLPARSEAPI *
+const char * XMLPARSEAPI
 XML_GetInputContext(XML_Parser parser,
                    int *offset,
                    int *size);
@@ -706,11 +706,11 @@ void XMLPARSEAPI
 XML_ParserFree(XML_Parser parser);
 
 /* Returns a string describing the error. */
-const XML_LChar XMLPARSEAPI *
+const XML_LChar * XMLPARSEAPI
 XML_ErrorString(int code);
 
 /* Return a string containing the version number of this expat */
-const XML_LChar XMLPARSEAPI *
+const XML_LChar * XMLPARSEAPI
 XML_ExpatVersion(void);
 
 typedef struct {