]> mj.ucw.cz Git - libucw.git/commit
substantially changed the interface again
authorRobert Spalek <robert@ucw.cz>
Thu, 20 Apr 2006 10:50:44 +0000 (12:50 +0200)
committerRobert Spalek <robert@ucw.cz>
Thu, 20 Apr 2006 10:50:44 +0000 (12:50 +0200)
commitcbc4fc73a664cb0bdc84658989a7a38ad3524004
tree301a963a91deb559b9c0abdfe757b0cb2fbaf2da
parentb48097fe5ddf0d0a6b7df4d2ebc4c9f6110edaa3
substantially changed the interface again

I realised that in the last interface I couldn't distinguish between static
and dynamic arrays of length exactly 1.  thinking about how to resolve the
problem led me to a different solution that is as easy to use as before,
but easier to implement, easier to extend by new basic types, and as a
bonus I get a natural interface for static arrays.

I then immediately scratched a duplicate code for parsing dynamic arrays,
because it can be easily unified now.  also, CF_ITEMS does not expect a
parameter now, because they the compiler messes up line numbers when an
error occurs.
lib/conf2-test.c
lib/conf2.c
lib/conf2.h