head 1.15; access; symbols last-version-in-peti-style:1.14 callback-semantic-rewrite:1.10.0.2; locks; strict; comment @# @; 1.15 date 2001.08.08.19.15.27; author rse; state dead; branches; next 1.14; 1.14 date 2001.08.08.11.21.27; author simons; state Exp; branches; next 1.13; 1.13 date 2001.08.02.17.24.50; author simons; state Exp; branches; next 1.12; 1.12 date 2001.08.02.14.56.14; author simons; state Exp; branches; next 1.11; 1.11 date 2001.08.01.15.25.50; author simons; state Exp; branches; next 1.10; 1.10 date 2001.07.24.14.55.56; author simons; state Exp; branches 1.10.2.1; next 1.9; 1.9 date 2001.07.23.16.33.04; author simons; state Exp; branches; next 1.8; 1.8 date 2001.07.23.16.17.44; author simons; state Exp; branches; next 1.7; 1.7 date 2001.07.23.15.57.48; author simons; state Exp; branches; next 1.6; 1.6 date 2001.07.23.13.05.24; author simons; state Exp; branches; next 1.5; 1.5 date 2001.07.20.11.22.18; author simons; state Exp; branches; next 1.4; 1.4 date 2001.07.20.11.05.55; author simons; state Exp; branches; next 1.3; 1.3 date 2001.07.20.10.09.06; author simons; state Exp; branches; next 1.2; 1.2 date 2001.07.20.09.54.35; author simons; state Exp; branches; next 1.1; 1.1 date 2001.07.20.09.53.38; author simons; state Exp; branches; next ; 1.10.2.1 date 2001.08.01.11.24.45; author simons; state Exp; branches; next 1.10.2.2; 1.10.2.2 date 2001.08.01.15.05.31; author simons; state Exp; branches; next ; desc @@ 1.15 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 @# Build and run the regression tests for libxds. CC = @@CC@@ AR = ar RANLIB = @@RANLIB@@ CPPFLAGS = @@CPPFLAGS@@ @@DEFS@@ -D_GNU_SOURCE CFLAGS = @@CFLAGS@@ LDFLAGS = @@LDFLAGS@@ @@xdr_lib@@ -L.. TESTS64 = @@tests_64_bit@@ TESTS = xds-core.exe xds-find-engine.exe xds-register.exe xds-encode.exe \ xds-getbuffer.exe xds-decode.exe xds-setbuffer.exe xds-engine-restart.exe \ xdr-uint32.exe xdr-int32.exe xdr-octetstream.exe xdr-octetstream-empty.exe \ xdr-string.exe xdr-string-empty.exe xml-uint32.exe xml-int32.exe \ xml-double.exe xml-octetstream.exe xml-octetstream-empty.exe \ xml-string.exe xml-string-empty.exe $(TESTS64) .SUFFIXES: .SUFFIXES: .c .exe .c.exe: $(CC) $(CPPFLAGS) $(WARNFLAGS) $(OPTFLAGS) $(CFLAGS) $(LDFLAGS) -o $@@ $< -lxds all: $(TESTS) check: all @@./.run-tests $(TESTS) ../libxds.a: (cd .. && $(MAKE) libxds.a) clean:: rm -f $(TESTS) *.log distclean:: clean rm -f Makefile realclean:: distclean # Dependencies $(TESTS): ../libxds.a ../internal.h ../xds.h @ 1.14 log @Implemented xml engines for encoding or decoding strings plus the apropriate test cases. @ text @@ 1.13 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 @d16 2 a17 1 xml-double.exe xml-octetstream.exe xml-octetstream-empty.exe $(TESTS64) @ 1.12 log @Build modules that need 64-bit support only if 64-bit data types have been found! @ text @d16 1 a16 1 xml-double.exe $(TESTS64) @ 1.11 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 @d11 1 d14 3 a16 4 xdr-uint32.exe xdr-int32.exe xdr-uint64.exe xdr-int64.exe \ xdr-octetstream.exe xdr-octetstream-empty.exe xdr-string.exe \ xdr-string-empty.exe xds-mystruct.exe \ xml-uint32.exe xml-int32.exe xml-uint64.exe xml-int64.exe xml-double.exe @ 1.10 log @Removed rules for compiling C++ code: We don't have any. @ text @d15 2 a16 2 xdr-string-empty.exe xds-mystruct.exe xml-uint32.exe xml-int32.exe \ xml-uint64.exe xml-int64.exe xml-double.exe @ 1.10.2.1 log @Temporarily disabled building of xml test suites. @ text @d15 2 a16 4 xdr-string-empty.exe xds-mystruct.exe # xml-uint32.exe xml-int32.exe \ # xml-uint64.exe xml-int64.exe xml-double.exe @ 1.10.2.2 log @Enabled XML tests again. @ text @d15 4 a18 2 xdr-string-empty.exe xds-mystruct.exe \ xml-uint32.exe xml-int32.exe xml-uint64.exe xml-int64.exe xml-double.exe @ 1.9 log @Implemented encoding and decoding of doubles in XML. @ text @a23 3 .cpp.exe: $(CXX) $(CPPFLAGS) $(WARNFLAGS) $(OPTFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@@ $< -lxds @ 1.8 log @Added XML implementations for uint32, int64, and uint64. @ text @d16 1 a16 1 xml-uint64.exe xml-int64.exe @ 1.7 log @Implemented encoding and decoding of int32 values in XML. @ text @d15 2 a16 1 xdr-string-empty.exe xds-mystruct.exe xml-int32.exe @ 1.6 log @Don't erase .run-tests script at distclean anymore. @ text @d15 1 a15 1 xdr-string-empty.exe xds-mystruct.exe @ 1.5 log @Insert path of "bash" into the run-tests script. @ text @d37 1 a37 1 rm -f Makefile .run-tests @ 1.4 log @Check whether libnsl has to be linked for the xdr_xxx() routines. @ text @d37 1 a37 1 rm -f Makefile @ 1.3 log @Hard-code the define of _GNU_SOURCE for the moment. @ text @d9 1 a9 1 LDFLAGS = @@LDFLAGS@@ -L.. @ 1.2 log @Made comments in makefiles more accurate. @ text @d7 1 a7 1 CPPFLAGS = @@CPPFLAGS@@ @@DEFS@@ d44 1 a44 1 $(TESTS): ../libxds.a @ 1.1 log @Added skeleton autoconf support. @ text @d1 1 a1 1 # Build and run the regression tests. @