OSSP CVS Repository

ossp - History for /ossp-pkg/xds/regression-tests/xds-mystruct.c
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Directory]  [Show Milestones

DateVersion Description
2001-Aug-08 21:15    1.7    Check-in [634]: 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... By rse. (diff)

2001-Aug-01 17:25    1.6    Check-in [591]: 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. By simons.

2001-Aug-01 15:26    1.5.2.3    Check-in [4265] on branch callback-semantic-rewrite: Now that internal.h includes assert.h we don't need to do that anymore. By simons. (diff)
2001-Aug-01 14:04    1.5.2.2    Check-in [4260] on branch callback-semantic-rewrite: Rewrote formatting engines for the new semantics. By simons. (diff)
2001-Aug-01 13:27    1.5.2.1    Check-in [4254] on branch callback-semantic-rewrite: Modified test suits to compile with the new headers. By simons. (diff)
2001-Jul-24 17:44    1.5    Check-in [4244]: Comparing the new structure instance with the old one by memcmp() was bound to fail because on some architectures padding is inserted -- and those padding bytes didn't match even though the structure's values were identical. Thus we do now compare element by element.

Furthermore, the encoding and decoding engines way of predicting the correct buffer size ("sizeof(struct mystruct)") failed also because it didn't take padding into account. Fixed that also. By simons. (diff)

2001-Jul-23 17:33    1.4    Check-in [560]: Removed redundant include of sys/types.h. By simons. (diff)
2001-Jul-20 12:56    1.3    Check-in [550]: Use xds_(u)int(8|16|32|64) instead of the system defines. By simons.
2001-Jul-19 11:38    1.2    Check-in [4214]: Include sys/types.h for int32_t and others. By simons. (diff)
2001-Jul-18 21:03    1.1    Check-in [4212]: Added test suite that will verify that it is okay to call xds_encode() in an encoding engine and xds_decode() in a decoding engine. By simons.

CVSTrac 2.0.1