head 1.41; access; symbols XDS_0_9_3:1.41 XDS_0_9_2:1.41 XDS_0_9_1:1.40 XDS_0_9_0:1.39 last-version-in-peti-style:1.22 callback-semantic-rewrite:1.11.0.2; locks; strict; comment @# @; 1.41 date 2005.06.02.18.51.44; author rse; state Exp; branches; next 1.40; 1.40 date 2004.09.12.17.32.14; author rse; state Exp; branches; next 1.39; 1.39 date 2003.02.17.12.36.02; author rse; state Exp; branches; next 1.38; 1.38 date 2002.03.17.10.25.52; author rse; state Exp; branches; next 1.37; 1.37 date 2002.01.02.18.10.41; author rse; state Exp; branches; next 1.36; 1.36 date 2002.01.02.17.13.44; author rse; state Exp; branches; next 1.35; 1.35 date 2001.08.30.10.55.29; author simons; state Exp; branches; next 1.34; 1.34 date 2001.08.23.08.42.49; author simons; state Exp; branches; next 1.33; 1.33 date 2001.08.22.20.22.18; author simons; state Exp; branches; next 1.32; 1.32 date 2001.08.13.19.48.02; author rse; state Exp; branches; next 1.31; 1.31 date 2001.08.13.19.40.39; author rse; state Exp; branches; next 1.30; 1.30 date 2001.08.13.19.35.09; author rse; state Exp; branches; next 1.29; 1.29 date 2001.08.13.19.23.32; author rse; state Exp; branches; next 1.28; 1.28 date 2001.08.13.18.21.32; author rse; state Exp; branches; next 1.27; 1.27 date 2001.08.12.11.31.45; author rse; state Exp; branches; next 1.26; 1.26 date 2001.08.11.15.28.53; author rse; state Exp; branches; next 1.25; 1.25 date 2001.08.11.15.23.09; author rse; state Exp; branches; next 1.24; 1.24 date 2001.08.09.19.58.35; author rse; state Exp; branches; next 1.23; 1.23 date 2001.08.08.19.15.23; author rse; state Exp; branches; next 1.22; 1.22 date 2001.08.08.11.21.27; author simons; state Exp; branches; next 1.21; 1.21 date 2001.08.07.14.46.38; author simons; state Exp; branches; next 1.20; 1.20 date 2001.08.07.14.42.03; author simons; state Exp; branches; next 1.19; 1.19 date 2001.08.07.14.23.53; author rse; state Exp; branches; next 1.18; 1.18 date 2001.08.07.11.19.13; author simons; state Exp; branches; next 1.17; 1.17 date 2001.08.07.11.16.19; author simons; state Exp; branches; next 1.16; 1.16 date 2001.08.02.17.24.49; author simons; state Exp; branches; next 1.15; 1.15 date 2001.08.02.15.03.51; author simons; state Exp; branches; next 1.14; 1.14 date 2001.08.02.14.56.13; author simons; state Exp; branches; next 1.13; 1.13 date 2001.08.02.10.54.27; author simons; state Exp; branches; next 1.12; 1.12 date 2001.08.01.15.25.47; author simons; state Exp; branches; next 1.11; 1.11 date 2001.07.31.15.27.45; author simons; state Exp; branches 1.11.2.1; next 1.10; 1.10 date 2001.07.24.14.55.56; author simons; state Exp; branches; next 1.9; 1.9 date 2001.07.23.16.33.03; author simons; state Exp; branches; next 1.8; 1.8 date 2001.07.23.16.17.43; author simons; state Exp; branches; next 1.7; 1.7 date 2001.07.23.15.33.42; author simons; state Exp; branches; next 1.6; 1.6 date 2001.07.23.15.28.53; author simons; state Exp; branches; next 1.5; 1.5 date 2001.07.23.13.04.06; author simons; state Exp; branches; next 1.4; 1.4 date 2001.07.20.10.09.06; author simons; state Exp; branches; next 1.3; 1.3 date 2001.07.20.09.55.29; author simons; state Exp; branches; next 1.2; 1.2 date 2001.07.20.09.54.34; author simons; state Exp; branches; next 1.1; 1.1 date 2001.07.20.09.53.37; author simons; state Exp; branches; next ; 1.11.2.1 date 2001.08.01.11.24.22; author simons; state Exp; branches; next 1.11.2.2; 1.11.2.2 date 2001.08.01.15.07.47; author simons; state Exp; branches; next ; desc @@ 1.41 log @Bumped year in copyright messages for year 2005. @ text @## ## OSSP xds - Extensible Data Serialization ## Copyright (c) 2001-2005 Ralf S. Engelschall ## Copyright (c) 2001-2005 The OSSP Project ## Copyright (c) 2001-2005 Cable & Wireless ## ## This file is part of OSSP xds, an extensible data serialization ## library which can be found at http://www.ossp.org/pkg/lib/xds/. ## ## Permission to use, copy, modify, and distribute this software for ## any purpose with or without fee is hereby granted, provided that ## the above copyright notice and this permission notice appear in all ## copies. ## ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ## SUCH DAMAGE. ## ## Makefile.in: make(1) build procedure ## @@SET_MAKE@@ # installation paths DESTDIR = TOP = . prefix = @@prefix@@ exec_prefix = @@exec_prefix@@ bindir = @@bindir@@ libdir = @@libdir@@ includedir = @@includedir@@ mandir = @@mandir@@ # build tools CC = @@CC@@ LIBTOOL = ./libtool SHTOOL = ./shtool CPPFLAGS = @@CPPFLAGS@@ @@DEFS@@ CFLAGS = @@CFLAGS@@ LDFLAGS = @@LDFLAGS@@ LIBS = @@xdr_lib@@ @@LIBS@@ POD2MAN = @@POD2MAN@@ RM = rm -f RMDIR = rmdir # list of objects LIB_NAME = libxds.la LIB_OBJS = xds.lo xds_engine_xdr.lo xds_engine_xml.lo TST_SRCS = xds_test_lib.c xds_test_xdr.c xds_test_xml.c # file containing the official version information _VERSION_FILE = \ xds_version.c # helper macro for updating version information _VERSION = \ $(SHTOOL) version -lc -nXDS -pxds_ $$OPT $(_VERSION_FILE);\ V=`$(SHTOOL) version -lc -dlong $(_VERSION_FILE)`;\ sed -e "s/Version .*(.*)/Version $$V/g" README.n && mv README.n README # helper macro for generating a Unix manual page _MANPAGE = \ V1=`$(SHTOOL) version -lc -dshort $(_VERSION_FILE)`; \ V2=`$(SHTOOL) version -lc -dlong $(_VERSION_FILE)`; \ D=`$(SHTOOL) version -lc -dlong $(_VERSION_FILE) |\ sed -e 's;.*(;;' -e 's;).*;;'`; \ $(POD2MAN) --section=$${SEC} --center="$${ONELINE}" \ --release="$$D" --date="$${NAME} $$V1" $(S)$${BASENAME}.pod |\ sed -e "s;XDS_VERSION_STR;$$V2;" >$${BASENAME}.$${SEC} .SUFFIXES: .SUFFIXES: .c .lo .PHONY: clean distclean realclean check .c.lo: $(LIBTOOL) --mode=compile --quiet $(CC) -c $(CPPFLAGS) $(CFLAGS) $< all: $(LIB_NAME) xds.3 xds-config.1 $(LIB_NAME): $(LIB_OBJS) $(LIBTOOL) --mode=link --quiet $(CC) -o $(LIB_NAME) $(LIB_OBJS) -rpath $(libdir) \ -version-info `$(SHTOOL) version -l c -d libtool xds_version.c` clean: -$(RM) $(LIB_NAME) -$(RM) *.lo *.o -$(RM) ./.*.t ./.*.l -$(RM) xds.3 -$(RM) xds-config.1 -$(RM) xds-config distclean: clean -$(RM) config.log config.status Makefile libtool config.h -$(RM) -r .libs >/dev/null 2>&1 || true -$(RM) xds.h realclean: distclean -$(RM) config.guess config.sub ltmain.sh libtool.m4 -$(RM) configure config.h.in -$(RM) shtool check: $(LIB_NAME) $(TST_SRCS) -@@for filename in $(TST_SRCS); do \ for testname in `grep "#ifdef XDS_TEST_" $$filename | sed -e 's;^#ifdef ;;'`; do \ filebase=`echo $$filename | sed -e 's;\.c;;'`; \ testbase=`echo $$testname | sed -e 's;^XDS_TEST_;;'`; \ if [ ! -f ".$$testbase.t" ]; then \ echo "$(LIBTOOL) --mode=link --quiet $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -D$$testname -o .$$testbase.t $$filebase.c $(LIB_NAME) $(LIBS)"; \ $(LIBTOOL) --mode=link --quiet $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -D$$testname -o .$$testbase.t $$filebase.c $(LIB_NAME) $(LIBS); \ fi; \ done; \ done; \ sh ./xds_test.sh "$(LIBTOOL) --mode=execute" ./.*.t # build Unix manual pages xds-config.1: xds-config.pod $(_VERSION_FILE) BASENAME="xds-config"; SEC=1; \ NAME="XDS"; ONELINE="Extensible Data Serialization"; \ $(_MANPAGE) xds.3: xds.pod $(_VERSION_FILE) BASENAME="xds"; SEC=3; \ NAME="XDS"; ONELINE="Extensible Data Serialization"; \ $(_MANPAGE) # build GNU style ChangeLog ChangeLog:: cvs2cl --revisions --branches --tags --no-wrap --separate-header --gmt -$(RM) ChangeLog.bak # perform standard installation procedure install: all $(SHTOOL) mkdir -p -f -m 755 $(DESTDIR)$(bindir) $(SHTOOL) mkdir -p -f -m 755 $(DESTDIR)$(includedir) $(SHTOOL) mkdir -p -f -m 755 $(DESTDIR)$(libdir) $(SHTOOL) mkdir -p -f -m 755 $(DESTDIR)$(mandir)/man1 $(SHTOOL) mkdir -p -f -m 755 $(DESTDIR)$(mandir)/man3 $(SHTOOL) install -c -m 755 xds-config $(DESTDIR)$(bindir)/xds-config $(SHTOOL) install -c -m 644 xds-config.1 $(DESTDIR)$(mandir)/man1/xds-config.1 $(SHTOOL) install -c -m 644 xds.3 $(DESTDIR)$(mandir)/man3/xds.3 $(SHTOOL) install -c -m 644 xds.h $(DESTDIR)$(includedir)/xds.h @@$(LIBTOOL) --mode=install $(SHTOOL) install -c -m 644 \ libxds.la $(DESTDIR)$(libdir)/libxds.la # perform standard uninstallation procedure uninstall: -@@$(LIBTOOL) --mode=uninstall $(RM) $(DESTDIR)$(libdir)/libxds.la -$(RM) $(DESTDIR)$(includedir)/xds.h -$(RM) $(DESTDIR)$(mandir)/man3/xds.3 -$(RM) $(DESTDIR)$(mandir)/man1/xds-config.1 -$(RM) $(DESTDIR)$(bindir)/xds-config -$(RMDIR) $(DESTDIR)$(mandir)/man3 -$(RMDIR) $(DESTDIR)$(mandir)/man1 -$(RMDIR) $(DESTDIR)$(mandir) -$(RMDIR) $(DESTDIR)$(libdir) -$(RMDIR) $(DESTDIR)$(includedir) -$(RMDIR) $(DESTDIR)$(bindir) # Dependencies $(LIB_OBJS): xds_p.h xds.h @ 1.40 log @Bumped year in copyright messages for year 2004. @ text @d3 3 a5 3 ## Copyright (c) 2001-2004 Ralf S. Engelschall ## Copyright (c) 2001-2004 The OSSP Project ## Copyright (c) 2001-2004 Cable & Wireless @ 1.39 log @upgrade to standard OSSP copyright and bump year to 2003 @ text @d3 3 a5 3 ## Copyright (c) 2001-2003 Ralf S. Engelschall ## Copyright (c) 2001-2003 The OSSP Project ## Copyright (c) 2001-2003 Cable & Wireless Germany @ 1.38 log @update texts @ text @d3 3 a5 2 ## Copyright (c) 2001-2002 The OSSP Project (http://www.ossp.org/) ## Copyright (c) 2001-2002 Cable & Wireless Deutschland (http://www.cw.com/de/) @ 1.37 log @switch to devtool @ text @d2 1 a2 1 ## XDS - OSSP Extensible Data Serialization Library d6 2 a7 2 ## This file is part of OSSP XDS, an extensible data serialization ## library which can be found at http://www.ossp.org/pkg/xds/. @ 1.36 log @bump copyright year @ text @a166 19 # roll a distribution tarball dist: distclean @@$(SHTOOL) fixperm -v .; \ V=`$(SHTOOL) version -l c -d short xds_version.c`; \ $(SHTOOL) tarball -o xds-$${V}.tar.gz -d str-$${V} -u ossp -g ossp \ -e 'CVS,\.cvsignore,\.[ao],^\.,autogen.sh' -c 'gzip --best' . # increase or update version information new-version: @@V="$(VERSION)"; \ if [ ".$$V" != . ]; then \ OPT="-s$$V"; \ else \ OPT="-e"; \ fi; \ $(_VERSION) update-version: @@OPT="-s`$(SHTOOL) version -lc -dshort $(_VERSION_FILE)`" && $(_VERSION) @ 1.35 log @- Removed _GNU_SOURCE define, which is only needed when compiling on Linux with the -ansi flag set. - Added @@xdr_lib@@ to LIBS define so that the test suites are linked with it when necessary on that platform. @ text @d3 2 a4 2 ## Copyright (c) 2001 The OSSP Project (http://www.ossp.org/) ## Copyright (c) 2001 Cable & Wireless Deutschland (http://www.cw.com/de/) @ 1.34 log @- Moved all float-related stuff into xds_engine_xdr.c so that we don't need any prototypes or structure declarations in the public header file. - Renamed xds_float_t to my_float. - Renamed float2xds_float() to float2myfloat(). @ text @d46 1 a46 1 CPPFLAGS = @@CPPFLAGS@@ @@DEFS@@ -D_GNU_SOURCE d49 1 a49 1 LIBS = @@LIBS@@ @ 1.33 log @Added the float2xds_float.c module to the list of library objects. @ text @d56 1 a56 1 LIB_OBJS = xds.lo xds_engine_xdr.lo xds_engine_xml.lo float2xds-float.lo @ 1.32 log @Remove trailing whitespaces on all non-generated files. @ text @d56 1 a56 1 LIB_OBJS = xds.lo xds_engine_xdr.lo xds_engine_xml.lo @ 1.31 log @cleanup cleanup targets ;) again @ text @d5 1 a5 1 ## d8 1 a8 1 ## d13 1 a13 1 ## @ 1.30 log @Add target for building ChangeLog from CVS logs @ text @d94 2 a95 1 -$(RM) $(LIB_OBJS) a96 1 -$(RM) $(LIB_NAME) d98 2 d102 1 a102 1 -$(RM) config.log config.status Makefile libtool d107 3 a109 1 -$(RM) configure @ 1.29 log @Add autogen.sh for generating (after "make realclean") and/or updating (after new versions are released) the build environment. @ text @d130 5 @ 1.28 log @Try to fix cleaning targets @ text @d163 1 a163 1 -e 'CVS,\.cvsignore,\.[ao],^\.' -c 'gzip --best' . @ 1.27 log @Hhmm... who has introduced ossp.com?! Our project's domain is ossp.org, of course. @ text @d51 2 d146 11 a156 11 @@$(LIBTOOL) --mode=uninstall $(RM) $(DESTDIR)$(libdir)/libxds.la $(RM) $(DESTDIR)$(includedir)/xds.h $(RM) $(DESTDIR)$(mandir)/man3/xds.3 $(RM) $(DESTDIR)$(mandir)/man1/xds-config.1 $(RM) $(DESTDIR)$(bindir)/xds-config $(RMDIR) $(DESTDIR)$(mandir)/man3 $(RMDIR) $(DESTDIR)$(mandir)/man1 $(RMDIR) $(DESTDIR)$(mandir) $(RMDIR) $(DESTDIR)$(libdir) $(RMDIR) $(DESTDIR)$(includedir) $(RMDIR) $(DESTDIR)$(bindir) @ 1.26 log @libtool is generated. @ text @d7 1 a7 1 ## library which can be found at http://www.ossp.com/pkg/xds/. @ 1.25 log @First cut for GNU Libtool 1.4 & GNU Shtool 1.5 support. This needs a little bit more cleanup which will follow later, but I want to flush my pending work now in order to continue with other projects. The XDS build environment now is in sync with the usual style for OSSP libraries. @ text @d98 1 a98 1 -$(RM) config.log config.status Makefile @ 1.24 log @Use the license consistently. @ text @d30 46 a75 12 CC = @@CC@@ AR = ar RANLIB = @@RANLIB@@ CPPFLAGS = @@CPPFLAGS@@ @@DEFS@@ -D_GNU_SOURCE CFLAGS = @@CFLAGS@@ LDFLAGS = @@LDFLAGS@@ LIBS = @@LIBS@@ POD2MAN = @@POD2MAN@@ LIB_NAME = libxds.a LIB_OBJS = xds.o xds_engine_xdr.o xds_engine_xml.o TST_SRCS = xds_test_lib.c xds_test_xdr.c xds_test_xml.c d78 12 a89 1 .SUFFIXES: .c .o .pod .3 d91 5 a95 1 .PHONY: clean distclean realclean check docs d97 4 a100 22 .c.o: $(CC) $(CPPFLAGS) $(WARNFLAGS) $(OPTFLAGS) $(CFLAGS) -c $< .pod.3: $(POD2MAN) --section=3 --center="XDS Library Programmer API" $< >$@@ all: $(LIB_NAME) xds.3 $(LIB_NAME): $(LIB_OBJS) @@rm -f $@@ $(AR) cr $@@ $(LIB_OBJS) $(RANLIB) $@@ clean:: @@(cd docs && $(MAKE) $@@) -rm -f $(LIB_OBJS) -rm -f ./.*.t ./.*.l -rm -f $(LIB_NAME) -rm -f xds.3 distclean:: clean @@(cd docs && $(MAKE) $@@) -rm -f config.log config.status Makefile d102 2 a103 2 realclean:: distclean -rm -f configure d111 2 a112 2 echo "$(CC) $(CPPFLAGS) $(WARNFLAGS) $(OPTFLAGS) $(CFLAGS) $(LDFLAGS) -D$$testname -o .$$testbase.t $$filebase.c $(LIB_NAME)"; \ $(CC) $(CPPFLAGS) $(WARNFLAGS) $(OPTFLAGS) $(CFLAGS) $(LDFLAGS) -D$$testname -o .$$testbase.t $$filebase.c $(LIB_NAME); \ d116 1 a116 1 sh ./xds_test.sh ./.*.t d118 56 a173 2 docs: @@(cd docs && $(MAKE)) @ 1.23 log @First cut of the ruthless style adjustments to OSSP XDS: o adjust source tree to follow OSSP source tree style by heavily combining sources into smaller sets (needs more work when still missing parts are added later) o automatic re-indentation of sources with GNU indent (still needs manual review and adjustments; will follow) These two heavy steps were mostly done automatically with the help of two helper scripts written in Perl. So expect more manual adjustments to follow... @ text @d1 28 a28 1 # Build libxds. @ 1.22 log @Implemented xml engines for encoding or decoding strings plus the apropriate test cases. @ text @d3 12 a14 29 CC = @@CC@@ AR = ar RANLIB = @@RANLIB@@ CPPFLAGS = @@CPPFLAGS@@ @@DEFS@@ -D_GNU_SOURCE CFLAGS = @@CFLAGS@@ LDFLAGS = @@LDFLAGS@@ XML64_OBJS = @@xml_64_bit_objects@@ XML_OBJS = xml-encode-int32.o xml-decode-int32.o \ xml-encode-uint32.o xml-decode-uint32.o \ xml-encode-double.o xml-decode-double.o \ xml-encode-begin.o xml-decode-begin.o \ xml-encode-end.o xml-decode-end.o \ xml-encode-octetstream.o xml-decode-octetstream.o \ xml-encode-string.o xml-decode-string.o \ $(XML64_OBJS) XDR64_OBJS = @@xdr_64_bit_objects@@ XDR_OBJS = xdr-encode-int32.o xdr-decode-int32.o \ xdr-encode-uint32.o xdr-decode-uint32.o \ xdr-encode-double.o xdr-decode-double.o \ xdr-encode-octetstream.o xdr-decode-octetstream.o \ xdr-encode-string.o xdr-decode-string.o \ $(XDR64_OBJS) XDS_OBJS = decode.o destroy.o encode.o getbuffer.o init.o register.o \ setbuffer.o unregister.o vdecode.o vencode.o find-engine.o \ set-capacity.o d16 4 a19 1 OBJS = $(XDS_OBJS) $(XDR_OBJS) $(XML_OBJS) d23 2 d26 1 a26 1 .PHONY: clean distclean realclean check docs d28 1 a28 3 all: libxds.a libxds.a: $(OBJS) d30 1 a30 1 $(AR) cr $@@ $(OBJS) a33 1 @@(cd regression-tests && $(MAKE) $@@) d35 4 a38 2 rm -f $(OBJS) rm -f libxds.a a40 1 @@(cd regression-tests && $(MAKE) $@@) d42 1 a42 1 rm -f config.log config.status Makefile d45 1 a45 1 rm -f configure d47 12 a58 2 check: libxds.a (cd regression-tests && $(MAKE) check) d65 2 a66 2 $(XDS_OBJS): internal.h xds.h $(XDR_OBJS) $(XML_OBJS): xds.h @ 1.21 log @Added phony declaration for those targets not associated with a file in the repository. @ text @d18 1 @ 1.20 log @Added docs target to build the manual. @ text @d37 2 @ 1.19 log @xds.3 is no longer in this area... @ text @d61 3 @ 1.18 log @clean and distclean targets will now be executed in docs and regression-tests, too. @ text @d37 1 a37 1 all: libxds.a xds.3 @ 1.17 log @Added docs directory to the build system. @ text @d46 1 d52 1 @ 1.16 log @Implemented XML engines for octet streams. The base64-encoding code still needs some work, though: The test with an empty string currently fails. Also we had to do some weird work-arounds in the decoding routine because base64_decode does not honor srclen. @ text @a43 3 xds.3: xds.pod pod2man --section=3 --center="XDS Library Programmer API " xds.pod >xds.3 d47 1 a47 1 rm -f libxds.a test.o test xds.3 @ 1.15 log @Tabified the makefiles. @ text @d17 1 @ 1.14 log @Build modules that need 64-bit support only if 64-bit data types have been found! @ text @d3 3 a5 3 CC = @@CC@@ AR = ar RANLIB = @@RANLIB@@ d7 3 a9 3 CPPFLAGS = @@CPPFLAGS@@ @@DEFS@@ -D_GNU_SOURCE CFLAGS = @@CFLAGS@@ LDFLAGS = @@LDFLAGS@@ d11 7 a17 7 XML64_OBJS = @@xml_64_bit_objects@@ XML_OBJS = xml-encode-int32.o xml-decode-int32.o \ xml-encode-uint32.o xml-decode-uint32.o \ xml-encode-double.o xml-decode-double.o \ xml-encode-begin.o xml-decode-begin.o \ xml-encode-end.o xml-decode-end.o \ $(XML64_OBJS) d19 7 a25 7 XDR64_OBJS = @@xdr_64_bit_objects@@ XDR_OBJS = xdr-encode-int32.o xdr-decode-int32.o \ xdr-encode-uint32.o xdr-decode-uint32.o \ xdr-encode-double.o xdr-decode-double.o \ xdr-encode-octetstream.o xdr-decode-octetstream.o \ xdr-encode-string.o xdr-decode-string.o \ $(XDR64_OBJS) @ 1.13 log @Improved dependencies to be more accurate. @ text @d3 3 a5 3 CC = @@CC@@ AR = ar RANLIB = @@RANLIB@@ d7 3 a9 3 CPPFLAGS = @@CPPFLAGS@@ @@DEFS@@ -D_GNU_SOURCE CFLAGS = @@CFLAGS@@ LDFLAGS = @@LDFLAGS@@ d11 7 a17 7 XML_OBJS = xml-encode-int32.o xml-decode-int32.o \ xml-encode-uint32.o xml-decode-uint32.o \ xml-encode-int64.o xml-decode-int64.o \ xml-encode-uint64.o xml-decode-uint64.o \ xml-encode-double.o xml-decode-double.o \ xml-encode-begin.o xml-decode-begin.o \ xml-encode-end.o xml-decode-end.o d19 7 a25 7 XDR_OBJS = xdr-encode-int32.o xdr-decode-int32.o \ xdr-encode-uint32.o xdr-decode-uint32.o \ xdr-encode-int64.o xdr-decode-int64.o \ xdr-encode-uint64.o xdr-decode-uint64.o \ xdr-encode-double.o xdr-decode-double.o \ xdr-encode-octetstream.o xdr-decode-octetstream.o \ xdr-encode-string.o xdr-decode-string.o \ @ 1.12 log @Merged the whole contents of branch "callback-semantic-rewrite" into the main branch. The changes there include: - A change of the callback semantics; callbacks do now return XDS_ERR_(UNDER|OVER)FLOW in case the buffer size doesn't fit. Rather than passing the differing byte size through the return code, it is stored in the location used_buffer_size points to -- a new parameter provided to all callbacks. In order to implement this, the framework, all callbacks and most of the test suits had to be adapted. - internal.h now provides the macro xds_check_parameter(), which can be used to verify the contents of function parameters with assert() and if in one line. If assert()s are deactivated, the routine will still return XDS_ERR_INVALID_ARG. Because of this change, internal.h now includes the system header assert.h. This means that this include coulde be removed from almost all modules. - internal.h now provides the macros xds_init_(en|de)coding_engine(). These can be used to comfortably verify a callback's parameters and to verify the buffer size. All engines have been rewritten to use these. @ text @d27 1 a27 1 OBJS = decode.o destroy.o encode.o getbuffer.o init.o register.o \ d29 3 a31 1 set-capacity.o $(XDR_OBJS) $(XML_OBJS) d63 2 a64 1 $(OBJS): internal.h xds.h @ 1.11 log @Implemented xml_encode_begin(), xml_decode_begin(), xml_encode_end(), and xml_decode_end(). @ text @d11 16 d29 1 a29 11 set-capacity.o xdr-encode-int32.o xdr-encode-int64.o \ xdr-encode-uint32.o xdr-encode-uint64.o xdr-decode-int32.o \ xdr-decode-int64.o xdr-decode-uint32.o xdr-decode-uint64.o \ xdr-encode-octetstream.o xdr-decode-octetstream.o \ xdr-encode-string.o xdr-decode-string.o xdr-encode-double.o \ xdr-decode-double.o xml-encode-int32.o xml-decode-int32.o \ xml-decode-int64.o xml-decode-uint32.o xml-decode-uint64.o \ xml-encode-int64.o xml-encode-uint32.o xml-encode-uint64.o \ xml-encode-double.o xml-decode-double.o \ xml-encode-begin.o xml-decode-begin.o \ xml-encode-end.o xml-decode-end.o @ 1.11.2.1 log @Temporarily disabled building of xml engines. @ text @a10 16 XML_OBJS = xml-encode-int32.o xml-decode-int32.o \ xml-encode-uint32.o xml-decode-uint32.o \ xml-encode-int64.o xml-decode-int64.o \ xml-encode-uint64.o xml-decode-uint64.o \ xml-encode-double.o xml-decode-double.o \ xml-encode-begin.o xml-decode-begin.o \ xml-encode-end.o xml-decode-end.o XDR_OBJS = xdr-encode-int32.o xdr-decode-int32.o \ xdr-encode-uint32.o xdr-decode-uint32.o \ xdr-encode-int64.o xdr-decode-int64.o \ xdr-encode-uint64.o xdr-decode-uint64.o \ xdr-encode-double.o xdr-decode-double.o \ xdr-encode-octetstream.o xdr-decode-octetstream.o \ xdr-encode-string.o xdr-decode-string.o \ d13 11 a23 1 set-capacity.o $(XDR_OBJS) @ 1.11.2.2 log @Activated the XML engines again. @ text @d29 1 a29 1 set-capacity.o $(XDR_OBJS) $(XML_OBJS) @ 1.10 log @Removed rules for compiling C++ code: We don't have any. @ text @d21 3 a23 1 xml-encode-double.o xml-decode-double.o @ 1.9 log @Implemented encoding and decoding of doubles in XML. @ text @a25 3 .cpp.o: $(CXX) $(CPPFLAGS) $(WARNFLAGS) $(OPTFLAGS) $(CXXFLAGS) -c $< @ 1.8 log @Added XML implementations for uint32, int64, and uint64. @ text @d20 2 a21 1 xml-encode-int64.o xml-encode-uint32.o xml-encode-uint64.o @ 1.7 log @Removed redundant include of sys/types.h. @ text @d18 3 a20 1 xdr-decode-double.o xml-encode-int32.o xml-decode-int32.o @ 1.6 log @Added skeleton for the int32 XML encoding engine. @ text @d18 1 a18 1 xdr-decode-double.o xml-encode-int32.o @ 1.5 log @Added skeleton code for encoding and decoding of double types. @ text @d18 1 a18 1 xdr-decode-double.o @ 1.4 log @Hard-code the define of _GNU_SOURCE for the moment. @ text @d17 3 a19 1 xdr-encode-string.o xdr-decode-string.o @ 1.3 log @Solved the dependency thing. @ text @d7 1 a7 1 CPPFLAGS = @@CPPFLAGS@@ @@DEFS@@ @ 1.2 log @Made comments in makefiles more accurate. @ text @d51 1 a51 24 decode.o: internal.h xds.h destroy.o: internal.h xds.h encode.o: internal.h xds.h find-engine.o: internal.h xds.h getbuffer.o: internal.h xds.h init.o: internal.h xds.h register.o: internal.h xds.h set-capacity.o: internal.h xds.h setbuffer.o: internal.h xds.h unregister.o: internal.h xds.h vdecode.o: internal.h xds.h vencode.o: internal.h xds.h xdr-decode-int32.o: internal.h xds.h xdr-decode-int64.o: internal.h xds.h xdr-decode-octetstream.o: internal.h xds.h xdr-decode-string.o: internal.h xds.h xdr-decode-uint32.o: internal.h xds.h xdr-decode-uint64.o: internal.h xds.h xdr-encode-int32.o: internal.h xds.h xdr-encode-int64.o: internal.h xds.h xdr-encode-octetstream.o: internal.h xds.h xdr-encode-string.o: internal.h xds.h xdr-encode-uint32.o: internal.h xds.h xdr-encode-uint64.o: internal.h xds.h @ 1.1 log @Added skeleton autoconf support. @ text @d1 1 a1 1 # Build libxds and support/test programs. @