[Expat-checkins] expat/examples elements.c, 1.8, 1.9 outline.c, 1.9, 1.10
Steven Solie
ssolie at users.sourceforge.net
Sun Jun 3 17:00:12 CEST 2007
Update of /cvsroot/expat/expat/examples
In directory sc8-pr-cvs17:/tmp/cvs-serv1696/examples
Modified Files:
elements.c outline.c
Log Message:
Removed need for amiga_main().
Index: elements.c
===================================================================
RCS file: /cvsroot/expat/expat/examples/elements.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- elements.c 14 Apr 2006 18:03:36 -0000 1.8
+++ elements.c 3 Jun 2007 15:00:09 -0000 1.9
@@ -8,6 +8,10 @@
#include <stdio.h>
#include "expat.h"
+#if defined(__amigaos__) && defined(__USE_INLINE__)
+#include <proto/expat.h>
+#endif
+
#ifdef XML_LARGE_SIZE
#if defined(XML_USE_MSC_EXTENSIONS) && _MSC_VER < 1400
#define XML_FMT_INT_MOD "I64"
@@ -36,14 +40,8 @@
*depthPtr -= 1;
}
-#ifdef AMIGA_SHARED_LIB
-#include <proto/expat.h>
-int
-amiga_main(int argc, char *argv[])
-#else
int
main(int argc, char *argv[])
-#endif
{
char buf[BUFSIZ];
XML_Parser parser = XML_ParserCreate(NULL);
Index: outline.c
===================================================================
RCS file: /cvsroot/expat/expat/examples/outline.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- outline.c 5 Sep 2006 20:07:39 -0000 1.9
+++ outline.c 3 Jun 2007 15:00:09 -0000 1.10
@@ -25,6 +25,10 @@
#include <stdio.h>
#include <expat.h>
+#if defined(__amigaos__) && defined(__USE_INLINE__)
+#include <proto/expat.h>
+#endif
+
#ifdef XML_LARGE_SIZE
#if defined(XML_USE_MSC_EXTENSIONS) && _MSC_VER < 1400
#define XML_FMT_INT_MOD "I64"
@@ -65,14 +69,8 @@
Depth--;
}
-#ifdef AMIGA_SHARED_LIB
-#include <proto/expat.h>
-int
-amiga_main(int argc, char *argv[])
-#else
int
main(int argc, char *argv[])
-#endif
{
XML_Parser p = XML_ParserCreate(NULL);
if (! p) {
More information about the Expat-checkins
mailing list