From fdrake at users.sourceforge.net Thu Feb 10 16:52:05 2005 From: fdrake at users.sourceforge.net (Fred L. Drake) Date: Thu Feb 10 16:52:08 2005 Subject: [Expat-checkins] expat Makefile.in,1.52,1.53 Message-ID: Update of /cvsroot/expat/expat In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20351 Modified Files: Makefile.in Log Message: when uninstalling the library, remove both headers (closes SF bug #1114960) Index: Makefile.in =================================================================== RCS file: /cvsroot/expat/expat/Makefile.in,v retrieving revision 1.52 retrieving revision 1.53 diff -u -d -r1.52 -r1.53 --- Makefile.in 28 Jan 2005 05:46:46 -0000 1.52 +++ Makefile.in 10 Feb 2005 15:52:02 -0000 1.53 @@ -93,7 +93,8 @@ uninstalllib: $(LIBTOOL) --mode=uninstall rm -f $(INSTALL_ROOT)$(libdir)/$(LIBRARY) - rm -f $(INSTALL_ROOT)$(includedir)/$(APIHEADER) + rm -f $(INSTALL_ROOT)$(includedir)/expat.h + rm -f $(INSTALL_ROOT)$(includedir)/expat_external.h # for VPATH builds (invoked by configure) mkdir-init: From ssolie at users.sourceforge.net Sat Feb 26 02:36:35 2005 From: ssolie at users.sourceforge.net (Steven Solie) Date: Sat Feb 26 02:36:39 2005 Subject: [Expat-checkins] expat/amiga - New directory Message-ID: Update of /cvsroot/expat/expat/amiga In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25506/amiga Log Message: Directory /cvsroot/expat/expat/amiga added to the repository From ssolie at users.sourceforge.net Sat Feb 26 02:38:15 2005 From: ssolie at users.sourceforge.net (Steven Solie) Date: Sat Feb 26 02:38:20 2005 Subject: [Expat-checkins] expat/lib amigaconfig.h, NONE, 1.1 xmlparse.c, 1.145, 1.146 xmlrole.c, 1.20, 1.21 xmltok.c, 1.33, 1.34 Message-ID: Update of /cvsroot/expat/expat/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26208 Modified Files: xmlparse.c xmlrole.c xmltok.c Added Files: amigaconfig.h Log Message: Added AmigaOS support. --- NEW FILE: amigaconfig.h --- #ifndef AMIGACONFIG_H #define AMIGACONFIG_H /* 1234 = LIL_ENDIAN, 4321 = BIGENDIAN */ #define BYTEORDER 4321 /* Define to 1 if you have the `bcopy' function. */ #define HAVE_BCOPY /* Define to 1 if you have the header file. */ #define HAVE_FCNTL_H /* Define to 1 if you have the `memmove' function. */ #define HAVE_MEMMOVE /* Define to 1 if you have the header file. */ #define HAVE_STDLIB_H /* Define to 1 if you have the header file. */ #define HAVE_STRING_H /* Define to 1 if you have the header file. */ #define HAVE_SYS_STAT_H /* Define to 1 if you have the header file. */ #define HAVE_SYS_TYPES_H /* Define to 1 if you have the header file. */ #define HAVE_UNISTD_H /* Define to 1 if you have the ANSI C header files. */ #define STDC_HEADERS /* whether byteorder is bigendian */ #define WORDS_BIGENDIAN /* Define to specify how much context to retain around the current parse point. */ #define XML_CONTEXT_BYTES 1024 /* Define to make parameter entity parsing functionality available. */ #define XML_DTD 1 /* Define to make XML Namespaces functionality available. */ #define XML_NS 1 #endif Index: xmlparse.c =================================================================== RCS file: /cvsroot/expat/expat/lib/xmlparse.c,v retrieving revision 1.145 retrieving revision 1.146 diff -u -d -r1.145 -r1.146 --- xmlparse.c 29 Jan 2005 04:48:44 -0000 1.145 +++ xmlparse.c 26 Feb 2005 01:38:13 -0000 1.146 @@ -12,6 +12,8 @@ #include "winconfig.h" #elif defined(MACOS_CLASSIC) #include "macconfig.h" +#elif defined(__amigaos4__) +#include "amigaconfig.h" #elif defined(HAVE_EXPAT_CONFIG_H) #include #endif /* ndef COMPILED_FROM_DSP */ Index: xmlrole.c =================================================================== RCS file: /cvsroot/expat/expat/lib/xmlrole.c,v retrieving revision 1.20 retrieving revision 1.21 diff -u -d -r1.20 -r1.21 --- xmlrole.c 26 Nov 2004 15:00:38 -0000 1.20 +++ xmlrole.c 26 Feb 2005 01:38:13 -0000 1.21 @@ -8,6 +8,8 @@ #include "winconfig.h" #elif defined(MACOS_CLASSIC) #include "macconfig.h" +#elif defined(__amigaos4__) +#include "amigaconfig.h" #else #ifdef HAVE_EXPAT_CONFIG_H #include Index: xmltok.c =================================================================== RCS file: /cvsroot/expat/expat/lib/xmltok.c,v retrieving revision 1.33 retrieving revision 1.34 diff -u -d -r1.33 -r1.34 --- xmltok.c 26 Nov 2004 14:56:52 -0000 1.33 +++ xmltok.c 26 Feb 2005 01:38:13 -0000 1.34 @@ -8,6 +8,8 @@ #include "winconfig.h" #elif defined(MACOS_CLASSIC) #include "macconfig.h" +#elif defined(__amigaos4__) +#include "amigaconfig.h" #else #ifdef HAVE_EXPAT_CONFIG_H #include From ssolie at users.sourceforge.net Sat Feb 26 02:38:56 2005 From: ssolie at users.sourceforge.net (Steven Solie) Date: Sat Feb 26 02:38:59 2005 Subject: [Expat-checkins] expat/amiga Makefile,NONE,1.1 README.txt,NONE,1.1 Message-ID: Update of /cvsroot/expat/expat/amiga In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26579 Added Files: Makefile README.txt Log Message: AmigaOS support files --- NEW FILE: Makefile --- # # Makefile for AmigaOS # .PHONY: help all check clean install uninstall tooldir = SDK:C includedir = SDK:Local/clib2/include libdir = SDK:Local/clib2/lib LIBRARY = libexpat.a help: @echo "Expat XML Parser" @echo "" @echo "Requirements:" @echo "- AmigaOS 4.0" @echo "- SDK 51.5" @echo "- clib2 1.188" @echo "" @echo "Targets:" @echo "all - build expat lib, all tools, test suite and run tests" @echo "check - run test suite" @echo "clean - clean all product files" @echo "install - install expat lib and headers in SDK" @echo "uninstall - uninstall expat lib and headers" all: $(LIBRARY) xmlwf elements outline check benchmark check: runtests runtests clean: -delete /lib/#?.o quiet -delete /xmlwf/#?.o quiet -delete /examples/#?.o quiet -delete /tests/#?.o quiet -delete $(LIBRARY) xmlwf runtests elements outline benchmark quiet install: xmlwf $(LIBRARY) copy xmlwf $(tooldir) quiet copy /lib/expat.h /lib/expat_external.h $(includedir) quiet copy $(LIBRARY) $(libdir) quiet uninstall: -delete $(tooldir)/xmlwf quiet -delete $(includedir)/expat.h $(includedir)/expat_external.h quiet -delete $(libdir)/$(LIBRARY) quiet CC = gcc LIBTOOL = ar STRIP = strip LIBDIR = /lib INCLUDES = -I../lib LDFLAGS = CFLAGS = -DNDEBUG -O2 LTFLAGS = -crs STRIPFLAGS = -R.comment COMPILE = $(CC) $(CFLAGS) $(INCLUDES) LINK_LIB = $(LIBTOOL) $(LTFLAGS) LINK_EXE = $(COMPILE) $(LDFLAGS) -o $@ LIB_OBJS = $(LIBDIR)/xmlparse.o $(LIBDIR)/xmltok.o $(LIBDIR)/xmlrole.o LIB_LINK_OBJS = $(subst $(LIBDIR),..$(LIBDIR),$(LIB_OBJS)) $(LIBRARY): $(LIB_OBJS) $(LINK_LIB) $@ $(LIB_LINK_OBJS) $(LIBDIR)/xmlparse.o: $(LIBDIR)/xmlparse.c $(LIBDIR)/expat.h \ $(LIBDIR)/xmlrole.h $(LIBDIR)/xmltok.h $(LIBDIR)/expat_external.h \ $(LIBDIR)/internal.h $(LIBDIR)/amigaconfig.h $(LIBDIR)/xmlrole.o: $(LIBDIR)/xmlrole.c $(LIBDIR)/ascii.h \ $(LIBDIR)/xmlrole.h $(LIBDIR)/expat_external.h $(LIBDIR)/internal.h \ $(LIBDIR)/amigaconfig.h $(LIBDIR)/xmltok.o: $(LIBDIR)/xmltok.c $(LIBDIR)/xmltok_impl.c \ $(LIBDIR)/xmltok_ns.c $(LIBDIR)/ascii.h $(LIBDIR)/asciitab.h \ $(LIBDIR)/iasciitab.h $(LIBDIR)/latin1tab.h $(LIBDIR)/nametab.h \ $(LIBDIR)/utf8tab.h $(LIBDIR)/xmltok.h $(LIBDIR)/xmltok_impl.h \ $(LIBDIR)/expat_external.h $(LIBDIR)/internal.h $(LIBDIR)/amigaconfig.h XMLWF_OBJS = /xmlwf/xmlwf.o /xmlwf/xmlfile.o /xmlwf/codepage.o /xmlwf/readfilemap.o XMLWF_LINK_OBJS = $(subst /xmlwf/,../xmlwf/,$(XMLWF_OBJS)) /xmlwf/xmlwf.o: /xmlwf/xmlwf.c /xmlwf/xmlfile.o: /xmlwf/xmlfile.c /xmlwf/codepage.o: /xmlwf/codepage.c /xmlwf/readfilemap.o: /xmlwf/readfilemap.c xmlwf: $(XMLWF_OBJS) $(LIBRARY) $(LINK_EXE) $(XMLWF_LINK_OBJS) $(LIBRARY) -lm $(STRIP) $(STRIPFLAGS) $@ /examples/elements.o: /examples/elements.c elements: /examples/elements.o $(LIBRARY) $(LINK_EXE) ../examples/elements.o $(LIBRARY) -lm $(STRIP) $(STRIPFLAGS) $@ /examples/outline.o: /examples/outline.c outline: /examples/outline.o $(LIBRARY) $(LINK_EXE) ../examples/outline.o $(LIBRARY) -lm $(STRIP) $(STRIPFLAGS) $@ /tests/benchmark/benchmark.o: /tests/benchmark/benchmark.c benchmark: /tests/benchmark/benchmark.o $(LIBRARY) $(LINK_EXE) ../tests/benchmark/benchmark.o $(LIBRARY) -lm $(STRIP) $(STRIPFLAGS) $@ /tests/chardata.o: /tests/chardata.c /tests/chardata.h /tests/minicheck.o: /tests/minicheck.c /tests/minicheck.h /tests/runtests.o: /tests/runtests.c /tests/chardata.h runtests: /tests/runtests.o /tests/chardata.o /tests/minicheck.o $(LIBRARY) $(LINK_EXE) ../tests/runtests.o ../tests/chardata.o ../tests/minicheck.o $(LIBRARY) -lm %.o: %.c $(COMPILE) -o ..$@ -c ..$< --- NEW FILE: README.txt --- Short: Expat XML parsing library Author: James Clark Uploader: ssolie@telus.net (Steven Solie) Type: dev/misc Version: 1.95.8 Requires: AmigaOS 4.0, SDK 51.5, clib2 1.188 This is a port of expat for AmigaOS 4.0 PPC. Currently clib2 is supported although it should be possible to use the library with newlib (e.g. add the -newlib option to GCC). Building: --------- To build expat library, xmlwf tool, examples and run the test suite, simply type 'make all'. To install expat into the AmigaOS SDK type 'make install'. To uninstall expat, type 'make uninstall'. To run the test suite, type 'make check'. Configuration: -------------- You may want to edit the lib/amigaconfig.h file to remove DTD and/or XML namespace support if they are not required by your application for a slightly smaller and faster implementation. To Do: ------ - wide character support (UTF-16) - create a shared library option