]> mj.ucw.cz Git - libucw.git/commit
significant simplifications of the interface
authorRobert Spalek <robert@ucw.cz>
Tue, 18 Apr 2006 12:37:31 +0000 (14:37 +0200)
committerRobert Spalek <robert@ucw.cz>
Tue, 18 Apr 2006 12:37:31 +0000 (14:37 +0200)
commit80ca78f1c50aeaaa1483719127a6b31b39c11510
treea816afceea4eee0aa1a945b19f8722b194f116e5
parent597c2f9b52230c15df49224c3a3a2f11288f5038
significant simplifications of the interface

- instead of letting the user to set cf_section.{size,init,commit}
  directly, macros CF_{TYPE,INIT,COMMIT} should be used
- another macro CF_ITEMS creates a CT_END-delimited list of cf_items
- all these macros automatically add commas so that declaring a list of
  cf_items behaves similarly to other preprocessor-made lists
- removed parameter name from parser hooks, because either the parser
  doesn't care and only uses *ptr, or it does and then it should be set up
  to pass the name in ptr
- no need to define hooks using _void_ *ptr; one can use any pointers
  according to his taste and the hook-function is automatically retyped
- renamed (to make it shorter) some enumerations and macros
- CHECK_VAR_TYPE and CF_FIELD renamed to CHECK_PTR_TYPE and PTR_TO, and
  moved to lib/lib.h
lib/conf2-test.c
lib/conf2.h