add libnxml and update curl & pcre to statically link to NeoStats

This commit is contained in:
Fish 2006-07-08 08:25:47 +00:00
parent ea241c452f
commit 1ad80191e9
52 changed files with 11605 additions and 3517 deletions

18
.gitattributes vendored
View file

@ -318,6 +318,24 @@ lib/event/poll.c -text
lib/event/rtsig.c -text
lib/event/select.c -text
lib/event/signal.c -text
lib/nxml/Makefile.am -text
lib/nxml/Makefile.in -text
lib/nxml/nxml.h -text
lib/nxml/nxml_download.c -text
lib/nxml/nxml_dtd.c -text
lib/nxml/nxml_easy.c -text
lib/nxml/nxml_edit.c -text
lib/nxml/nxml_entity.c -text
lib/nxml/nxml_error.c -text
lib/nxml/nxml_free.c -text
lib/nxml/nxml_init.c -text
lib/nxml/nxml_internal.h -text
lib/nxml/nxml_namespace.c -text
lib/nxml/nxml_parser.c -text
lib/nxml/nxml_string.c -text
lib/nxml/nxml_tools.c -text
lib/nxml/nxml_utf.c -text
lib/nxml/nxml_write.c -text
lib/pcre/COPYING -text
lib/pcre/Makefile.am -text
lib/pcre/Makefile.in -text

View file

@ -29,6 +29,9 @@ Fish (F), Mark (M), DeadNotBuried (D)
- Make sure SET LIST shows the correct host entry if we using the default (F)
- Fix the ordering of AddBot so that stored settings such as
nick/ident/host etc are applied when the bots load (F)
- Change LibCurl and LibPCRE to be statically compiled into NeoStats rather
than as dynamic libraries (F)
- Add libnxml library for Feature request 292 and new module "NewsServ" (F)
* NeoStats * Version 3.0.a3
- LimitServ: join/part bot on adding/deleteing channels if JOIN enabled (D)

View file

@ -1,8 +1,8 @@
# Makefile.in generated by automake 1.9.2 from Makefile.am.
# Makefile.in generated by automake 1.9.6 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004 Free Software Foundation, Inc.
# 2003, 2004, 2005 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
@ -327,7 +327,13 @@ uninstall-dist_docDATA:
# (which will cause the Makefiles to be regenerated when you run `make');
# (2) otherwise, pass the desired values on the `make' command line.
$(RECURSIVE_TARGETS):
@set fnord $$MAKEFLAGS; amf=$$2; \
@failcom='exit 1'; \
for f in x $$MAKEFLAGS; do \
case $$f in \
*=* | --[!k]*);; \
*k*) failcom='fail=yes';; \
esac; \
done; \
dot_seen=no; \
target=`echo $@ | sed s/-recursive//`; \
list='$(SUBDIRS)'; for subdir in $$list; do \
@ -339,7 +345,7 @@ $(RECURSIVE_TARGETS):
local_target="$$target"; \
fi; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
|| eval $$failcom; \
done; \
if test "$$dot_seen" = "no"; then \
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
@ -347,7 +353,13 @@ $(RECURSIVE_TARGETS):
mostlyclean-recursive clean-recursive distclean-recursive \
maintainer-clean-recursive:
@set fnord $$MAKEFLAGS; amf=$$2; \
@failcom='exit 1'; \
for f in x $$MAKEFLAGS; do \
case $$f in \
*=* | --[!k]*);; \
*k*) failcom='fail=yes';; \
esac; \
done; \
dot_seen=no; \
case "$@" in \
distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
@ -368,7 +380,7 @@ maintainer-clean-recursive:
local_target="$$target"; \
fi; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
|| eval $$failcom; \
done && test -z "$$fail"
tags-recursive:
list='$(SUBDIRS)'; for subdir in $$list; do \

1614
aclocal.m4 vendored

File diff suppressed because it is too large Load diff

4328
configure vendored

File diff suppressed because it is too large Load diff

View file

@ -472,6 +472,7 @@ AC_CONFIG_FILES([Makefile
lib/curl/Makefile
lib/pcre/Makefile
lib/event/Makefile
lib/nxml/Makefile
modules/Makefile
modules/connectserv/Makefile
modules/extauth/Makefile

View file

@ -1,8 +1,8 @@
# Makefile.in generated by automake 1.9.2 from Makefile.am.
# Makefile.in generated by automake 1.9.6 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004 Free Software Foundation, Inc.
# 2003, 2004, 2005 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.

View file

@ -1,3 +1,3 @@
SUBDIRS = pcre curl event
SUBDIRS = pcre curl event nxml
include $(top_srcdir)/autotools/rules.mk

View file

@ -1,8 +1,8 @@
# Makefile.in generated by automake 1.9.2 from Makefile.am.
# Makefile.in generated by automake 1.9.6 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004 Free Software Foundation, Inc.
# 2003, 2004, 2005 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
@ -198,7 +198,7 @@ sysconfdir = @sysconfdir@
target_alias = @target_alias@
unamepath = @unamepath@
wi_PWD = @wi_PWD@
SUBDIRS = pcre curl event
SUBDIRS = pcre curl event nxml
LINK = $(LIBTOOL) --tag=CXX --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
$(AM_LDFLAGS) $(LDFLAGS) -o $@
@ -254,7 +254,13 @@ uninstall-info-am:
# (which will cause the Makefiles to be regenerated when you run `make');
# (2) otherwise, pass the desired values on the `make' command line.
$(RECURSIVE_TARGETS):
@set fnord $$MAKEFLAGS; amf=$$2; \
@failcom='exit 1'; \
for f in x $$MAKEFLAGS; do \
case $$f in \
*=* | --[!k]*);; \
*k*) failcom='fail=yes';; \
esac; \
done; \
dot_seen=no; \
target=`echo $@ | sed s/-recursive//`; \
list='$(SUBDIRS)'; for subdir in $$list; do \
@ -266,7 +272,7 @@ $(RECURSIVE_TARGETS):
local_target="$$target"; \
fi; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
|| eval $$failcom; \
done; \
if test "$$dot_seen" = "no"; then \
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
@ -274,7 +280,13 @@ $(RECURSIVE_TARGETS):
mostlyclean-recursive clean-recursive distclean-recursive \
maintainer-clean-recursive:
@set fnord $$MAKEFLAGS; amf=$$2; \
@failcom='exit 1'; \
for f in x $$MAKEFLAGS; do \
case $$f in \
*=* | --[!k]*);; \
*k*) failcom='fail=yes';; \
esac; \
done; \
dot_seen=no; \
case "$@" in \
distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
@ -295,7 +307,7 @@ maintainer-clean-recursive:
local_target="$$target"; \
fi; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
|| eval $$failcom; \
done && test -z "$$fail"
tags-recursive:
list='$(SUBDIRS)'; for subdir in $$list; do \

View file

@ -6,7 +6,7 @@ AUTOMAKE_OPTIONS = foreign nostdinc
EXTRA_DIST = getdate.y
lib_LTLIBRARIES = libcurl.la
noinst_LIBRARIES = libcurl.a
# we use srcdir/include for the static global include files
# we use builddir/lib for the generated lib/config.h file to get found
@ -54,9 +54,9 @@ VERSION=-version-info 2:2:0
#MIMPURE = -mimpure-text
#endif
libcurl_la_LDFLAGS = $(VERSION)
#libcurl_a_LDFLAGS = $(VERSION)
libcurl_la_SOURCES = arpa_telnet.h file.c netrc.h timeval.c \
libcurl_a_SOURCES = arpa_telnet.h file.c netrc.h timeval.c \
base64.c file.h hostip.c progress.c timeval.h base64.h formdata.c \
hostip.h progress.h cookie.c formdata.h http.c sendf.c cookie.h ftp.c \
http.h sendf.h url.c dict.c ftp.h if2ip.c speedcheck.c url.h dict.h \

View file

@ -1,8 +1,8 @@
# Makefile.in generated by automake 1.9.2 from Makefile.am.
# Makefile.in generated by automake 1.9.6 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004 Free Software Foundation, Inc.
# 2003, 2004, 2005 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
@ -19,8 +19,6 @@
#
SOURCES = $(libcurl_la_SOURCES)
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
@ -60,37 +58,37 @@ am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
mkinstalldirs = $(SHELL) $(top_srcdir)/autotools/mkinstalldirs
CONFIG_HEADER = $(top_builddir)/include/config.h
CONFIG_CLEAN_FILES =
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
am__vpath_adj = case $$p in \
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
*) f=$$p;; \
esac;
am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
am__installdirs = "$(DESTDIR)$(libdir)"
libLTLIBRARIES_INSTALL = $(INSTALL)
LTLIBRARIES = $(lib_LTLIBRARIES)
libcurl_la_LIBADD =
am_libcurl_la_OBJECTS = file.lo timeval.lo base64.lo hostip.lo \
progress.lo formdata.lo cookie.lo http.lo sendf.lo ftp.lo \
url.lo dict.lo if2ip.lo speedcheck.lo getdate.lo ldap.lo \
ssluse.lo version.lo getenv.lo escape.lo mprintf.lo telnet.lo \
netrc.lo getinfo.lo transfer.lo strequal.lo easy.lo \
security.lo krb4.lo memdebug.lo http_chunks.lo strtok.lo \
connect.lo llist.lo hash.lo multi.lo content_encoding.lo \
share.lo http_digest.lo md5.lo http_negotiate.lo http_ntlm.lo \
inet_pton.lo
libcurl_la_OBJECTS = $(am_libcurl_la_OBJECTS)
LIBRARIES = $(noinst_LIBRARIES)
ARFLAGS = cru
libcurl_a_AR = $(AR) $(ARFLAGS)
libcurl_a_LIBADD =
am_libcurl_a_OBJECTS = file.$(OBJEXT) timeval.$(OBJEXT) \
base64.$(OBJEXT) hostip.$(OBJEXT) progress.$(OBJEXT) \
formdata.$(OBJEXT) cookie.$(OBJEXT) http.$(OBJEXT) \
sendf.$(OBJEXT) ftp.$(OBJEXT) url.$(OBJEXT) dict.$(OBJEXT) \
if2ip.$(OBJEXT) speedcheck.$(OBJEXT) getdate.$(OBJEXT) \
ldap.$(OBJEXT) ssluse.$(OBJEXT) version.$(OBJEXT) \
getenv.$(OBJEXT) escape.$(OBJEXT) mprintf.$(OBJEXT) \
telnet.$(OBJEXT) netrc.$(OBJEXT) getinfo.$(OBJEXT) \
transfer.$(OBJEXT) strequal.$(OBJEXT) easy.$(OBJEXT) \
security.$(OBJEXT) krb4.$(OBJEXT) memdebug.$(OBJEXT) \
http_chunks.$(OBJEXT) strtok.$(OBJEXT) connect.$(OBJEXT) \
llist.$(OBJEXT) hash.$(OBJEXT) multi.$(OBJEXT) \
content_encoding.$(OBJEXT) share.$(OBJEXT) \
http_digest.$(OBJEXT) md5.$(OBJEXT) http_negotiate.$(OBJEXT) \
http_ntlm.$(OBJEXT) inet_pton.$(OBJEXT)
libcurl_a_OBJECTS = $(am_libcurl_a_OBJECTS)
DEFAULT_INCLUDES =
depcomp = $(SHELL) $(top_srcdir)/autotools/depcomp
am__depfiles_maybe = depfiles
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(CC) $(DEFS) \
LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
$(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)
SOURCES = $(libcurl_la_SOURCES)
DIST_SOURCES = $(libcurl_la_SOURCES)
SOURCES = $(libcurl_a_SOURCES)
DIST_SOURCES = $(libcurl_a_SOURCES)
HEADERS = $(noinst_HEADERS)
ETAGS = etags
CTAGS = ctags
@ -232,7 +230,7 @@ unamepath = @unamepath@
wi_PWD = @wi_PWD@
AUTOMAKE_OPTIONS = foreign nostdinc
EXTRA_DIST = getdate.y
lib_LTLIBRARIES = libcurl.la
noinst_LIBRARIES = libcurl.a
# we use srcdir/include for the static global include files
# we use builddir/lib for the generated lib/config.h file to get found
@ -277,8 +275,9 @@ INCLUDES = -I$(top_srcdir)/include
# allocatable but non-writable sections" problems.
#MIMPURE = -mimpure-text
#endif
libcurl_la_LDFLAGS = $(VERSION)
libcurl_la_SOURCES = arpa_telnet.h file.c netrc.h timeval.c \
#libcurl_a_LDFLAGS = $(VERSION)
libcurl_a_SOURCES = arpa_telnet.h file.c netrc.h timeval.c \
base64.c file.h hostip.c progress.c timeval.h base64.h formdata.c \
hostip.h progress.h cookie.c formdata.h http.c sendf.c cookie.h ftp.c \
http.h sendf.h url.c dict.c ftp.h if2ip.c speedcheck.c url.h dict.h \
@ -334,24 +333,12 @@ $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
uninstall-libLTLIBRARIES:
@$(NORMAL_UNINSTALL)
@set -x; list='$(lib_LTLIBRARIES)'; for p in $$list; do \
p=$(am__strip_dir) \
echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
$(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
done
clean-libLTLIBRARIES:
-test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
test "$$dir" != "$$p" || dir=.; \
echo "rm -f \"$${dir}/so_locations\""; \
rm -f "$${dir}/so_locations"; \
done
libcurl.la: $(libcurl_la_OBJECTS) $(libcurl_la_DEPENDENCIES)
$(LINK) -rpath $(libdir) $(libcurl_la_LDFLAGS) $(libcurl_la_OBJECTS) $(libcurl_la_LIBADD) $(LIBS)
clean-noinstLIBRARIES:
-test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
libcurl.a: $(libcurl_a_OBJECTS) $(libcurl_a_DEPENDENCIES)
-rm -f libcurl.a
$(libcurl_a_AR) libcurl.a $(libcurl_a_OBJECTS) $(libcurl_a_LIBADD)
$(RANLIB) libcurl.a
mostlyclean-compile:
-rm -f *.$(OBJEXT)
@ -359,49 +346,49 @@ mostlyclean-compile:
distclean-compile:
-rm -f *.tab.c
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/base64.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/connect.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/content_encoding.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cookie.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dict.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/easy.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/escape.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/file.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/formdata.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ftp.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getdate.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getenv.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getinfo.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hash.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hostip.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/http.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/http_chunks.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/http_digest.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/http_negotiate.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/http_ntlm.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/if2ip.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/inet_pton.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/krb4.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ldap.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/llist.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/md5.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/memdebug.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mprintf.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/multi.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/netrc.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/progress.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/security.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sendf.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/share.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/speedcheck.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ssluse.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/strequal.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/strtok.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/telnet.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/timeval.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/transfer.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/url.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/version.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/base64.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/connect.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/content_encoding.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cookie.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dict.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/easy.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/escape.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/file.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/formdata.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ftp.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getdate.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getenv.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getinfo.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hash.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hostip.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/http.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/http_chunks.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/http_digest.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/http_negotiate.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/http_ntlm.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/if2ip.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/inet_pton.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/krb4.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ldap.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/llist.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/md5.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/memdebug.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mprintf.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/multi.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/netrc.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/progress.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/security.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sendf.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/share.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/speedcheck.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ssluse.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/strequal.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/strtok.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/telnet.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/timeval.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/transfer.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/url.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/version.Po@am__quote@
mostlyclean-libtool:
-rm -f *.lo
@ -492,11 +479,8 @@ distdir: $(DISTFILES)
check-am: all-am
check: $(BUILT_SOURCES)
$(MAKE) $(AM_MAKEFLAGS) check-am
all-am: Makefile $(LTLIBRARIES) $(HEADERS)
all-am: Makefile $(LIBRARIES) $(HEADERS)
installdirs:
for dir in "$(DESTDIR)$(libdir)"; do \
test -z "$$dir" || $(mkdir_p) "$$dir"; \
done
install: $(BUILT_SOURCES)
$(MAKE) $(AM_MAKEFLAGS) install-am
install-exec: install-exec-am
@ -525,7 +509,7 @@ maintainer-clean-generic:
-test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
clean: clean-am
clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
clean-am: clean-generic clean-libtool clean-noinstLIBRARIES \
mostlyclean-am
distclean: distclean-am
@ -546,7 +530,7 @@ info-am:
install-data-am:
install-exec-am: install-libLTLIBRARIES
install-exec-am:
install-info: install-info-am
@ -572,20 +556,19 @@ ps: ps-am
ps-am:
uninstall-am: uninstall-info-am uninstall-libLTLIBRARIES
uninstall-am: uninstall-info-am
.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
clean-libLTLIBRARIES clean-libtool ctags distclean \
clean-libtool clean-noinstLIBRARIES ctags distclean \
distclean-compile distclean-generic distclean-libtool \
distclean-tags distdir dvi dvi-am html html-am info info-am \
install install-am install-data install-data-am install-exec \
install-exec-am install-info install-info-am \
install-libLTLIBRARIES install-man install-strip installcheck \
installcheck-am installdirs maintainer-clean \
maintainer-clean-generic mostlyclean mostlyclean-compile \
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
tags uninstall uninstall-am uninstall-info-am \
uninstall-libLTLIBRARIES
install-exec-am install-info install-info-am install-man \
install-strip installcheck installcheck-am installdirs \
maintainer-clean maintainer-clean-generic mostlyclean \
mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
pdf pdf-am ps ps-am tags uninstall uninstall-am \
uninstall-info-am
# Say $(srcdir), so GNU make does not report an ambiguity with the .y.c rule.

View file

@ -1,8 +1,8 @@
# Makefile.in generated by automake 1.9.2 from Makefile.am.
# Makefile.in generated by automake 1.9.6 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004 Free Software Foundation, Inc.
# 2003, 2004, 2005 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
@ -15,8 +15,6 @@
@SET_MAKE@
SOURCES = $(libevent_a_SOURCES)
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
@ -70,7 +68,7 @@ depcomp = $(SHELL) $(top_srcdir)/autotools/depcomp
am__depfiles_maybe = depfiles
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(CC) $(DEFS) \
LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
$(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)

12
lib/nxml/Makefile.am Normal file
View file

@ -0,0 +1,12 @@
noinst_LIBRARIES = libnxml.a
libnxml_a_SOURCES = nxml_download.c nxml_easy.c nxml_entity.c nxml_free.c nxml_namespace.c nxml_string.c nxml_utf.c nxml_dtd.c \
nxml_edit.c nxml_error.c nxml_init.c nxml_parser.c nxml_tools.c nxml_write.c
include_HEADERS = nxml.h
noinst_HEADERS = nxml_internal.h
INCLUDES = -I../curl/
EXTRA_DIST =
include $(top_srcdir)/autotools/rules.mk

617
lib/nxml/Makefile.in Normal file
View file

@ -0,0 +1,617 @@
# Makefile.in generated by automake 1.9.6 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004, 2005 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
@SET_MAKE@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
pkgdatadir = $(datadir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
top_builddir = ../..
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
INSTALL = @INSTALL@
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_triplet = @build@
host_triplet = @host@
DIST_COMMON = $(include_HEADERS) $(noinst_HEADERS) \
$(srcdir)/Makefile.am $(srcdir)/Makefile.in \
$(top_srcdir)/autotools/rules.mk
subdir = lib/nxml
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/autotools/acinclude.m4 \
$(top_srcdir)/autotools/ax_compare_version.m4 \
$(top_srcdir)/autotools/ax_maintainer_mode_auto_silent.m4 \
$(top_srcdir)/autotools/ax_path_bdb.m4 \
$(top_srcdir)/autotools/ax_path_lib_curl.m4 \
$(top_srcdir)/autotools/ax_path_lib_pcre.m4 \
$(top_srcdir)/autotools/ccdv.m4 \
$(top_srcdir)/autotools/libevent.m4 $(top_srcdir)/configure.in
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
mkinstalldirs = $(SHELL) $(top_srcdir)/autotools/mkinstalldirs
CONFIG_HEADER = $(top_builddir)/include/config.h
CONFIG_CLEAN_FILES =
LIBRARIES = $(noinst_LIBRARIES)
ARFLAGS = cru
libnxml_a_AR = $(AR) $(ARFLAGS)
libnxml_a_LIBADD =
am_libnxml_a_OBJECTS = nxml_download.$(OBJEXT) nxml_easy.$(OBJEXT) \
nxml_entity.$(OBJEXT) nxml_free.$(OBJEXT) \
nxml_namespace.$(OBJEXT) nxml_string.$(OBJEXT) \
nxml_utf.$(OBJEXT) nxml_dtd.$(OBJEXT) nxml_edit.$(OBJEXT) \
nxml_error.$(OBJEXT) nxml_init.$(OBJEXT) nxml_parser.$(OBJEXT) \
nxml_tools.$(OBJEXT) nxml_write.$(OBJEXT)
libnxml_a_OBJECTS = $(am_libnxml_a_OBJECTS)
DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/include
depcomp = $(SHELL) $(top_srcdir)/autotools/depcomp
am__depfiles_maybe = depfiles
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
$(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)
SOURCES = $(libnxml_a_SOURCES)
DIST_SOURCES = $(libnxml_a_SOURCES)
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
am__vpath_adj = case $$p in \
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
*) f=$$p;; \
esac;
am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
am__installdirs = "$(DESTDIR)$(includedir)"
includeHEADERS_INSTALL = $(INSTALL_HEADER)
HEADERS = $(include_HEADERS) $(noinst_HEADERS)
ETAGS = etags
CTAGS = ctags
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
pkglibdir = $(prefix)/modules
ACLOCAL = @ACLOCAL@
AMDEP_FALSE = @AMDEP_FALSE@
AMDEP_TRUE = @AMDEP_TRUE@
AMTAR = @AMTAR@
AR = @AR@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
BDB_CPPFLAGS = @BDB_CPPFLAGS@
BDB_LDFLAGS = @BDB_LDFLAGS@
BDB_LIBS = @BDB_LIBS@
BUILD_CURL_FALSE = @BUILD_CURL_FALSE@
BUILD_CURL_TRUE = @BUILD_CURL_TRUE@
BUILD_PCRE_FALSE = @BUILD_PCRE_FALSE@
BUILD_PCRE_TRUE = @BUILD_PCRE_TRUE@
CC = @CC@
CCDEPMODE = @CCDEPMODE@
CCDV = @CCDV@
CFLAGS = @CFLAGS@
CPP = @CPP@
CPPFLAGS = @CPPFLAGS@
CURL_CFLAGS = @CURL_CFLAGS@
CURL_LIBS = @CURL_LIBS@
CXX = @CXX@
CXXCPP = @CXXCPP@
CXXDEPMODE = @CXXDEPMODE@
CXXFLAGS = @CXXFLAGS@
CYGPATH_W = @CYGPATH_W@
DEFS = @DEFS@
DEPDIR = @DEPDIR@
DO_BDB_FALSE = @DO_BDB_FALSE@
DO_BDB_TRUE = @DO_BDB_TRUE@
DO_PERL_FALSE = @DO_PERL_FALSE@
DO_PERL_TRUE = @DO_PERL_TRUE@
ECHO = @ECHO@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
EGREP = @EGREP@
EVNTLIBOBJS = @EVNTLIBOBJS@
EXEEXT = @EXEEXT@
F77 = @F77@
FFLAGS = @FFLAGS@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
LDFLAGS = @LDFLAGS@
LEX = @LEX@
LEXLIB = @LEXLIB@
LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
LIBDB = @LIBDB@
LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LIBTOOL = @LIBTOOL@
LIBTOOL_DEPS = @LIBTOOL_DEPS@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
MAINT = @MAINT@
MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
MAKEINFO = @MAKEINFO@
MODULES = @MODULES@
OBJEXT = @OBJEXT@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
PCRE_CFLAGS = @PCRE_CFLAGS@
PCRE_LIBS = @PCRE_LIBS@
PERL_CFLAGS = @PERL_CFLAGS@
PERL_LDFLAGS = @PERL_LDFLAGS@
POW_LIB = @POW_LIB@
PROTOCOL = @PROTOCOL@
RANLIB = @RANLIB@
RDYNAMIC_FLAG = @RDYNAMIC_FLAG@
SED = @SED@
SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
STRIP = @STRIP@
USECCDV = @USECCDV@
VERSION = @VERSION@
YACC = @YACC@
ac_ct_AR = @ac_ct_AR@
ac_ct_CC = @ac_ct_CC@
ac_ct_CXX = @ac_ct_CXX@
ac_ct_F77 = @ac_ct_F77@
ac_ct_RANLIB = @ac_ct_RANLIB@
ac_ct_STRIP = @ac_ct_STRIP@
am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
am__include = @am__include@
am__leading_dot = @am__leading_dot@
am__quote = @am__quote@
am__tar = @am__tar@
am__untar = @am__untar@
bindir = @bindir@
build = @build@
build_alias = @build_alias@
build_cpu = @build_cpu@
build_os = @build_os@
build_vendor = @build_vendor@
datadir = $(prefix)/data
exec_prefix = @exec_prefix@
host = @host@
host_alias = @host_alias@
host_cpu = @host_cpu@
host_os = @host_os@
host_vendor = @host_vendor@
includedir = @includedir@
infodir = @infodir@
install_sh = @install_sh@
libdir = @libdir@
libexecdir = @libexecdir@
localstatedir = @localstatedir@
mandir = @mandir@
mkdir_p = @mkdir_p@
oldincludedir = @oldincludedir@
perlpath = @perlpath@
prefix = @prefix@
program_transform_name = @program_transform_name@
sbindir = @sbindir@
sedpath = @sedpath@
sharedstatedir = @sharedstatedir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
unamepath = @unamepath@
wi_PWD = @wi_PWD@
noinst_LIBRARIES = libnxml.a
libnxml_a_SOURCES = nxml_download.c nxml_easy.c nxml_entity.c nxml_free.c nxml_namespace.c nxml_string.c nxml_utf.c nxml_dtd.c \
nxml_edit.c nxml_error.c nxml_init.c nxml_parser.c nxml_tools.c nxml_write.c
include_HEADERS = nxml.h
noinst_HEADERS = nxml_internal.h
INCLUDES = -I../curl/
EXTRA_DIST =
LINK = $(LIBTOOL) --tag=CXX --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
$(AM_LDFLAGS) $(LDFLAGS) -o $@
docdir = $(prefix)/doc
all: all-am
.SUFFIXES:
.SUFFIXES: .c .lo .o .obj
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/autotools/rules.mk $(am__configure_deps)
@for dep in $?; do \
case '$(am__configure_deps)' in \
*$$dep*) \
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
&& exit 0; \
exit 1;; \
esac; \
done; \
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu lib/nxml/Makefile'; \
cd $(top_srcdir) && \
$(AUTOMAKE) --gnu lib/nxml/Makefile
.PRECIOUS: Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
@case '$?' in \
*config.status*) \
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
*) \
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
esac;
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
clean-noinstLIBRARIES:
-test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
libnxml.a: $(libnxml_a_OBJECTS) $(libnxml_a_DEPENDENCIES)
-rm -f libnxml.a
$(libnxml_a_AR) libnxml.a $(libnxml_a_OBJECTS) $(libnxml_a_LIBADD)
$(RANLIB) libnxml.a
mostlyclean-compile:
-rm -f *.$(OBJEXT)
distclean-compile:
-rm -f *.tab.c
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nxml_download.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nxml_dtd.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nxml_easy.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nxml_edit.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nxml_entity.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nxml_error.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nxml_free.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nxml_init.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nxml_namespace.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nxml_parser.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nxml_string.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nxml_tools.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nxml_utf.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nxml_write.Po@am__quote@
mostlyclean-libtool:
-rm -f *.lo
clean-libtool:
-rm -rf .libs _libs
distclean-libtool:
-rm -f libtool
uninstall-info-am:
uninstall-includeHEADERS:
@$(NORMAL_UNINSTALL)
@list='$(include_HEADERS)'; for p in $$list; do \
f=$(am__strip_dir) \
echo " rm -f '$(DESTDIR)$(includedir)/$$f'"; \
rm -f "$(DESTDIR)$(includedir)/$$f"; \
done
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
mkid -fID $$unique
tags: TAGS
TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
tags=; \
here=`pwd`; \
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
test -n "$$unique" || unique=$$empty_fix; \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
$$tags $$unique; \
fi
ctags: CTAGS
CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
tags=; \
here=`pwd`; \
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
test -z "$(CTAGS_ARGS)$$tags$$unique" \
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
$$tags $$unique
GTAGS:
here=`$(am__cd) $(top_builddir) && pwd` \
&& cd $(top_srcdir) \
&& gtags -i $(GTAGS_ARGS) $$here
distclean-tags:
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
distdir: $(DISTFILES)
$(mkdir_p) $(distdir)/../../autotools
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
list='$(DISTFILES)'; for file in $$list; do \
case $$file in \
$(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
$(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
esac; \
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
dir="/$$dir"; \
$(mkdir_p) "$(distdir)$$dir"; \
else \
dir=''; \
fi; \
if test -d $$d/$$file; then \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
fi; \
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
else \
test -f $(distdir)/$$file \
|| cp -p $$d/$$file $(distdir)/$$file \
|| exit 1; \
fi; \
done
check-am: all-am
check: check-am
all-am: Makefile $(LIBRARIES) $(HEADERS)
installdirs:
for dir in "$(DESTDIR)$(includedir)"; do \
test -z "$$dir" || $(mkdir_p) "$$dir"; \
done
install: install-am
install-exec: install-exec-am
install-data: install-data-am
uninstall: uninstall-am
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
installcheck: installcheck-am
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
`test -z '$(STRIP)' || \
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
mostlyclean-generic:
clean-generic:
distclean-generic:
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
clean: clean-am
clean-am: clean-generic clean-libtool clean-noinstLIBRARIES \
mostlyclean-am
distclean: distclean-am
-rm -rf ./$(DEPDIR)
-rm -f Makefile
distclean-am: clean-am distclean-compile distclean-generic \
distclean-libtool distclean-tags
dvi: dvi-am
dvi-am:
html: html-am
info: info-am
info-am:
install-data-am: install-includeHEADERS
install-exec-am:
install-info: install-info-am
install-man:
installcheck-am:
maintainer-clean: maintainer-clean-am
-rm -rf ./$(DEPDIR)
-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-am
mostlyclean-am: mostlyclean-compile mostlyclean-generic \
mostlyclean-libtool
pdf: pdf-am
pdf-am:
ps: ps-am
ps-am:
uninstall-am: uninstall-includeHEADERS uninstall-info-am
.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
clean-libtool clean-noinstLIBRARIES ctags distclean \
distclean-compile distclean-generic distclean-libtool \
distclean-tags distdir dvi dvi-am html html-am info info-am \
install install-am install-data install-data-am install-exec \
install-exec-am install-includeHEADERS install-info \
install-info-am install-man install-strip installcheck \
installcheck-am installdirs maintainer-clean \
maintainer-clean-generic mostlyclean mostlyclean-compile \
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
tags uninstall uninstall-am uninstall-includeHEADERS \
uninstall-info-am
.c.o:
@USECCDV@ @echo "Building $@"
@am__fastdepCC_TRUE@ @if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
@am__fastdepCC_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \
@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
@am__fastdepCC_TRUE@ fi
@AMDEP_TRUE@@am__fastdepCC_FALSE@ @source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(COMPILE) -c `test -f '$<' || echo '$(srcdir)/'`$<
.c.obj:
@USECCDV@ @echo "Building $@"
@am__fastdepCC_TRUE@ @if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
@am__fastdepCC_TRUE@ -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`; \
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \
@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
@am__fastdepCC_TRUE@ fi
@AMDEP_TRUE@@am__fastdepCC_FALSE@ @source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(LTCOMPILE) -c `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`
.c.lo:
@USECCDV@ @echo "Building $@"
@am__fastdepCC_TRUE@ @if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
@am__fastdepCC_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; \
@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
@am__fastdepCC_TRUE@ fi
@AMDEP_TRUE@@am__fastdepCC_FALSE@ @source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<
install-pkglibLTLIBRARIES: $(pkglib_LTLIBRARIES)
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(pkglibdir)
@list='ls .libs/*.so'; for p in $$list; do \
if test -f $$p; then \
f="`echo $$p | sed -e 's|^.*/||'`"; \
$(CCDV) $(LIBTOOL) --mode=install $(pkglibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(pkglibdir)/$$f; \
if test "x#" != "x@USECCDV@"; then echo "Installing $$f"; fi; \
else :; fi; \
done
install-binSCRIPTS: $(bin_SCRIPTS)
@$(NORMAL_INSTALL)
test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
@list='$(bin_SCRIPTS)'; for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
if test -f $$d$$p; then \
f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
$(CCDV) $(binSCRIPT_INSTALL) "$$d$$p" "$(DESTDIR)$(bindir)/$$f"; \
if test "x#" != "x@USECCDV@"; then echo "Installing $$f"; fi; \
else :; fi; \
done
install-dist_binSCRIPTS: $(dist_bin_SCRIPTS)
@$(NORMAL_INSTALL)
test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
@list='$(dist_bin_SCRIPTS)'; for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
if test -f $$d$$p; then \
f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
$(CCDV) $(dist_binSCRIPT_INSTALL) "$$d$$p" "$(DESTDIR)$(bindir)/$$f"; \
if test "x#" != "x@USECCDV@"; then echo "Installing $$f"; fi; \
else :; fi; \
done
install-dist_dataDATA: $(dist_data_DATA)
@$(NORMAL_INSTALL)
test -z "$(datadir)" || $(mkdir_p) "$(DESTDIR)$(datadir)"
@list='$(dist_data_DATA)'; for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
f=$(am__strip_dir) \
$(CCDV) $(dist_dataDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(datadir)/$$f"; \
if test "x#" != "x@USECCDV@"; then echo "Installing $$f"; fi; \
done
install-dist_docDATA: $(dist_doc_DATA)
@$(NORMAL_INSTALL)
test -z "$(docdir)" || $(mkdir_p) "$(DESTDIR)$(docdir)"
@list='$(dist_doc_DATA)'; for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
f=$(am__strip_dir) \
$(CCDV) $(dist_docDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(docdir)/$$f"; \
if test "x#" != "x@USECCDV@"; then echo "Installing $$f"; fi; \
done
install-includeHEADERS: $(include_HEADERS)
@$(NORMAL_INSTALL)
test -z "$(includedir)" || $(mkdir_p) "$(DESTDIR)$(includedir)"
@list='$(include_HEADERS)'; for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
f=$(am__strip_dir) \
$(CCDV) $(includeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(includedir)/$$f"; \
if test "x#" != "x@USECCDV@"; then echo "Installing $$f"; fi; \
done
install-binPROGRAMS: $(bin_PROGRAMS)
@$(NORMAL_INSTALL)
test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
@list='$(bin_PROGRAMS)'; for p in $$list; do \
p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
if test -f $$p \
|| test -f $$p1 \
; then \
f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
$(CCDV) $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
if test "x#" != "x@USECCDV@"; then echo "Installing $$f"; fi; \
else :; fi; \
done
install-libLTLIBRARIES: $(lib_LTLIBRARIES)
@$(NORMAL_INSTALL)
test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
if test -f $$p; then \
f=$(am__strip_dir) \
$(CCDV) $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
if test "x#" != "x@USECCDV@"; then echo "Installing $$f"; fi; \
else :; fi; \
done
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

1049
lib/nxml/nxml.h Normal file

File diff suppressed because it is too large Load diff

94
lib/nxml/nxml_download.c Normal file
View file

@ -0,0 +1,94 @@
/* nXml - Copyright (C) 2005 bakunin - Andrea Marchesini
* <bakunin@autistici.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#else
# error Use configure; make; make install
#endif
#include "nxml.h"
#include "nxml_internal.h"
static size_t
__nxml_memorize_file (void *ptr, size_t size, size_t nmemb, void *data)
{
register int realsize = size * nmemb;
__nxml_download_t *mem = (__nxml_download_t *) data;
if (!mem->mm)
{
if (!(mem->mm = (char *) malloc (realsize + 1)))
return -1;
}
else
{
if (!(mem->mm = (char *) realloc (mem->mm, mem->size + realsize + 1)))
return -1;
}
memcpy (&(mem->mm[mem->size]), ptr, realsize);
mem->size += realsize;
mem->mm[mem->size] = 0;
return realsize;
}
__nxml_download_t *
__nxml_download_file (nxml_t * nxml, char *fl)
{
__nxml_download_t *chunk;
CURL *curl;
if (!(chunk = (__nxml_download_t *) malloc (sizeof (__nxml_download_t))))
return NULL;
chunk->mm = NULL;
chunk->size = 0;
curl_global_init (CURL_GLOBAL_DEFAULT);
if (!(curl = curl_easy_init ()))
{
free (chunk);
return NULL;
}
curl_easy_setopt (curl, CURLOPT_URL, fl);
curl_easy_setopt (curl, CURLOPT_WRITEFUNCTION, __nxml_memorize_file);
curl_easy_setopt (curl, CURLOPT_FOLLOWLOCATION, 1);
curl_easy_setopt (curl, CURLOPT_FILE, (void *) chunk);
if (nxml->priv.timeout)
curl_easy_setopt (curl, CURLOPT_TIMEOUT, nxml->priv.timeout);
if (curl_easy_perform (curl))
{
if (chunk->mm)
free (chunk->mm);
free (chunk);
curl_easy_cleanup (curl);
return NULL;
}
curl_easy_cleanup (curl);
return chunk;
}
/* EOF */

2430
lib/nxml/nxml_dtd.c Normal file

File diff suppressed because it is too large Load diff

400
lib/nxml/nxml_easy.c Normal file
View file

@ -0,0 +1,400 @@
/* nXml - Copyright (C) 2005 bakunin - Andrea Marchesini
* <bakunin@autistici.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#else
# error Use configure; make; make install
#endif
#include "nxml.h"
#include "nxml_internal.h"
nxml_t *
nxmle_new_data (nxml_error_t * err)
{
nxml_t *data = NULL;
nxml_error_t ret;
ret = nxml_new (&data);
if (err)
*err = ret;
if (ret != NXML_OK)
return NULL;
return data;
}
nxml_t *
nxmle_new_data_from_url (char *url, nxml_error_t * err)
{
nxml_t *data = NULL;
nxml_error_t ret;
ret = nxml_new (&data);
if (err)
*err = ret;
if (ret != NXML_OK)
return NULL;
nxml_set_func (data, nxml_print_generic);
ret = nxml_parse_url (data, url);
if (err)
*err = ret;
if (ret != NXML_OK)
{
nxml_free (data);
return NULL;
}
return data;
}
nxml_t *
nxmle_new_data_from_file (char *file, nxml_error_t * err)
{
nxml_t *data = NULL;
nxml_error_t ret;
ret = nxml_new (&data);
if (err)
*err = ret;
if (ret != NXML_OK)
return NULL;
nxml_set_func (data, nxml_print_generic);
ret = nxml_parse_file (data, file);
if (err)
*err = ret;
if (ret != NXML_OK)
{
nxml_free (data);
return NULL;
}
return data;
}
nxml_t *
nxmle_new_data_from_buffer (char *buffer, size_t size, nxml_error_t * err)
{
nxml_t *data = NULL;
nxml_error_t ret;
ret = nxml_new (&data);
if (err)
*err = ret;
if (ret != NXML_OK)
return NULL;
nxml_set_func (data, nxml_print_generic);
ret = nxml_parse_buffer (data, buffer, size);
if (err)
*err = ret;
if (ret != NXML_OK)
{
nxml_free (data);
return NULL;
}
return data;
}
nxml_data_t *
nxmle_add_new (nxml_t * nxml, nxml_data_t * parent, nxml_error_t * err)
{
nxml_error_t ret;
nxml_data_t *child = NULL;
ret = nxml_add (nxml, parent, &child);
if (err)
*err = ret;
if (ret != NXML_OK)
return NULL;
return child;
}
nxml_data_t *
nxmle_add_data (nxml_t * nxml, nxml_data_t * parent, nxml_data_t * child,
nxml_error_t * err)
{
nxml_error_t ret;
if (!child)
{
if (err)
*err = NXML_ERR_DATA;
return NULL;
}
ret = nxml_add (nxml, parent, &child);
if (err)
*err = ret;
if (ret != NXML_OK)
return NULL;
return child;
}
nxml_attr_t *
nxmle_add_attribute_new (nxml_t * nxml, nxml_data_t * element,
nxml_error_t * err)
{
nxml_error_t ret;
nxml_attr_t *attribute = NULL;
ret = nxml_add_attribute (nxml, element, &attribute);
if (err)
*err = ret;
if (ret != NXML_OK)
return NULL;
return attribute;
}
nxml_attr_t *
nxmle_add_attribute_data (nxml_t * nxml, nxml_data_t * element,
nxml_attr_t * attribute, nxml_error_t * err)
{
nxml_error_t ret;
if (!attribute)
{
if (err)
*err = NXML_ERR_DATA;
return NULL;
}
ret = nxml_add_attribute (nxml, element, &attribute);
if (err)
*err = ret;
if (ret != NXML_OK)
return NULL;
return attribute;
}
nxml_namespace_t *
nxmle_add_namespace_new (nxml_t * nxml, nxml_data_t * element,
nxml_error_t * err)
{
nxml_error_t ret;
nxml_namespace_t *namespace = NULL;
ret = nxml_add_namespace (nxml, element, &namespace);
if (err)
*err = ret;
if (ret != NXML_OK)
return NULL;
return namespace;
}
nxml_namespace_t *
nxmle_add_namespace_data (nxml_t * nxml, nxml_data_t * element,
nxml_namespace_t * namespace, nxml_error_t * err)
{
nxml_error_t ret;
if (!namespace)
{
if (err)
*err = NXML_ERR_DATA;
return NULL;
}
ret = nxml_add_namespace (nxml, element, &namespace);
if (err)
*err = ret;
if (ret != NXML_OK)
return NULL;
return namespace;
}
nxml_data_t *
nxmle_root_element (nxml_t * nxml, nxml_error_t * err)
{
nxml_data_t *root;
nxml_error_t ret;
ret = nxml_root_element (nxml, &root);
if (err)
*err = ret;
if (ret != NXML_OK)
return NULL;
return root;
}
nxml_doctype_t *
nxmle_doctype_element (nxml_t * nxml, nxml_error_t * err)
{
nxml_doctype_t *doctype;
nxml_error_t ret;
ret = nxml_doctype_element (nxml, &doctype);
if (err)
*err = ret;
if (ret != NXML_OK)
return NULL;
return doctype;
}
nxml_data_t *
nxmle_find_element (nxml_t * nxml, nxml_data_t * data, char *name,
nxml_error_t * err)
{
nxml_data_t *element;
nxml_error_t ret;
ret = nxml_find_element (nxml, data, name, &element);
if (err)
*err = ret;
if (ret != NXML_OK)
return NULL;
return element;
}
char *
nxmle_find_attribute (nxml_data_t * data, char *name, nxml_error_t * err)
{
nxml_attr_t *attribute;
nxml_error_t ret;
char *str;
ret = nxml_find_attribute (data, name, &attribute);
if (err)
*err = ret;
if (ret != NXML_OK)
return NULL;
if (!attribute)
return NULL;
str = strdup (attribute->value);
if (!str)
{
if (err)
*err = NXML_ERR_POSIX;
return NULL;
}
return str;
}
char *
nxmle_find_namespace (nxml_data_t * data, char *name, nxml_error_t * err)
{
nxml_namespace_t *namespace;
nxml_error_t ret;
char *str;
ret = nxml_find_namespace (data, name, &namespace);
if (err)
*err = ret;
if (ret != NXML_OK)
return NULL;
if (!namespace)
return NULL;
str = strdup (namespace->ns);
if (!str)
{
if (err)
*err = NXML_ERR_POSIX;
return NULL;
}
return str;
}
char *
nxmle_get_string (nxml_data_t * data, nxml_error_t * err)
{
nxml_error_t ret;
char *str = NULL;
ret = nxml_get_string (data, &str);
if (err)
*err = ret;
if (ret != NXML_OK)
return NULL;
return str;
}
char *
nxmle_write_buffer (nxml_t * nxml, nxml_error_t * err)
{
char *buffer;
nxml_error_t ret;
buffer = NULL;
ret = nxml_write_buffer (nxml, &buffer);
if (err)
*err = ret;
if (ret != NXML_OK)
return NULL;
return buffer;
}
int
nxmle_line_error (nxml_t * nxml, nxml_error_t * err)
{
int line;
nxml_error_t ret;
ret = nxml_line_error (nxml, &line);
if (err)
*err = ret;
return line;
}
/* EOF */

192
lib/nxml/nxml_edit.c Normal file
View file

@ -0,0 +1,192 @@
/* nXml - Copyright (C) 2005 bakunin - Andrea Marchesini
* <bakunin@autistici.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#else
# error Use configure; make; make install
#endif
#include "nxml.h"
#include "nxml_internal.h"
nxml_error_t
nxml_root_element (nxml_t * nxml, nxml_data_t ** data)
{
nxml_data_t *tmp;
if (!data || !nxml)
return NXML_ERR_DATA;
tmp = nxml->data;
while (tmp)
{
if (tmp->type == NXML_TYPE_ELEMENT)
break;
tmp = tmp->next;
}
*data = tmp;
return NXML_OK;
}
nxml_error_t
nxml_doctype_element (nxml_t * nxml, nxml_doctype_t ** data)
{
if (!data || !nxml)
return NXML_ERR_DATA;
*data = nxml->doctype;
return NXML_OK;
}
nxml_error_t
nxml_get_string (nxml_data_t * data, char **string)
{
if (!data || !string)
return NXML_ERR_DATA;
if (data->type == NXML_TYPE_TEXT)
*string = strdup (data->value);
else if (data->type == NXML_TYPE_ELEMENT)
{
nxml_data_t *tmp;
tmp = data->children;
*string = NULL;
while (tmp)
{
if (tmp->type == NXML_TYPE_TEXT)
{
*string = strdup (tmp->value);
break;
}
tmp = tmp->next;
}
}
else
*string = NULL;
return NXML_OK;
}
nxml_error_t
nxml_find_element (nxml_t * nxml, nxml_data_t * data, char *name,
nxml_data_t ** element)
{
nxml_data_t *tmp;
if (!nxml || !name || !element)
return NXML_ERR_DATA;
if (data && data->type != NXML_TYPE_ELEMENT)
{
*element = NULL;
return NXML_OK;
}
if (data)
tmp = data->children;
else
tmp = nxml->data;
while (tmp)
{
if (tmp->type == NXML_TYPE_ELEMENT && !strcmp (tmp->value, name))
{
*element = tmp;
return NXML_OK;
}
tmp = tmp->next;
}
*element = NULL;
return NXML_OK;
}
nxml_error_t
nxml_find_attribute (nxml_data_t * data, char *name, nxml_attr_t ** attribute)
{
nxml_attr_t *tmp;
if (!data || !name || !attribute)
return NXML_ERR_DATA;
if (data->type != NXML_TYPE_ELEMENT)
{
*attribute = NULL;
return NXML_OK;
}
tmp = data->attributes;
while (tmp)
{
if (!strcmp (tmp->name, name))
{
*attribute = tmp;
return NXML_OK;
}
tmp = tmp->next;
}
*attribute = NULL;
return NXML_OK;
}
nxml_error_t
nxml_find_namespace (nxml_data_t * data, char *name,
nxml_namespace_t ** namespace)
{
nxml_namespace_t *tmp;
if (!data || !name || !namespace)
return NXML_ERR_DATA;
if (data->type != NXML_TYPE_ELEMENT)
{
*namespace = NULL;
return NXML_OK;
}
tmp = data->ns_list;
while (tmp)
{
if (!strcmp (tmp->ns, name))
{
*namespace = tmp;
return NXML_OK;
}
tmp = tmp->next;
}
*namespace = NULL;
return NXML_OK;
}
/* EOF */

106
lib/nxml/nxml_entity.c Normal file
View file

@ -0,0 +1,106 @@
/* nXml - Copyright (C) 2005 bakunin - Andrea Marchesini
* <bakunin@autistici.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#else
# error Use configure; make; make install
#endif
#include "nxml.h"
#include "nxml_internal.h"
static void
__nxml_entity_doctype (nxml_t * nxml, nxml_namespace_t * ns)
{
char *str;
while (ns)
{
if (ns->prefix && (str = __nxml_entity_trim (nxml, ns->prefix)))
{
free (ns->prefix);
ns->prefix = str;
}
if (ns->ns && (str = __nxml_entity_trim (nxml, ns->ns)))
{
free (ns->ns);
ns->ns = str;
}
ns = ns->next;
}
}
static void
__nxml_entity_rec (nxml_t * nxml, nxml_data_t * e)
{
char *str;
nxml_attr_t *attr;
if (e->value && (str = __nxml_entity_trim (nxml, e->value)))
{
free (e->value);
e->value = str;
}
attr = e->attributes;
while (attr)
{
if (attr->name && (str = __nxml_entity_trim (nxml, attr->name)))
{
free (attr->name);
attr->name = str;
}
if (attr->value && (str = __nxml_entity_trim (nxml, attr->value)))
{
free (attr->value);
attr->value = str;
}
attr = attr->next;
}
if (e->ns_list)
__nxml_entity_doctype (nxml, e->ns_list);
e = e->children;
while (e)
{
__nxml_entity_rec (nxml, e);
e = e->next;
}
}
void
__nxml_entity_parse (nxml_t * nxml)
{
nxml_data_t *e;
e = nxml->data;
while (e)
{
__nxml_entity_rec (nxml, e);
e = e->next;
}
}
/* EOF */

58
lib/nxml/nxml_error.c Normal file
View file

@ -0,0 +1,58 @@
/* nXml - Copyright (C) 2005 bakunin - Andrea Marchesini
* <bakunin@autistici.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#else
# error Use configure; make; make install
#endif
#include "nxml.h"
#include "nxml_internal.h"
char *
nxml_strerror (nxml_error_t err)
{
switch (err)
{
case NXML_OK:
return "Success";
case NXML_ERR_PARSER:
return "Parser error";
case NXML_ERR_DATA:
return "No correct paramenter in the function";
default:
return strerror (errno);
}
}
nxml_error_t
nxml_line_error (nxml_t * nxml, int *line)
{
if (!nxml || !line)
return NXML_ERR_DATA;
*line = nxml->priv.line;
return NXML_OK;
}
/* EOF */

208
lib/nxml/nxml_free.c Normal file
View file

@ -0,0 +1,208 @@
/* nXml - Copyright (C) 2005 bakunin - Andrea Marchesini
* <bakunin@autistici.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#else
# error Use configure; make; make install
#endif
#include "nxml.h"
#include "nxml_internal.h"
nxml_error_t
nxml_free_data (nxml_data_t * data)
{
nxml_namespace_t *namespace;
nxml_attr_t *attr;
nxml_data_t *tmp;
void *old;
if (!data)
return NXML_ERR_DATA;
if (data->value)
free (data->value);
namespace = data->ns_list;
while (namespace)
{
old = namespace;
namespace = namespace->next;
nxml_free_namespace (old);
}
attr = data->attributes;
while (attr)
{
old = attr;
attr = attr->next;
nxml_free_attribute (old);
}
tmp = data->children;
while (tmp)
{
old = tmp;
tmp = tmp->next;
nxml_free_data (old);
}
free (data);
return NXML_OK;
}
nxml_error_t
nxml_free_attribute (nxml_attr_t * t)
{
if (!t)
return NXML_ERR_DATA;
if (t->name)
free (t->name);
if (t->value)
free (t->value);
free (t);
return NXML_OK;
}
nxml_error_t
nxml_free_namespace (nxml_namespace_t * t)
{
if (!t)
return NXML_ERR_DATA;
if (t->prefix)
free (t->prefix);
if (t->ns)
free (t->ns);
free (t);
return NXML_OK;
}
nxml_error_t
nxml_free_doctype (nxml_doctype_t * doctype)
{
nxml_doctype_t *tmp;
if (!doctype)
return NXML_ERR_DATA;
while (doctype)
{
nxml_empty_doctype (doctype);
if (doctype->value)
free (doctype->value);
if (doctype->name)
free (doctype->name);
tmp = doctype;
doctype = doctype->next;
free (tmp);
}
return NXML_OK;
}
nxml_error_t
nxml_empty_doctype (nxml_doctype_t * doctype)
{
if (!doctype)
return NXML_ERR_DATA;
while (doctype)
{
if (doctype->system_literal)
{
free (doctype->system_literal);
doctype->system_literal = NULL;
}
if (doctype->pubid_literal)
{
free (doctype->pubid_literal);
doctype->pubid_literal = NULL;
}
doctype = doctype->next;
}
return NXML_OK;
}
nxml_error_t
nxml_free (nxml_t * data)
{
if (!data)
return NXML_ERR_DATA;
nxml_empty (data);
free (data);
return NXML_OK;
}
nxml_error_t
nxml_empty (nxml_t * data)
{
nxml_data_t *t, *old;
__nxml_private_t priv;
if (!data)
return NXML_ERR_DATA;
if (data->file)
free (data->file);
if (data->encoding)
free (data->encoding);
/* I must free the doctype, I must not empty only! */
if (data->doctype)
nxml_free_doctype (data->doctype);
t = data->data;
while (t)
{
old = t;
t = t->next;
nxml_free_data (old);
}
memcpy (&priv, &data->priv, sizeof (__nxml_private_t));
memset (data, 0, sizeof (nxml_t));
memcpy (&data->priv, &priv, sizeof (__nxml_private_t));
return NXML_OK;
}
/* EOF */

322
lib/nxml/nxml_init.c Normal file
View file

@ -0,0 +1,322 @@
/* nXml - Copyright (C) 2005 bakunin - Andrea Marchesini
* <bakunin@autistici.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#else
# error Use configure; make; make install
#endif
#include "nxml.h"
#include "nxml_internal.h"
nxml_error_t
nxml_new (nxml_t ** nxml)
{
if (!nxml)
return NXML_ERR_DATA;
if (!(*nxml = (nxml_t *) malloc (sizeof (nxml_t))))
return NXML_ERR_POSIX;
memset (*nxml, 0, sizeof (nxml_t));
return NXML_OK;
}
static void
nxml_add_rec (nxml_t * nxml, nxml_data_t * data)
{
while (data)
{
data->doc = nxml;
if (data->children)
nxml_add_rec (nxml, data->children);
data = data->next;
}
}
nxml_error_t
nxml_add (nxml_t * nxml, nxml_data_t * parent, nxml_data_t ** child)
{
nxml_data_t *tmp;
if (!nxml || !child)
return NXML_ERR_DATA;
if (!*child)
{
if (!(*child = (nxml_data_t *) malloc (sizeof (nxml_data_t))))
return NXML_ERR_POSIX;
memset (*child, 0, sizeof (nxml_data_t));
}
(*child)->doc = nxml;
(*child)->parent = parent;
(*child)->next = NULL;
if (parent)
{
if (!parent->children)
parent->children = *child;
else
{
tmp = parent->children;
while (tmp->next)
tmp = tmp->next;
tmp->next = *child;
}
}
else
{
if (!nxml->data)
nxml->data = *child;
else
{
tmp = nxml->data;
while (tmp->next)
tmp = tmp->next;
tmp->next = *child;
}
}
nxml_add_rec (nxml, (*child)->children);
return NXML_OK;
}
nxml_error_t
nxml_remove (nxml_t * nxml, nxml_data_t * parent, nxml_data_t * child)
{
nxml_data_t *tmp, *old;
if (!nxml || !child)
return NXML_ERR_DATA;
if (parent)
tmp = parent->children;
else
tmp = nxml->data;
old = NULL;
while (tmp)
{
if (tmp == child)
{
if (old)
old->next = child->next;
else if (parent)
parent->children = child->next;
else
nxml->data = child->next;
break;
}
old = tmp;
tmp = tmp->next;
}
child->next = NULL;
return NXML_OK;
}
nxml_error_t
nxml_add_attribute (nxml_t * nxml, nxml_data_t * element, nxml_attr_t ** attr)
{
nxml_attr_t *tmp;
if (!nxml || !element || !attr)
return NXML_ERR_DATA;
if (!*attr)
{
if (!(*attr = (nxml_attr_t *) malloc (sizeof (nxml_attr_t))))
return NXML_ERR_POSIX;
memset (*attr, 0, sizeof (nxml_attr_t));
}
(*attr)->next = NULL;
if (!element->attributes)
element->attributes = *attr;
else
{
tmp = element->attributes;
while (tmp->next)
tmp = tmp->next;
tmp->next = *attr;
}
return NXML_OK;
}
nxml_error_t
nxml_remove_attribute (nxml_t * nxml, nxml_data_t * element,
nxml_attr_t * attr)
{
nxml_attr_t *tmp, *old;
if (!nxml || !element || !attr)
return NXML_ERR_DATA;
tmp = element->attributes;
old = NULL;
while (tmp)
{
if (tmp == attr)
{
if (old)
old->next = attr->next;
else
element->attributes = attr->next;
break;
}
old = tmp;
tmp = tmp->next;
}
attr->next = NULL;
return NXML_OK;
}
nxml_error_t
nxml_add_namespace (nxml_t * nxml, nxml_data_t * element,
nxml_namespace_t ** namespace)
{
nxml_namespace_t *tmp;
if (!nxml || !element || !namespace)
return NXML_ERR_DATA;
if (!*namespace)
{
if (!
(*namespace =
(nxml_namespace_t *) malloc (sizeof (nxml_namespace_t))))
return NXML_ERR_POSIX;
memset (*namespace, 0, sizeof (nxml_namespace_t));
}
(*namespace)->next = NULL;
if (!element->ns_list)
element->ns_list = *namespace;
else
{
tmp = element->ns_list;
while (tmp->next)
tmp = tmp->next;
tmp->next = *namespace;
}
return NXML_OK;
}
nxml_error_t
nxml_remove_namespace (nxml_t * nxml, nxml_data_t * element,
nxml_namespace_t * namespace)
{
nxml_namespace_t *tmp, *old;
if (!nxml || !element || !namespace)
return NXML_ERR_DATA;
tmp = element->ns_list;
old = NULL;
while (tmp)
{
if (tmp == namespace)
{
if (old)
old->next = namespace->next;
else
element->ns_list = namespace->next;
break;
}
old = tmp;
tmp = tmp->next;
}
namespace->next = NULL;
return NXML_OK;
}
nxml_error_t
nxml_set_func (nxml_t * nxml, void (*func) (char *, ...))
{
if (!nxml)
return NXML_ERR_DATA;
nxml->priv.func = func;
return NXML_OK;
}
nxml_error_t
nxml_set_timeout (nxml_t * nxml, int timeout)
{
if (!nxml)
return NXML_ERR_DATA;
nxml->priv.timeout = timeout;
return NXML_OK;
}
void
nxml_print_generic (char *str, ...)
{
va_list va;
va_start (va, str);
vfprintf (stderr, str, va);
va_end (va);
}
/* EOF */

127
lib/nxml/nxml_internal.h Normal file
View file

@ -0,0 +1,127 @@
/* nXml - Copyright (C) 2005 bakunin - Andrea Marchesini
* <bakunin@autistici.org>
*
* This source code is free software; you can redistribute it and/or
* modify it under the terms of the GNU Public License as published
* by the Free Software Foundation; either version 2 of the License,
* or (at your option) any later version.
*
* This source code is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* Please refer to the GNU Public License for more details.
*
* You should have received a copy of the GNU Public License along with
* this source code; if not, write to:
* Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef __N_XML_INTERNAL_H__
#define __N_XML_INTERNAL_H__
#include "nxml.h"
/* Rule [4] */
#define __NXML_NAMESTARTCHARS \
((ch=__NXML_U8()) == ':' \
|| (ch >= 'a' && ch <= 'z') \
|| ch=='_' \
|| (ch >= 'A' && ch <= 'Z') \
|| (ch >= 0xc0 && ch <= 0xd6) \
|| (ch >= 0xd8 && ch <= 0xf6) \
|| (ch >= 0xf8 && ch <= 0x2ff) \
|| (ch >= 0x370 && ch <= 0x37d) \
|| (ch >= 0x37f && ch <= 0x1fff) \
|| (ch >= 0x200c && ch <= 0x200d) \
|| (ch >= 0x2070 && ch <= 0x218f) \
|| (ch >= 0x2c00 && ch <= 0x2fef) \
|| (ch >= 0x3001 && ch <= 0xd7ff) \
|| (ch >= 0xf900 && ch <= 0xfdcf) \
|| (ch >= 0xfdf0 && ch <= 0xfffd) \
|| (ch >= 0x10000 && ch <= 0xeffff))
/* Rule [4a] */
#define __NXML_NAMECHARS \
(__NXML_NAMESTARTCHARS \
|| ch=='-' \
|| ch=='.' \
|| (ch >= '0' && ch <= '9') \
|| ch==0xb7 \
|| (ch >= 0x0300 && ch <= 0x036f) \
|| (ch >= 0x203f && ch <= 0x2040))
#define __NXML_U8() __nxml_utf8((unsigned char **)buffer, size, &byte)
typedef struct __nxml_download_t__ __nxml_download_t;
typedef struct __nxml_string_t__ __nxml_string_t;
/**
* \brief
* For internal use only
*/
struct __nxml_download_t__
{
char *mm;
size_t size;
};
__nxml_download_t * __nxml_download_file (nxml_t *nxml,
char *url);
int64_t __nxml_utf8 (unsigned char **buffer,
size_t *size,
int *byte);
int64_t __nxml_int_charset (int i,
unsigned char *buffer,
char *charset);
int __nxml_utf_detection (char *r_buffer,
size_t r_size,
char **buffer,
size_t *size,
nxml_charset_t *);
int __nxml_escape_spaces (nxml_t * doc,
char **buffer,
size_t * size);
char * __nxml_get_value (nxml_t * doc,
char **buffer,
size_t * size);
char * __nxml_trim (char *tmp);
char * __nxml_entity_trim (nxml_t * nxml,
char *str);
/* nxml_string.c */
/**
* \brief
* For internal use only
*/
struct __nxml_string_t__
{
char *string;
size_t size;
};
__nxml_string_t * __nxml_string_new (void);
int __nxml_string_add (__nxml_string_t *st,
char *what,
size_t size);
char * __nxml_string_free (__nxml_string_t *st);
void __nxml_namespace_parse (nxml_t *nxml);
void __nxml_entity_parse (nxml_t * nxml);
#endif
/* EOF */

369
lib/nxml/nxml_namespace.c Normal file
View file

@ -0,0 +1,369 @@
/* nXml - Copyright (C) 2005 bakunin - Andrea Marchesini
* <bakunin@autistici.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#else
# error Use configure; make; make install
#endif
#include "nxml.h"
#include "nxml_internal.h"
struct __nxml_data_ns_t
{
nxml_namespace_t *ns;
struct __nxml_data_ns_t *next;
};
static void
__nxml_namespace_free_item (nxml_data_t * e)
{
nxml_namespace_t *ns;
nxml_data_t *child;
while (e->ns_list)
{
ns = e->ns_list->next;
if (e->ns_list->prefix)
free (e->ns_list->prefix);
if (e->ns_list->ns)
free (e->ns_list->ns);
free (e->ns_list);
e->ns_list = ns;
}
e->ns = NULL;
child = e->children;
while (child)
{
__nxml_namespace_free_item (child);
child = child->next;
}
}
static void
__nxml_namespace_free (nxml_t * nxml)
{
nxml_data_t *e;
e = nxml->data;
while (e)
{
__nxml_namespace_free_item (e);
e = e->next;
}
}
int
__nxml_namespace_parse_add (nxml_data_t * data, char *prefix, char *namespace)
{
nxml_namespace_t *ns;
if (!(ns = (nxml_namespace_t *) malloc (sizeof (nxml_namespace_t))))
return 1;
memset (ns, 0, sizeof (nxml_namespace_t));
if (prefix && !(ns->prefix = strdup (prefix)))
{
free (ns);
return 1;
}
if (!(ns->ns = strdup (namespace)))
{
if (ns->prefix)
free (ns->prefix);
free (ns);
return 1;
}
ns->next = data->ns_list;
data->ns_list = ns;
return 0;
}
static int
__nxml_namespace_find_item (nxml_t * nxml, nxml_data_t * e)
{
nxml_data_t *child;
nxml_attr_t *att;
att = e->attributes;
while (att)
{
if (!strcmp (att->name, "xmlns"))
{
if (__nxml_namespace_parse_add (e, NULL, att->value))
{
__nxml_namespace_free (nxml);
return 1;
}
}
else if (!strncmp (att->name, "xmlns:", 6))
{
if (__nxml_namespace_parse_add (e, att->name + 6, att->value))
{
__nxml_namespace_free (nxml);
return 1;
}
}
att = att->next;
}
child = e->children;
while (child)
{
if (child->type == NXML_TYPE_ELEMENT)
__nxml_namespace_find_item (nxml, child);
child = child->next;
}
return 0;
}
static int
__nxml_namespace_find (nxml_t * nxml)
{
nxml_data_t *e;
e = nxml->data;
while (e)
{
if (e->type == NXML_TYPE_ELEMENT)
__nxml_namespace_find_item (nxml, e);
e = e->next;
}
return 0;
}
static void
__nxml_namespace_associate_attribute (struct __nxml_data_ns_t *list,
nxml_attr_t * e)
{
int i;
int len = strlen (e->name);
int k;
for (i = k = 0; i < len; i++)
if (e->name[i] == ':')
{
k = i;
break;
}
if (!k)
{
while (list)
{
if (!list->ns->prefix)
{
e->ns = list->ns;
return;
}
list = list->next;
}
return;
}
else
{
while (list)
{
if (list->ns->prefix && !strncmp (list->ns->prefix, e->name, k))
{
char *a = strdup (e->name + strlen (list->ns->prefix) + 1);
if (!a)
return;
free (e->name);
e->name = a;
e->ns = list->ns;
return;
}
list = list->next;
}
}
}
static void
__nxml_namespace_associate_item (struct __nxml_data_ns_t *list,
nxml_data_t * e)
{
int i;
int len;
int k;
nxml_attr_t *attr;
attr = e->attributes;
while (attr)
{
__nxml_namespace_associate_attribute (list, attr);
attr = attr->next;
}
len = strlen (e->value);
for (i = k = 0; i < len; i++)
if (e->value[i] == ':')
{
k = i;
break;
}
if (!k)
{
while (list)
{
if (!list->ns->prefix)
{
e->ns = list->ns;
return;
}
list = list->next;
}
return;
}
else
{
while (list)
{
if (list->ns->prefix && !strncmp (list->ns->prefix, e->value, k))
{
char *a = strdup (e->value + strlen (list->ns->prefix) + 1);
if (!a)
return;
free (e->value);
e->value = a;
e->ns = list->ns;
return;
}
list = list->next;
}
}
}
static void
__nxml_namespace_associate (struct __nxml_data_ns_t **list,
nxml_data_t * root)
{
nxml_data_t *e;
nxml_namespace_t *ns;
struct __nxml_data_ns_t *tmp, *old;
ns = root->ns_list;
while (ns)
{
if (!
(tmp =
(struct __nxml_data_ns_t *)
malloc (sizeof (struct __nxml_data_ns_t))))
return;
memset (tmp, 0, sizeof (struct __nxml_data_ns_t));
tmp->ns = ns;
tmp->next = (*list);
(*list) = tmp;
ns = ns->next;
}
__nxml_namespace_associate_item (*list, root);
e = root->children;
while (e)
{
if (e->type == NXML_TYPE_ELEMENT)
__nxml_namespace_associate (list, e);
e = e->next;
}
ns = root->ns_list;
while (ns)
{
tmp = *list;
old = NULL;
while (tmp)
{
if (tmp->ns == ns)
{
if (old)
old->next = tmp->next;
else
*list = tmp->next;
free (tmp);
break;
}
old = tmp;
tmp = tmp->next;
}
ns = ns->next;
}
}
static void
__nxml_namespace_connect (nxml_t * nxml)
{
nxml_data_t *e;
struct __nxml_data_ns_t *list = NULL;
e = nxml->data;
while (e)
{
if (e->type == NXML_TYPE_ELEMENT)
__nxml_namespace_associate (&list, e);
e = e->next;
}
}
void
__nxml_namespace_parse (nxml_t * nxml)
{
__nxml_namespace_free (nxml);
if (__nxml_namespace_find (nxml))
return;
__nxml_namespace_connect (nxml);
}
/* EOF */

1319
lib/nxml/nxml_parser.c Normal file

File diff suppressed because it is too large Load diff

126
lib/nxml/nxml_string.c Normal file
View file

@ -0,0 +1,126 @@
/* nXml - Copyright (C) 2005 bakunin - Andrea Marchesini
* <bakunin@autistici.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#else
# error Use configure; make; make install
#endif
#include "nxml.h"
#include "nxml_internal.h"
char *
__nxml_string_no_space (char *str)
{
char *ret;
int i, j;
int q;
int size;
if (!str)
return NULL;
size = strlen (str);
if (!(ret = (char *) malloc (sizeof (char) * (size + 1))))
return NULL;
for (q = i = j = 0; i < size; i++)
{
if (*(str + i) == 0xd)
continue;
if (*(str + i) == 0xa || *(str + i) == 0x9 || *(str + i) == 0x20)
{
if (!q)
{
q = 1;
ret[j++] = *(str + i);
}
}
else
{
q = 0;
ret[j++] = *(str + i);
}
}
ret[j] = 0;
return ret;
}
__nxml_string_t *
__nxml_string_new (void)
{
__nxml_string_t *st;
if (!(st = (__nxml_string_t *) malloc (sizeof (__nxml_string_t))))
return NULL;
memset (st, 0, sizeof (__nxml_string_t));
return st;
}
char *
__nxml_string_free (__nxml_string_t * st)
{
char *ret;
if (!st)
return NULL;
ret = st->string;
free (st);
return ret;
}
int
__nxml_string_add (__nxml_string_t * st, char *what, size_t size)
{
if (!st || !*what)
return 1;
if (size <= 0)
size = strlen (what);
if (!st->size)
{
if (!(st->string = (char *) malloc (sizeof (char) * (size + 1))))
return 1;
}
else
{
if (!
(st->string =
(char *) realloc (st->string,
sizeof (char) * (size + st->size + 1))))
return 1;
}
memcpy (st->string + st->size, what, size);
st->size += size;
st->string[st->size] = 0;
return 0;
}
/* EOF */

234
lib/nxml/nxml_tools.c Normal file
View file

@ -0,0 +1,234 @@
/* nXml - Copyright (C) 2005 bakunin - Andrea Marchesini
* <bakunin@autistici.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#else
# error Use configure; make; make install
#endif
#include "nxml.h"
#include "nxml_internal.h"
int
__nxml_escape_spaces (nxml_t * doc, char **buffer, size_t * size)
{
/*
* Rule [3] - S ::= (#x20 | #x9 | #xD | #xA)+
*/
int k = 0;
if (!*size)
return 0;
while ((**buffer == 0x20 || **buffer == 0x9 || **buffer == 0xd
|| **buffer == 0xa) && *size)
{
if (**buffer == 0xa && doc->priv.func)
doc->priv.line++;
(*buffer)++;
(*size)--;
k++;
}
return k;
}
char *
__nxml_get_value (nxml_t * doc, char **buffer, size_t * size)
{
char *attr;
int i;
int quot;
if (!*size)
return NULL;
if (**buffer == '"')
quot = 1;
else if (**buffer == '\'')
quot = 0;
else
return NULL;
(*buffer)++;
(*size)--;
i = 0;
while (((quot && *(*buffer + i) != '"')
|| (!quot && *(*buffer + i) != '\'')))
{
if (*(*buffer + i) == '\n' && doc->priv.func)
doc->priv.line++;
i++;
}
if (quot && *(*buffer + i) != '"')
return NULL;
else if (!quot && *(*buffer + i) != '\'')
return NULL;
if (!(attr = (char *) malloc (sizeof (char) * (i + 1))))
return NULL;
memcpy (attr, *buffer, i);
attr[i] = 0;
i++;
(*buffer) += i;
(*size) -= i;
return attr;
}
char *
__nxml_trim (char *tmp)
{
/* Trim function: */
int i = 0;
while (tmp[i] == 0x20 || tmp[i] == 0x9 || tmp[i] == 0xd || tmp[i] == 0xa)
tmp++;
i = strlen (tmp);
i--;
while (tmp[i] == 0x20 || tmp[i] == 0x9 || tmp[i] == 0xd || tmp[i] == 0xa)
i--;
tmp[i + 1] = 0;
return strdup (tmp);
}
static char *
__nxml_find_entity (nxml_t * nxml, char *str, size_t size)
{
__nxml_doctype_entity_t *e;
e = nxml->priv.entities;
while (e)
{
if (!strncmp (e->name, str, size))
return e->reference;
e = e->next;
}
return NULL;
}
char *
__nxml_entity_trim (nxml_t * nxml, char *str)
{
int i, j, k;
int len = strlen (str);
char name[1024];
char *tmp;
char *ret_str;
__nxml_string_t *ret;
if (!(ret = __nxml_string_new ()))
return NULL;
for (i = j = k = 0; i < len; i++)
{
if (str[i] == '%' || str[i] == '&')
{
for (j = i; j < len; j++)
{
if (str[j] == ';')
{
char *find;
if (k)
{
if (__nxml_string_add (ret, name, k))
{
__nxml_string_free (ret);
return NULL;
}
k = 0;
}
if ((find =
__nxml_find_entity (nxml, str + i + 1, j - i - 1)))
{
if (__nxml_string_add (ret, find, 0))
{
__nxml_string_free (ret);
return NULL;
}
}
else
{
if (__nxml_string_add (ret, str + i, j - i + 1))
{
__nxml_string_free (ret);
return NULL;
}
}
i += j;
break;
}
}
}
else
{
name[k] = str[i];
k++;
if (k == sizeof (name))
{
if (__nxml_string_add (ret, name, sizeof (name)))
{
__nxml_string_free (ret);
return NULL;
}
k = 0;
}
}
}
if (k)
{
if (__nxml_string_add (ret, name, k))
{
__nxml_string_free (ret);
return NULL;
}
}
tmp = __nxml_string_free (ret);
ret_str = __nxml_trim (tmp);
free (tmp);
return ret_str;
}
/* EOF */

529
lib/nxml/nxml_utf.c Normal file
View file

@ -0,0 +1,529 @@
/* nXml - Copyright (C) 2005 bakunin - Andrea Marchesini
* <bakunin@autistici.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#else
# error Use configure; make; make install
#endif
#include "nxml.h"
#include "nxml_internal.h"
/*
* UTF-8
* 7bits: 0xxxxxxx
* 11bits: 110xxxxx 10xxxxxx
* 16bits: 1110xxxx 10xxxxxx 10xxxxxx
* 21bits: 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx
* 26bits: 111110xx 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx
* 31bits: 1111110x 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx
*/
int64_t
__nxml_utf8 (unsigned char **buffer, size_t * size, int *byte)
{
int64_t ret;
unsigned char c0 = **buffer, c1, c2, c3, c4;
if (c0 < 0x80 || *size < 2)
{
*byte = 1;
ret = (int64_t) c0;
return ret;
}
c1 = *(*buffer + 1);
if ((c0 & 0xe0) == 0xc0 || *size < 3)
{
*byte = 2;
ret = (((c0 & 0x1f) << 6) | (c1 & 0x3f));
return ret;
}
c2 = *(*buffer + 2);
if ((c0 & 0xf0) == 0xe0 || *size < 4)
{
*byte = 3;
ret = (((c0 & 0x0f) << 12) | ((c1 & 0x3f) << 6) | (c2 & 0x3f));
return ret;
}
c3 = *(*buffer + 3);
if ((c0 & 0xf8) == 0xf0 || *size < 5)
{
*byte = 4;
ret =
(((c0 & 0x7) << 18) | ((c1 & 0x3f) << 12) | ((c2 & 0x3f) << 6) |
(c3 & 0x3f));
return ret;
}
c4 = *(*buffer + 4);
if ((c0 & 0xfc) == 0xf8)
{
*byte = 5;
ret =
(((c0 & 0x3) << 24) | ((c1 & 0x3f) << 18) | ((c2 & 0x3f) << 12) |
((c3 & 0x3f) << 6) | (c4 & 0x3f));
return ret;
}
*byte = 1;
ret = (int64_t) c0;
return ret;
}
#define __NXML_XTO8( x , b ) \
if(byte>=1023-b) { \
if(!(ret=realloc(ret, (j+b)*sizeof(char)))) return -1; \
byte=0; \
} \
memcpy(&ret[j], x, b); \
j+=b; \
byte+=b;
static size_t
__nxml_utf16to8 (int le, unsigned char *buffer, size_t size,
unsigned char **ret_buffer)
{
int64_t ch;
int j = 0;
int byte = 0;
unsigned char *ret;
if (!(ret = (unsigned char *) malloc (sizeof (unsigned char) * 1024)))
return -1;
while (size > 0)
{
if (le)
{
if ((*buffer & 0xfc) == 0xd8 && (*(buffer + 2) & 0xfc) == 0xdc)
{
ch = ((*buffer & 0x03) << 18) + (*(buffer + 1) << 10) +
((*(buffer + 2) & 0x03) << 8) + *(buffer + 3);
buffer += 4;
size -= 4;
}
else
{
ch = (*buffer << 8) + *(buffer + 1);
buffer += 2;
size -= 2;
}
}
else if ((*(buffer + 1) & 0xfc) == 0xd8
&& (*(buffer + 3) & 0xfc) == 0xdc)
{
ch = ((*(buffer + 1) & 0x03) << 18) + (*buffer << 10) +
((*(buffer + 3) & 0x03) << 8) + *(buffer + 2);
buffer += 4;
size -= 4;
}
else
{
ch = (*(buffer + 1) << 8) + *buffer;
buffer += 2;
size -= 2;
}
/* 8bit: 1000000 */
if (ch < 0x80)
{
__NXML_XTO8 ((void *) &ch, 1);
}
/* 11bit: xx100000 xx000000
* 1000 0000 0000
* 0x 8 0 0
*/
else if (ch < 0x800)
{
/* 11bits: 110xxxxx 10xxxxxx */
char a[2];
a[0] = (ch >> 6) | 0xc0;
a[1] = (ch & 0x2f) | 0x80;
__NXML_XTO8 ((void *) a, 2);
}
/* 16bit: xxx10000 xx000000 xx000000
* 1 0000 0000 0000 0000
* 0x 1 0 0 0 0
*/
else if (ch < 0x10000)
{
/* 16bits: 1110xxxx 10xxxxxx 10xxxxxx */
char a[3];
a[0] = (ch >> 12) | 0xe0;
a[1] = ((ch >> 6) & 0x2f) | 0x80;
a[2] = (ch & 0x2f) | 0x80;
__NXML_XTO8 ((void *) a, 3);
}
/* 21bit: xxxx1000 xx000000 xx000000 xx000000
* 10 0000 0000 0000 0000 0000
* 0x 2 0 0 0 0 0
*/
else if (ch < 0x200000)
{
/* 21bits: 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx */
char a[4];
a[0] = (ch >> 18) | 0xf0;
a[1] = ((ch >> 12) & 0x2f);
a[2] = ((ch >> 6) & 0x2f);
a[3] = (ch & 0x2f);
__NXML_XTO8 ((void *) a, 4);
}
/* 26bit: xxxxx100 xx000000 xx000000 xx000000 xx000000
* 100 0000 0000 0000 0000 0000 0000
* 0x 4 0 0 0 0 0 0
*/
else if (ch < 0x4000000)
{
/* 21bits: 111110xx 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx */
char a[5];
a[0] = (ch >> 24) | 0xf8;
a[1] = ((ch >> 18) & 0x2f);
a[2] = ((ch >> 12) & 0x2f);
a[3] = ((ch >> 6) & 0x2f);
a[4] = (ch & 0x2f);
__NXML_XTO8 ((void *) a, 5);
}
}
ret[j] = 0;
(*ret_buffer) = ret;
return (size_t) j;
}
static size_t
__nxml_ucs4to8 (int type, unsigned char *buffer, size_t size,
unsigned char **ret_buffer)
{
int64_t ch;
int j = 0;
int byte = 0;
unsigned char *ret;
if (!(ret = (unsigned char *) malloc (sizeof (unsigned char) * 1024)))
return -1;
while (size > 0)
{
switch (type)
{
case 0: /* 1234 */
ch =
(*buffer << 18) + (*(buffer + 1) << 12) + (*(buffer + 2) << 6) +
(*(buffer + 3));
break;
case 1: /* 4321 */
ch =
(*buffer) + (*(buffer + 1) << 6) + (*(buffer + 2) << 12) +
(*(buffer + 3) << 18);
break;
case 2: /* 2143 */
ch =
((*buffer) << 12) + (*(buffer + 1) << 18) + (*(buffer + 2)) +
(*(buffer + 3) << 6);
break;
case 3: /* 3412 */
ch =
((*buffer) << 6) + (*(buffer + 1)) + (*(buffer + 2) << 18) +
(*(buffer + 3) << 12);
break;
}
buffer += 4;
size -= 4;
/* 8bit: 1000000 */
if (ch < 0x80)
{
__NXML_XTO8 ((void *) &ch, 1);
}
/* 11bit: xx100000 xx000000
* 1000 0000 0000
* 0x 8 0 0
*/
else if (ch < 0x800)
{
/* 11bits: 110xxxxx 10xxxxxx */
char a[2];
a[0] = (ch >> 6) | 0xc0;
a[1] = (ch & 0x2f) | 0x80;
__NXML_XTO8 ((void *) a, 2);
}
/* 16bit: xxx10000 xx000000 xx000000
* 1 0000 0000 0000 0000
* 0x 1 0 0 0 0
*/
else if (ch < 0x10000)
{
/* 16bits: 1110xxxx 10xxxxxx 10xxxxxx */
char a[3];
a[0] = (ch >> 12) | 0xe0;
a[1] = ((ch >> 6) & 0x2f) | 0x80;
a[2] = (ch & 0x2f) | 0x80;
__NXML_XTO8 ((void *) a, 3);
}
/* 21bit: xxxx1000 xx000000 xx000000 xx000000
* 10 0000 0000 0000 0000 0000
* 0x 2 0 0 0 0 0
*/
else if (ch < 0x200000)
{
/* 21bits: 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx */
char a[4];
a[0] = (ch >> 18) | 0xf0;
a[1] = ((ch >> 12) & 0x2f);
a[2] = ((ch >> 6) & 0x2f);
a[3] = (ch & 0x2f);
__NXML_XTO8 ((void *) a, 4);
}
/* 26bit: xxxxx100 xx000000 xx000000 xx000000 xx000000
* 100 0000 0000 0000 0000 0000 0000
* 0x 4 0 0 0 0 0 0
*/
else if (ch < 0x4000000)
{
/* 21bits: 111110xx 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx */
char a[5];
a[0] = (ch >> 24) | 0xf8;
a[1] = ((ch >> 18) & 0x2f);
a[2] = ((ch >> 12) & 0x2f);
a[3] = ((ch >> 6) & 0x2f);
a[4] = (ch & 0x2f);
__NXML_XTO8 ((void *) a, 5);
}
}
ret[j] = 0;
(*ret_buffer) = ret;
return (size_t) j;
}
int
__nxml_utf_detection (char *r_buffer, size_t r_size, char **buffer,
size_t * size, nxml_charset_t * charset)
{
/* Utf-8: 0x3c 0x3f 0x78 0x6d */
if (strncmp (r_buffer, "<?xml", 5))
{
*charset = NXML_CHARSET_UTF8;
return 0;
}
/* Utf-16LE: 0x00 0x3c 0x00 0x3f */
if (*r_buffer == 0x00 && *(r_buffer + 1) == 0x3c && *(r_buffer + 2) == 0x00
&& *(r_buffer + 3) == 0x3f)
{
(*size) =
__nxml_utf16to8 (1, (unsigned char *) r_buffer, r_size,
(unsigned char **) buffer);
if (*size < 0)
return -1;
*charset = NXML_CHARSET_UTF16LE;
return 1;
}
/* Utf-16BE: 0x3c 0x00 0x3f 0x00 */
if (*r_buffer == 0x3c && *(r_buffer + 1) == 0x00 && *(r_buffer + 2) == 0x3f
&& *(r_buffer + 3) == 0x00)
{
(*size) =
__nxml_utf16to8 (0, (unsigned char *) r_buffer, r_size,
(unsigned char **) buffer);
if (*size < 0)
return -1;
*charset = NXML_CHARSET_UTF16BE;
return 1;
}
/* UCS-4 (1234): 0x00 0x00 0x00 0x3c */
if (*r_buffer == 0x00 && *(r_buffer + 1) == 0x00 && *(r_buffer + 2) == 0x00
&& *(r_buffer + 3) == 0x3c)
{
(*size) =
__nxml_ucs4to8 (0, (unsigned char *) r_buffer, r_size,
(unsigned char **) buffer);
if (*size < 0)
return -1;
*charset = NXML_CHARSET_UCS4_1234;
return 1;
}
/* UCS-4 (4321): 0x3c 0x00 0x00 0x00 */
if (*r_buffer == 0x3c && *(r_buffer + 1) == 0x00 && *(r_buffer + 2) == 0x00
&& *(r_buffer + 3) == 0x00)
{
(*size) =
__nxml_ucs4to8 (1, (unsigned char *) r_buffer, r_size,
(unsigned char **) buffer);
if (*size < 0)
return -1;
*charset = NXML_CHARSET_UCS4_4321;
return 1;
}
/* UCS-4 (2143): 0x00 0x00 0x3c 0x00 */
if (*r_buffer == 0x00 && *(r_buffer + 1) == 0x00 && *(r_buffer + 2) == 0x3c
&& *(r_buffer + 3) == 0x00)
{
(*size) =
__nxml_ucs4to8 (2, (unsigned char *) r_buffer, r_size,
(unsigned char **) buffer);
if (*size < 0)
return -1;
*charset = NXML_CHARSET_UCS4_2143;
return 1;
}
/* UCS-4 (3412): 0x00 0x3c 0x00 0x00 */
if (*r_buffer == 0x00 && *(r_buffer + 1) == 0x3c && *(r_buffer + 2) == 0x00
&& *(r_buffer + 3) == 0x00)
{
(*size) =
__nxml_ucs4to8 (3, (unsigned char *) r_buffer, r_size,
(unsigned char **) buffer);
if (*size < 0)
return -1;
*charset = NXML_CHARSET_UCS4_3412;
return 1;
}
*charset = NXML_CHARSET_UNKNOWN;
return 0;
}
int64_t
__nxml_int_charset (int ch, unsigned char *str, char *charset)
{
if (!charset || strcasecmp (charset, "utf-8"))
{
str[0] = ch;
return 1;
}
/* 8bit: 1000000 */
if (ch < 0x80)
{
str[0] = ch;
return 1;
}
/* 11bit: xx100000 xx000000
* 1000 0000 0000
* 0x 8 0 0
*/
else if (ch < 0x800)
{
/* 11bits: 110xxxxx 10xxxxxx */
str[0] = (ch >> 6) | 0xc0;
str[1] = (ch & 0x2f) | 0x80;
return 2;
}
/* 16bit: xxx10000 xx000000 xx000000
* 1 0000 0000 0000 0000
* 0x 1 0 0 0 0
*/
else if (ch < 0x10000)
{
/* 16bits: 1110xxxx 10xxxxxx 10xxxxxx */
str[0] = (ch >> 12) | 0xe0;
str[1] = ((ch >> 6) & 0x2f) | 0x80;
str[2] = (ch & 0x2f) | 0x80;
return 3;
}
/* 21bit: xxxx1000 xx000000 xx000000 xx000000
* 10 0000 0000 0000 0000 0000
* 0x 2 0 0 0 0 0
*/
else if (ch < 0x200000)
{
/* 21bits: 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx */
str[0] = (ch >> 18) | 0xf0;
str[1] = ((ch >> 12) & 0x2f);
str[2] = ((ch >> 6) & 0x2f);
str[3] = (ch & 0x2f);
return 4;
}
/* 26bit: xxxxx100 xx000000 xx000000 xx000000 xx000000
* 100 0000 0000 0000 0000 0000 0000
* 0x 4 0 0 0 0 0 0
*/
else if (ch < 0x4000000)
{
/* 21bits: 111110xx 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx */
str[0] = (ch >> 24) | 0xf8;
str[1] = ((ch >> 18) & 0x2f);
str[2] = ((ch >> 12) & 0x2f);
str[3] = ((ch >> 6) & 0x2f);
str[4] = (ch & 0x2f);
return 5;
}
return 0;
}
/* EOF */

382
lib/nxml/nxml_write.c Normal file
View file

@ -0,0 +1,382 @@
/* nXml - Copyright (C) 2005 bakunin - Andrea Marchesini
* <bakunin@autistici.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#else
# error Use configure; make; make install
#endif
#include "nxml.h"
#include "nxml_internal.h"
static void
__nxml_write_escape_string (void (*func) (void *, char *, ...), void *obj,
char *str)
{
int i;
int len;
char buf[1024];
int j;
#define __NXML_CHECK_BUF \
if(j==sizeof(buf)-1) { buf[j]=0; func(obj, "%s",buf); j=0; }
if (!str)
return;
len = strlen (str);
for (j = i = 0; i < len; i++)
{
if (str[i] == '\r')
continue;
else if (str[i] == '<')
{
buf[j++] = '&';
__NXML_CHECK_BUF;
buf[j++] = 'l';
__NXML_CHECK_BUF;
buf[j++] = 't';
__NXML_CHECK_BUF;
buf[j++] = ';';
__NXML_CHECK_BUF;
}
else if (str[i] == '>')
{
buf[j++] = '&';
__NXML_CHECK_BUF;
buf[j++] = 'g';
__NXML_CHECK_BUF;
buf[j++] = 't';
__NXML_CHECK_BUF;
buf[j++] = ';';
__NXML_CHECK_BUF;
}
else if (str[i] == '&')
{
buf[j++] = '&';
__NXML_CHECK_BUF;
buf[j++] = 'a';
__NXML_CHECK_BUF;
buf[j++] = 'm';
__NXML_CHECK_BUF;
buf[j++] = 'p';
__NXML_CHECK_BUF;
buf[j++] = ';';
__NXML_CHECK_BUF;
}
else if (str[i] == '\'')
{
buf[j++] = '&';
__NXML_CHECK_BUF;
buf[j++] = 'a';
__NXML_CHECK_BUF;
buf[j++] = 'p';
__NXML_CHECK_BUF;
buf[j++] = 'o';
__NXML_CHECK_BUF;
buf[j++] = 's';
__NXML_CHECK_BUF;
buf[j++] = ';';
__NXML_CHECK_BUF;
}
else if (str[i] == '\"')
{
buf[j++] = '&';
__NXML_CHECK_BUF;
buf[j++] = 'q';
__NXML_CHECK_BUF;
buf[j++] = 'u';
__NXML_CHECK_BUF;
buf[j++] = 'o';
__NXML_CHECK_BUF;
buf[j++] = 't';
__NXML_CHECK_BUF;
buf[j++] = ';';
__NXML_CHECK_BUF;
}
else
{
buf[j++] = str[i];
__NXML_CHECK_BUF;
}
}
if (j)
{
buf[j] = 0;
func (obj, "%s", buf);
j = 0;
}
}
static void
__nxml_write_data_text (nxml_data_t * data,
void (*func) (void *, char *, ...), void *obj,
int indent)
{
int i;
for (i = 0; i < indent; i++)
func (obj, " ");
__nxml_write_escape_string (func, obj, data->value);
func (obj, "\n");
}
static void
__nxml_write_data_comment (nxml_data_t * data,
void (*func) (void *, char *, ...), void *obj,
int indent)
{
int i;
for (i = 0; i < indent; i++)
func (obj, " ");
func (obj, "<!--%s-->\n", data->value);
}
static void
__nxml_write_data_pi (nxml_data_t * data,
void (*func) (void *, char *, ...), void *obj,
int indent)
{
int i;
for (i = 0; i < indent; i++)
func (obj, " ");
func (obj, "<?%s?>\n", data->value);
}
static void
__nxml_write_data_doctype (nxml_doctype_t * data,
void (*func) (void *, char *, ...), void *obj,
int indent)
{
int i;
for (i = 0; i < indent; i++)
func (obj, " ");
func (obj, "<!DOCTYPE %s %s>\n", data->name, data->value);
}
static void
__nxml_write_data_element (nxml_data_t * data,
void (*func) (void *, char *, ...), void *obj,
int indent)
{
int i;
nxml_attr_t *attr;
for (i = 0; i < indent; i++)
func (obj, " ");
func (obj, "<");
if (data->ns && data->ns->prefix)
func (obj, "%s:", data->ns->prefix);
func (obj, "%s", data->value);
attr = data->attributes;
while (attr)
{
func (obj, " %s=\"", attr->name);
__nxml_write_escape_string (func, obj, attr->value);
func (obj, "\"");
attr = attr->next;
}
if (!data->children)
func (obj, " /");
func (obj, ">\n");
}
static void
__nxml_write_data (nxml_t * nxml, nxml_data_t * data,
void (*func) (void *, char *, ...), void *obj, int indent)
{
nxml_data_t *tmp;
switch (data->type)
{
case NXML_TYPE_TEXT:
__nxml_write_data_text (data, func, obj, indent);
break;
case NXML_TYPE_COMMENT:
__nxml_write_data_comment (data, func, obj, indent);
break;
case NXML_TYPE_PI:
__nxml_write_data_pi (data, func, obj, indent);
break;
default:
__nxml_write_data_element (data, func, obj, indent);
break;
}
if (data->children)
{
tmp = data->children;
while (tmp)
{
__nxml_write_data (nxml, tmp, func, obj, indent + 1);
tmp = tmp->next;
}
if (data->type == NXML_TYPE_ELEMENT)
{
int i;
for (i = 0; i < indent; i++)
func (obj, " ");
func (obj, "</");
if (data->ns && data->ns->prefix)
func (obj, "%s:", data->ns->prefix);
func (obj, "%s>\n", data->value);
}
}
}
static nxml_error_t
__nxml_write_real (nxml_t * nxml, void (*func) (void *, char *, ...),
void *obj)
{
nxml_data_t *data;
nxml_doctype_t *doctype;
func (obj, "<?xml");
func (obj, " version=\"");
switch (nxml->version)
{
case NXML_VERSION_1_0:
func (obj, "1.0");
break;
default:
func (obj, "1.1");
}
func (obj, "\"");
if (nxml->encoding)
func (obj, " encoding=\"%s\"", nxml->encoding);
func (obj, " standalone=\"%s\"?>\n\n", nxml->standalone ? "yes" : "no");
doctype = nxml->doctype;
while (doctype)
{
__nxml_write_data_doctype (doctype, func, obj, 0);
doctype = doctype->next;
}
data = nxml->data;
while (data)
{
__nxml_write_data (nxml, data, func, obj, 0);
data = data->next;
}
return NXML_OK;
}
static void
__nxml_file_write (void *obj, char *str, ...)
{
va_list va;
va_start (va, str);
vfprintf ((FILE *) obj, str, va);
va_end (va);
}
static void
__nxml_buffer_write (void *obj, char *str, ...)
{
va_list va;
char s[4096];
int len;
char **buffer = (char **) obj;
va_start (va, str);
len = vsnprintf (s, sizeof (s), str, va);
va_end (va);
if (!*buffer)
{
if (!(*buffer = (char *) malloc (sizeof (char) * (len + 1))))
return;
strcpy (*buffer, s);
}
else
{
if (!(*buffer = (char *) realloc (*buffer,
sizeof (char) * (strlen (*buffer) +
len + 1))))
return;
strcat (*buffer, s);
}
}
/*************************** EXTERNAL FUNCTION ******************************/
nxml_error_t
nxml_write_file (nxml_t * nxml, char *file)
{
FILE *fl;
nxml_error_t ret;
if (!nxml || !file)
return NXML_ERR_DATA;
if (!(fl = fopen (file, "wb")))
return NXML_ERR_POSIX;
ret = __nxml_write_real (nxml, __nxml_file_write, fl);
fclose (fl);
return ret;
}
nxml_error_t
nxml_write_buffer (nxml_t * nxml, char **buffer)
{
if (!nxml || !buffer)
return NXML_ERR_DATA;
return __nxml_write_real (nxml, __nxml_buffer_write, buffer);
}
/* EOF */

View file

@ -1,9 +1,9 @@
lib_LTLIBRARIES = libpcre.la
noinst_LIBRARIES = libpcre.a
noinst_PROGRAMS = dftables
libpcre_la_SOURCES = chartables.c get.c pcre.c study.c internal.h pcre.h
libpcre_a_SOURCES = chartables.c get.c pcre.c study.c internal.h pcre.h
dftables_SOURCES = dftables.c internal.h pcre.h
dftables_DEPENDENCES = maketables.c
noinst_HEADERS = maketables.c
noinst_HEADERS = maketables.c
include_HEADERS = pcre.h

View file

@ -1,8 +1,8 @@
# Makefile.in generated by automake 1.9.2 from Makefile.am.
# Makefile.in generated by automake 1.9.6 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004 Free Software Foundation, Inc.
# 2003, 2004, 2005 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
@ -16,8 +16,6 @@
SOURCES = $(libpcre_la_SOURCES) $(dftables_SOURCES)
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
@ -58,18 +56,13 @@ am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
mkinstalldirs = $(SHELL) $(top_srcdir)/autotools/mkinstalldirs
CONFIG_HEADER = $(top_builddir)/include/config.h
CONFIG_CLEAN_FILES =
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
am__vpath_adj = case $$p in \
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
*) f=$$p;; \
esac;
am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)"
libLTLIBRARIES_INSTALL = $(INSTALL)
LTLIBRARIES = $(lib_LTLIBRARIES)
libpcre_la_LIBADD =
am_libpcre_la_OBJECTS = chartables.lo get.lo pcre.lo study.lo
libpcre_la_OBJECTS = $(am_libpcre_la_OBJECTS)
LIBRARIES = $(noinst_LIBRARIES)
ARFLAGS = cru
libpcre_a_AR = $(AR) $(ARFLAGS)
libpcre_a_LIBADD =
am_libpcre_a_OBJECTS = chartables.$(OBJEXT) get.$(OBJEXT) \
pcre.$(OBJEXT) study.$(OBJEXT)
libpcre_a_OBJECTS = $(am_libpcre_a_OBJECTS)
PROGRAMS = $(noinst_PROGRAMS)
am_dftables_OBJECTS = dftables.$(OBJEXT)
dftables_OBJECTS = $(am_dftables_OBJECTS)
@ -79,12 +72,19 @@ depcomp = $(SHELL) $(top_srcdir)/autotools/depcomp
am__depfiles_maybe = depfiles
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(CC) $(DEFS) \
LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
$(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)
SOURCES = $(libpcre_la_SOURCES) $(dftables_SOURCES)
DIST_SOURCES = $(libpcre_la_SOURCES) $(dftables_SOURCES)
SOURCES = $(libpcre_a_SOURCES) $(dftables_SOURCES)
DIST_SOURCES = $(libpcre_a_SOURCES) $(dftables_SOURCES)
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
am__vpath_adj = case $$p in \
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
*) f=$$p;; \
esac;
am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
am__installdirs = "$(DESTDIR)$(includedir)"
includeHEADERS_INSTALL = $(INSTALL_HEADER)
HEADERS = $(include_HEADERS) $(noinst_HEADERS)
ETAGS = etags
@ -225,8 +225,8 @@ sysconfdir = @sysconfdir@
target_alias = @target_alias@
unamepath = @unamepath@
wi_PWD = @wi_PWD@
lib_LTLIBRARIES = libpcre.la
libpcre_la_SOURCES = chartables.c get.c pcre.c study.c internal.h pcre.h
noinst_LIBRARIES = libpcre.a
libpcre_a_SOURCES = chartables.c get.c pcre.c study.c internal.h pcre.h
dftables_SOURCES = dftables.c internal.h pcre.h
dftables_DEPENDENCES = maketables.c
noinst_HEADERS = maketables.c
@ -270,24 +270,12 @@ $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
uninstall-libLTLIBRARIES:
@$(NORMAL_UNINSTALL)
@set -x; list='$(lib_LTLIBRARIES)'; for p in $$list; do \
p=$(am__strip_dir) \
echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
$(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
done
clean-libLTLIBRARIES:
-test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
test "$$dir" != "$$p" || dir=.; \
echo "rm -f \"$${dir}/so_locations\""; \
rm -f "$${dir}/so_locations"; \
done
libpcre.la: $(libpcre_la_OBJECTS) $(libpcre_la_DEPENDENCIES)
$(LINK) -rpath $(libdir) $(libpcre_la_LDFLAGS) $(libpcre_la_OBJECTS) $(libpcre_la_LIBADD) $(LIBS)
clean-noinstLIBRARIES:
-test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES)
libpcre.a: $(libpcre_a_OBJECTS) $(libpcre_a_DEPENDENCIES)
-rm -f libpcre.a
$(libpcre_a_AR) libpcre.a $(libpcre_a_OBJECTS) $(libpcre_a_LIBADD)
$(RANLIB) libpcre.a
clean-noinstPROGRAMS:
@list='$(noinst_PROGRAMS)'; for p in $$list; do \
@ -305,11 +293,11 @@ mostlyclean-compile:
distclean-compile:
-rm -f *.tab.c
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/chartables.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/chartables.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dftables.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/get.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pcre.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/study.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/get.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pcre.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/study.Po@am__quote@
mostlyclean-libtool:
-rm -f *.lo
@ -407,9 +395,9 @@ distdir: $(DISTFILES)
done
check-am: all-am
check: check-am
all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(HEADERS)
all-am: Makefile $(LIBRARIES) $(PROGRAMS) $(HEADERS)
installdirs:
for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)"; do \
for dir in "$(DESTDIR)$(includedir)"; do \
test -z "$$dir" || $(mkdir_p) "$$dir"; \
done
install: install-am
@ -438,7 +426,7 @@ maintainer-clean-generic:
@echo "it deletes files that may require special tools to rebuild."
clean: clean-am
clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
clean-am: clean-generic clean-libtool clean-noinstLIBRARIES \
clean-noinstPROGRAMS mostlyclean-am
distclean: distclean-am
@ -459,7 +447,7 @@ info-am:
install-data-am: install-includeHEADERS
install-exec-am: install-libLTLIBRARIES
install-exec-am:
install-info: install-info-am
@ -485,22 +473,20 @@ ps: ps-am
ps-am:
uninstall-am: uninstall-includeHEADERS uninstall-info-am \
uninstall-libLTLIBRARIES
uninstall-am: uninstall-includeHEADERS uninstall-info-am
.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
clean-libLTLIBRARIES clean-libtool clean-noinstPROGRAMS ctags \
clean-libtool clean-noinstLIBRARIES clean-noinstPROGRAMS ctags \
distclean distclean-compile distclean-generic \
distclean-libtool distclean-tags distdir dvi dvi-am html \
html-am info info-am install install-am install-data \
install-data-am install-exec install-exec-am \
install-includeHEADERS install-info install-info-am \
install-libLTLIBRARIES install-man install-strip installcheck \
installcheck-am installdirs maintainer-clean \
maintainer-clean-generic mostlyclean mostlyclean-compile \
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
tags uninstall uninstall-am uninstall-includeHEADERS \
uninstall-info-am uninstall-libLTLIBRARIES
install-man install-strip installcheck installcheck-am \
installdirs maintainer-clean maintainer-clean-generic \
mostlyclean mostlyclean-compile mostlyclean-generic \
mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \
uninstall-am uninstall-includeHEADERS uninstall-info-am
chartables.c: dftables

View file

@ -1,8 +1,8 @@
# Makefile.in generated by automake 1.9.2 from Makefile.am.
# Makefile.in generated by automake 1.9.6 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004 Free Software Foundation, Inc.
# 2003, 2004, 2005 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
@ -255,7 +255,13 @@ uninstall-info-am:
# (which will cause the Makefiles to be regenerated when you run `make');
# (2) otherwise, pass the desired values on the `make' command line.
$(RECURSIVE_TARGETS):
@set fnord $$MAKEFLAGS; amf=$$2; \
@failcom='exit 1'; \
for f in x $$MAKEFLAGS; do \
case $$f in \
*=* | --[!k]*);; \
*k*) failcom='fail=yes';; \
esac; \
done; \
dot_seen=no; \
target=`echo $@ | sed s/-recursive//`; \
list='$(SUBDIRS)'; for subdir in $$list; do \
@ -267,7 +273,7 @@ $(RECURSIVE_TARGETS):
local_target="$$target"; \
fi; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
|| eval $$failcom; \
done; \
if test "$$dot_seen" = "no"; then \
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
@ -275,7 +281,13 @@ $(RECURSIVE_TARGETS):
mostlyclean-recursive clean-recursive distclean-recursive \
maintainer-clean-recursive:
@set fnord $$MAKEFLAGS; amf=$$2; \
@failcom='exit 1'; \
for f in x $$MAKEFLAGS; do \
case $$f in \
*=* | --[!k]*);; \
*k*) failcom='fail=yes';; \
esac; \
done; \
dot_seen=no; \
case "$@" in \
distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
@ -296,7 +308,7 @@ maintainer-clean-recursive:
local_target="$$target"; \
fi; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
|| eval $$failcom; \
done && test -z "$$fail"
tags-recursive:
list='$(SUBDIRS)'; for subdir in $$list; do \

View file

@ -1,8 +1,8 @@
# Makefile.in generated by automake 1.9.2 from Makefile.am.
# Makefile.in generated by automake 1.9.6 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004 Free Software Foundation, Inc.
# 2003, 2004, 2005 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
@ -14,8 +14,6 @@
@SET_MAKE@
SOURCES = $(connectserv_la_SOURCES)
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
@ -71,7 +69,7 @@ depcomp = $(SHELL) $(top_srcdir)/autotools/depcomp
am__depfiles_maybe = depfiles
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(CC) $(DEFS) \
LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
$(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)

View file

@ -1,8 +1,8 @@
# Makefile.in generated by automake 1.9.2 from Makefile.am.
# Makefile.in generated by automake 1.9.6 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004 Free Software Foundation, Inc.
# 2003, 2004, 2005 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
@ -14,8 +14,6 @@
@SET_MAKE@
SOURCES = $(convertdb_SOURCES)
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
@ -68,7 +66,7 @@ depcomp = $(SHELL) $(top_srcdir)/autotools/depcomp
am__depfiles_maybe = depfiles
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(CC) $(DEFS) \
LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
$(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)
@ -409,7 +407,13 @@ uninstall-info-am:
# (which will cause the Makefiles to be regenerated when you run `make');
# (2) otherwise, pass the desired values on the `make' command line.
$(RECURSIVE_TARGETS):
@set fnord $$MAKEFLAGS; amf=$$2; \
@failcom='exit 1'; \
for f in x $$MAKEFLAGS; do \
case $$f in \
*=* | --[!k]*);; \
*k*) failcom='fail=yes';; \
esac; \
done; \
dot_seen=no; \
target=`echo $@ | sed s/-recursive//`; \
list='$(SUBDIRS)'; for subdir in $$list; do \
@ -421,7 +425,7 @@ $(RECURSIVE_TARGETS):
local_target="$$target"; \
fi; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
|| eval $$failcom; \
done; \
if test "$$dot_seen" = "no"; then \
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
@ -429,7 +433,13 @@ $(RECURSIVE_TARGETS):
mostlyclean-recursive clean-recursive distclean-recursive \
maintainer-clean-recursive:
@set fnord $$MAKEFLAGS; amf=$$2; \
@failcom='exit 1'; \
for f in x $$MAKEFLAGS; do \
case $$f in \
*=* | --[!k]*);; \
*k*) failcom='fail=yes';; \
esac; \
done; \
dot_seen=no; \
case "$@" in \
distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
@ -450,7 +460,7 @@ maintainer-clean-recursive:
local_target="$$target"; \
fi; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
|| eval $$failcom; \
done && test -z "$$fail"
tags-recursive:
list='$(SUBDIRS)'; for subdir in $$list; do \

View file

@ -1,8 +1,8 @@
# Makefile.in generated by automake 1.9.2 from Makefile.am.
# Makefile.in generated by automake 1.9.6 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004 Free Software Foundation, Inc.
# 2003, 2004, 2005 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
@ -14,8 +14,6 @@
@SET_MAKE@
SOURCES = $(bdb_la_SOURCES)
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
@ -71,7 +69,7 @@ depcomp = $(SHELL) $(top_srcdir)/autotools/depcomp
am__depfiles_maybe = depfiles
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(CC) $(DEFS) \
LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
$(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)

View file

@ -1,8 +1,8 @@
# Makefile.in generated by automake 1.9.2 from Makefile.am.
# Makefile.in generated by automake 1.9.6 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004 Free Software Foundation, Inc.
# 2003, 2004, 2005 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
@ -15,8 +15,6 @@
@SET_MAKE@
SOURCES = $(gdbm_la_SOURCES)
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
@ -76,7 +74,7 @@ depcomp = $(SHELL) $(top_srcdir)/autotools/depcomp
am__depfiles_maybe = depfiles
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(CC) $(DEFS) \
LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
$(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)

View file

@ -1,8 +1,8 @@
# Makefile.in generated by automake 1.9.2 from Makefile.am.
# Makefile.in generated by automake 1.9.6 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004 Free Software Foundation, Inc.
# 2003, 2004, 2005 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
@ -14,8 +14,6 @@
@SET_MAKE@
SOURCES = $(dccpartyline_la_SOURCES)
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
@ -71,7 +69,7 @@ depcomp = $(SHELL) $(top_srcdir)/autotools/depcomp
am__depfiles_maybe = depfiles
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(CC) $(DEFS) \
LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
$(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)

View file

@ -1,8 +1,8 @@
# Makefile.in generated by automake 1.9.2 from Makefile.am.
# Makefile.in generated by automake 1.9.6 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004 Free Software Foundation, Inc.
# 2003, 2004, 2005 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
@ -14,8 +14,6 @@
@SET_MAKE@
SOURCES = $(extauth_la_SOURCES)
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
@ -71,7 +69,7 @@ depcomp = $(SHELL) $(top_srcdir)/autotools/depcomp
am__depfiles_maybe = depfiles
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(CC) $(DEFS) \
LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
$(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)

View file

@ -1,8 +1,8 @@
# Makefile.in generated by automake 1.9.2 from Makefile.am.
# Makefile.in generated by automake 1.9.6 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004 Free Software Foundation, Inc.
# 2003, 2004, 2005 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
@ -14,8 +14,6 @@
@SET_MAKE@
SOURCES = $(hostserv_la_SOURCES)
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
@ -71,7 +69,7 @@ depcomp = $(SHELL) $(top_srcdir)/autotools/depcomp
am__depfiles_maybe = depfiles
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(CC) $(DEFS) \
LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
$(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)

View file

@ -1,8 +1,8 @@
# Makefile.in generated by automake 1.9.2 from Makefile.am.
# Makefile.in generated by automake 1.9.6 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004 Free Software Foundation, Inc.
# 2003, 2004, 2005 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
@ -14,8 +14,6 @@
@SET_MAKE@
SOURCES = $(ircdauth_la_SOURCES)
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
@ -71,7 +69,7 @@ depcomp = $(SHELL) $(top_srcdir)/autotools/depcomp
am__depfiles_maybe = depfiles
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(CC) $(DEFS) \
LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
$(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)

View file

@ -1,8 +1,8 @@
# Makefile.in generated by automake 1.9.2 from Makefile.am.
# Makefile.in generated by automake 1.9.6 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004 Free Software Foundation, Inc.
# 2003, 2004, 2005 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
@ -14,8 +14,6 @@
@SET_MAKE@
SOURCES = $(limitserv_la_SOURCES)
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
@ -71,7 +69,7 @@ depcomp = $(SHELL) $(top_srcdir)/autotools/depcomp
am__depfiles_maybe = depfiles
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(CC) $(DEFS) \
LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
$(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)

View file

@ -1,8 +1,8 @@
# Makefile.in generated by automake 1.9.2 from Makefile.am.
# Makefile.in generated by automake 1.9.6 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004 Free Software Foundation, Inc.
# 2003, 2004, 2005 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
@ -14,8 +14,6 @@
@SET_MAKE@
SOURCES = $(operlog_la_SOURCES)
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
@ -71,7 +69,7 @@ depcomp = $(SHELL) $(top_srcdir)/autotools/depcomp
am__depfiles_maybe = depfiles
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(CC) $(DEFS) \
LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
$(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)

View file

@ -1,8 +1,8 @@
# Makefile.in generated by automake 1.9.2 from Makefile.am.
# Makefile.in generated by automake 1.9.6 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004 Free Software Foundation, Inc.
# 2003, 2004, 2005 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
@ -14,8 +14,6 @@
@SET_MAKE@
SOURCES = $(perlexttest_la_SOURCES)
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
@ -71,7 +69,7 @@ depcomp = $(SHELL) $(top_srcdir)/autotools/depcomp
am__depfiles_maybe = depfiles
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(CC) $(DEFS) \
LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
$(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)

View file

@ -1,8 +1,8 @@
# Makefile.in generated by automake 1.9.2 from Makefile.am.
# Makefile.in generated by automake 1.9.6 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004 Free Software Foundation, Inc.
# 2003, 2004, 2005 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
@ -14,8 +14,6 @@
@SET_MAKE@
SOURCES = $(asuka_la_SOURCES) $(bahamut14_la_SOURCES) $(bahamut18_la_SOURCES) $(client_la_SOURCES) $(hybrid6_la_SOURCES) $(hybrid7_la_SOURCES) $(ircup10_la_SOURCES) $(nefarious_la_SOURCES) $(plexus_la_SOURCES) $(plexus3_la_SOURCES) $(ultimate2_la_SOURCES) $(ultimate3_la_SOURCES) $(unreal31_la_SOURCES) $(unreal32_la_SOURCES)
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
@ -110,7 +108,7 @@ depcomp = $(SHELL) $(top_srcdir)/autotools/depcomp
am__depfiles_maybe = depfiles
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(CC) $(DEFS) \
LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
$(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)

View file

@ -1,8 +1,8 @@
# Makefile.in generated by automake 1.9.2 from Makefile.am.
# Makefile.in generated by automake 1.9.6 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004 Free Software Foundation, Inc.
# 2003, 2004, 2005 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
@ -15,8 +15,6 @@
@SET_MAKE@
SOURCES = $(quoteserv_la_SOURCES)
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
@ -72,7 +70,7 @@ depcomp = $(SHELL) $(top_srcdir)/autotools/depcomp
am__depfiles_maybe = depfiles
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(CC) $(DEFS) \
LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
$(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)

View file

@ -1,8 +1,8 @@
# Makefile.in generated by automake 1.9.2 from Makefile.am.
# Makefile.in generated by automake 1.9.6 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004 Free Software Foundation, Inc.
# 2003, 2004, 2005 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
@ -15,8 +15,6 @@
@SET_MAKE@
SOURCES = $(statserv_la_SOURCES)
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
@ -74,7 +72,7 @@ depcomp = $(SHELL) $(top_srcdir)/autotools/depcomp
am__depfiles_maybe = depfiles
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(CC) $(DEFS) \
LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
$(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)
@ -314,25 +312,25 @@ distclean-compile:
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/version.Plo@am__quote@
GeoIPCity.lo: geoip/GeoIPCity.c
@am__fastdepCC_TRUE@ if $(LIBTOOL) --mode=compile --tag=CC $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT GeoIPCity.lo -MD -MP -MF "$(DEPDIR)/GeoIPCity.Tpo" -c -o GeoIPCity.lo `test -f 'geoip/GeoIPCity.c' || echo '$(srcdir)/'`geoip/GeoIPCity.c; \
@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT GeoIPCity.lo -MD -MP -MF "$(DEPDIR)/GeoIPCity.Tpo" -c -o GeoIPCity.lo `test -f 'geoip/GeoIPCity.c' || echo '$(srcdir)/'`geoip/GeoIPCity.c; \
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/GeoIPCity.Tpo" "$(DEPDIR)/GeoIPCity.Plo"; else rm -f "$(DEPDIR)/GeoIPCity.Tpo"; exit 1; fi
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='geoip/GeoIPCity.c' object='GeoIPCity.lo' libtool=yes @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile --tag=CC $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o GeoIPCity.lo `test -f 'geoip/GeoIPCity.c' || echo '$(srcdir)/'`geoip/GeoIPCity.c
@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o GeoIPCity.lo `test -f 'geoip/GeoIPCity.c' || echo '$(srcdir)/'`geoip/GeoIPCity.c
GeoIPBitReader.lo: geoip/GeoIPBitReader.c
@am__fastdepCC_TRUE@ if $(LIBTOOL) --mode=compile --tag=CC $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT GeoIPBitReader.lo -MD -MP -MF "$(DEPDIR)/GeoIPBitReader.Tpo" -c -o GeoIPBitReader.lo `test -f 'geoip/GeoIPBitReader.c' || echo '$(srcdir)/'`geoip/GeoIPBitReader.c; \
@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT GeoIPBitReader.lo -MD -MP -MF "$(DEPDIR)/GeoIPBitReader.Tpo" -c -o GeoIPBitReader.lo `test -f 'geoip/GeoIPBitReader.c' || echo '$(srcdir)/'`geoip/GeoIPBitReader.c; \
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/GeoIPBitReader.Tpo" "$(DEPDIR)/GeoIPBitReader.Plo"; else rm -f "$(DEPDIR)/GeoIPBitReader.Tpo"; exit 1; fi
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='geoip/GeoIPBitReader.c' object='GeoIPBitReader.lo' libtool=yes @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile --tag=CC $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o GeoIPBitReader.lo `test -f 'geoip/GeoIPBitReader.c' || echo '$(srcdir)/'`geoip/GeoIPBitReader.c
@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o GeoIPBitReader.lo `test -f 'geoip/GeoIPBitReader.c' || echo '$(srcdir)/'`geoip/GeoIPBitReader.c
GeoIP.lo: geoip/GeoIP.c
@am__fastdepCC_TRUE@ if $(LIBTOOL) --mode=compile --tag=CC $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT GeoIP.lo -MD -MP -MF "$(DEPDIR)/GeoIP.Tpo" -c -o GeoIP.lo `test -f 'geoip/GeoIP.c' || echo '$(srcdir)/'`geoip/GeoIP.c; \
@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT GeoIP.lo -MD -MP -MF "$(DEPDIR)/GeoIP.Tpo" -c -o GeoIP.lo `test -f 'geoip/GeoIP.c' || echo '$(srcdir)/'`geoip/GeoIP.c; \
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/GeoIP.Tpo" "$(DEPDIR)/GeoIP.Plo"; else rm -f "$(DEPDIR)/GeoIP.Tpo"; exit 1; fi
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='geoip/GeoIP.c' object='GeoIP.lo' libtool=yes @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile --tag=CC $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o GeoIP.lo `test -f 'geoip/GeoIP.c' || echo '$(srcdir)/'`geoip/GeoIP.c
@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o GeoIP.lo `test -f 'geoip/GeoIP.c' || echo '$(srcdir)/'`geoip/GeoIP.c
mostlyclean-libtool:
-rm -f *.lo

View file

@ -1,8 +1,8 @@
# Makefile.in generated by automake 1.9.2 from Makefile.am.
# Makefile.in generated by automake 1.9.6 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004 Free Software Foundation, Inc.
# 2003, 2004, 2005 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
@ -14,8 +14,6 @@
@SET_MAKE@
SOURCES = $(template_la_SOURCES)
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
@ -71,7 +69,7 @@ depcomp = $(SHELL) $(top_srcdir)/autotools/depcomp
am__depfiles_maybe = depfiles
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(CC) $(DEFS) \
LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
$(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)

View file

@ -1,8 +1,8 @@
# Makefile.in generated by automake 1.9.2 from Makefile.am.
# Makefile.in generated by automake 1.9.6 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004 Free Software Foundation, Inc.
# 2003, 2004, 2005 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
@ -14,8 +14,6 @@
@SET_MAKE@
SOURCES = $(templateauth_la_SOURCES)
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
@ -71,7 +69,7 @@ depcomp = $(SHELL) $(top_srcdir)/autotools/depcomp
am__depfiles_maybe = depfiles
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(CC) $(DEFS) \
LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
$(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)

View file

@ -1,8 +1,8 @@
# Makefile.in generated by automake 1.9.2 from Makefile.am.
# Makefile.in generated by automake 1.9.6 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004 Free Software Foundation, Inc.
# 2003, 2004, 2005 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
@ -15,8 +15,6 @@
@SET_MAKE@
SOURCES = $(textserv_la_SOURCES)
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
@ -72,7 +70,7 @@ depcomp = $(SHELL) $(top_srcdir)/autotools/depcomp
am__depfiles_maybe = depfiles
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(CC) $(DEFS) \
LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
$(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)

View file

@ -18,8 +18,9 @@ endif
AM_CFLAGS = @PCRE_CFLAGS@ @CURL_CFLAGS@ -DNEOSTATSCORE @PERL_CFLAGS@ \
-I$(top_srcdir)/lib/event
neostats_LDADD = @PCRE_LIBS@ @CURL_LIBS@ @LIBDB@ @PERL_LDFLAGS@ \
$(top_srcdir)/lib/event/libevent.a
neostats_LDADD = @LIBDB@ @PERL_LDFLAGS@ \
$(top_srcdir)/lib/curl/libcurl.a $(top_srcdir)/lib/pcre/libpcre.a \
$(top_srcdir)/lib/event/libevent.a $(top_srcdir)/lib/nxml/libnxml.a
neostats_LDFLAGS = --export-dynamic @RDYNAMIC_FLAG@
noinst_HEADERS = confuselexer.l NeoStats.pm

View file

@ -1,8 +1,8 @@
# Makefile.in generated by automake 1.9.2 from Makefile.am.
# Makefile.in generated by automake 1.9.6 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004 Free Software Foundation, Inc.
# 2003, 2004, 2005 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
@ -15,8 +15,6 @@
@SET_MAKE@
SOURCES = $(neostats_SOURCES)
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
@ -94,13 +92,16 @@ am_neostats_OBJECTS = auth.$(OBJEXT) bans.$(OBJEXT) bots.$(OBJEXT) \
osfile.$(OBJEXT) updates.$(OBJEXT) MiniMessage.$(OBJEXT) \
MiniMessageGateway.$(OBJEXT) $(am__objects_1) $(am__objects_2)
neostats_OBJECTS = $(am_neostats_OBJECTS)
neostats_DEPENDENCIES = $(top_srcdir)/lib/event/libevent.a
neostats_DEPENDENCIES = $(top_srcdir)/lib/curl/libcurl.a \
$(top_srcdir)/lib/pcre/libpcre.a \
$(top_srcdir)/lib/event/libevent.a \
$(top_srcdir)/lib/nxml/libnxml.a
DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/include
depcomp = $(SHELL) $(top_srcdir)/autotools/depcomp
am__depfiles_maybe = depfiles
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(CC) $(DEFS) \
LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
$(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)
@ -259,8 +260,9 @@ neostats_SOURCES = auth.c bans.c bots.c channels.c commands.c \
AM_CFLAGS = @PCRE_CFLAGS@ @CURL_CFLAGS@ -DNEOSTATSCORE @PERL_CFLAGS@ \
-I$(top_srcdir)/lib/event
neostats_LDADD = @PCRE_LIBS@ @CURL_LIBS@ @LIBDB@ @PERL_LDFLAGS@ \
$(top_srcdir)/lib/event/libevent.a
neostats_LDADD = @LIBDB@ @PERL_LDFLAGS@ \
$(top_srcdir)/lib/curl/libcurl.a $(top_srcdir)/lib/pcre/libpcre.a \
$(top_srcdir)/lib/event/libevent.a $(top_srcdir)/lib/nxml/libnxml.a
neostats_LDFLAGS = --export-dynamic @RDYNAMIC_FLAG@
noinst_HEADERS = confuselexer.l NeoStats.pm