Update to current version of zipc functions.

Drop Xcode docset generation since current versions of Xcode no longer support
it... :/
This commit is contained in:
Michael R Sweet 2018-07-02 17:44:55 -04:00
parent 9942d5d1f7
commit 8eef15b7a5
No known key found for this signature in database
GPG Key ID: 999559A027815955
3 changed files with 1025 additions and 87 deletions

View File

@ -1,7 +1,7 @@
#
# Makefile for Mini-XML, a small XML-like file parsing library.
#
# Copyright 2003-2017 by Michael R Sweet.
# Copyright 2003-2018 by Michael R Sweet.
#
# These coded instructions, statements, and computer programs are the
# property of Michael R Sweet and are protected by Federal copyright
@ -20,7 +20,7 @@ AR = @AR@
ARFLAGS = @ARFLAGS@
ARCHFLAGS = @ARCHFLAGS@
CC = @CC@
CFLAGS = $(OPTIM) $(ARCHFLAGS) @CFLAGS@ @CPPFLAGS@ @PTHREAD_FLAGS@
CFLAGS = $(OPTIM) $(ARCHFLAGS) @CFLAGS@ @CPPFLAGS@ @PTHREAD_FLAGS@ -DZIPC_ONLY_WRITE
CP = @CP@
DSO = @DSO@
DSOFLAGS = @DSOFLAGS@
@ -361,39 +361,25 @@ testmxml.o: mxml.h
#
mxml.xml: mxmldoc-static mxml.h $(PUBLIBOBJS:.o=.c) \
doc/body.man doc/body.md \
doc/docset.css doc/docset.header \
doc/body.man doc/footer.man \
doc/reference.header
echo Generating API documentation...
$(RM) mxml.xml
./mxmldoc-static --header doc/reference.header \
--docversion @VERSION@ --author "Michael R Sweet" \
--copyright "Copyright 2003-2017, All Rights Reserved." \
--copyright "Copyright 2003-2018, All Rights Reserved." \
--title "Mini-XML API Reference" \
mxml.xml mxml.h $(PUBLIBOBJS:.o=.c) >doc/reference.html
./mxmldoc-static --man mxml --title "Mini-XML API" \
--body doc/body.man --footer doc/footer.man \
mxml.xml >doc/mxml.man
if test "x`uname`" = xDarwin; then \
./mxmldoc-static --docset org.msweet.mxml.docset \
--docversion @VERSION@ --feedname org.msweet.mxml \
--feedurl https://michaelrsweet.github.io/mxml/org.msweet.mxml.atom \
--header doc/docset.header --body doc/body.md \
--css doc/docset.css \
mxml.xml || exit 1; \
$(RM) org.msweet.mxml.atom; \
xcrun docsetutil package --output org.msweet.mxml.xar \
--atom org.msweet.mxml.atom \
--download-url https://michaelrsweet.github.io/mxml/org.msweet.mxml.xar \
org.msweet.mxml.docset || exit 1; \
fi
#
# mxml.epub
#
mxml.epub: mxml.xml doc/body.md doc/mxml-cover.png
mxml.epub: mxml.xml mxmldoc-static doc/body.md doc/mxml-cover.png
echo Generating EPUB API documentation...
./mxmldoc-static --body doc/body.md \
--coverimage doc/mxml-cover.png \

1083
zipc.c

File diff suppressed because it is too large Load Diff

5
zipc.h
View File

@ -61,19 +61,24 @@ extern zipc_file_t *zipcCreateFile(zipc_t *zc, const char *filename, int compres
extern int zipcCreateFileWithString(zipc_t *zc, const char *filename, const char *contents);
extern const char *zipcError(zipc_t *zc);
extern int zipcFileFinish(zipc_file_t *zf);
extern int zipcFileGets(zipc_file_t *zf, char *line, size_t linesize);
extern int zipcFilePrintf(zipc_file_t *zf, const char *format, ...)
# ifdef __GNUC__
__attribute__ ((__format__ (__printf__, 2, 3)))
# endif /* __GNUC__ */
;
extern int zipcFilePuts(zipc_file_t *zf, const char *s);
extern ssize_t zipcFileRead(zipc_file_t *zf, void *data, size_t bytes);
extern int zipcFileWrite(zipc_file_t *zf, const void *data, size_t bytes);
extern int zipcFileXMLGets(zipc_file_t *zf, char *fragment, size_t fragsize);
extern int zipcFileXMLPrintf(zipc_file_t *zf, const char *format, ...)
# ifdef __GNUC__
__attribute__ ((__format__ (__printf__, 2, 3)))
# endif /* __GNUC__ */
;
extern zipc_t *zipcOpen(const char *filename, const char *mode);
extern zipc_file_t *zipcOpenFile(zipc_t *zc, const char *filename);
extern const char *zipcXMLGetAttribute(const char *element, const char *attrname, char *buffer, size_t bufsize);
# ifdef __cplusplus
}