]> mj.ucw.cz Git - libucw.git/commit
Extended types: Miscellaneous fixes of xt_bool
authorMartin Mares <mj@ucw.cz>
Fri, 25 Jul 2014 10:42:29 +0000 (12:42 +0200)
committerMartin Mares <mj@ucw.cz>
Fri, 25 Jul 2014 10:42:29 +0000 (12:42 +0200)
commit2f0ee61b197467bcf52a0e69d302d48531fef86a
tree30b26bc729bc166bcabf189485fc263b22363edb
parentb98f24d11ba97582b16d8a4d547205fe10e5ffcc
Extended types: Miscellaneous fixes of xt_bool

  •  Streamlined code and unified coding style.

  •  xt_bool_format() returns static strings, there is no need
     to duplicate them.

  •  xt_bool_parse() returns a more reasonable error message.

  •  Invalid formatting mode is an internal error, which should not
     be triggerable by the user, so ASSERT is enough.
ucw/xtypes-basic.c