From: Martin Mares Date: Mon, 27 Jan 2014 19:45:28 +0000 (+0100) Subject: Let include automatically X-Git-Tag: v5.99~25^2~4 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=9150f33a09541429cd592c727932dc18967a0bbf;p=libucw.git Let include automatically --- diff --git a/ucw/doc/relnotes.txt b/ucw/doc/relnotes.txt index 9c9df165..f589bac1 100644 --- a/ucw/doc/relnotes.txt +++ b/ucw/doc/relnotes.txt @@ -4,14 +4,15 @@ Release notes WIP --- -* The <> has been improved: -** *Incompatible:* The interface of the <> module was cleaned up +* `` is automatically included by ``. +* *Incompatible:* The interface of the <> module was cleaned up to remove non-systematic side-effects. The `HEAP_INSERT` operation is now a proper insert (previously, it was just cleanup after insertion performed by the caller), similarly `HEAP_INCREASE` and `HEAP_DECREASE`. The `HEAP_DELMIN` operation was renamed to `HEAP_DELETE_MIN`. New operations `HEAP_REPLACE` and `HEAP_REPLACE_MIN` have been added. If you need to track positions of elements in the heap, please check the notes at individual functions. +* The <> has been improved: ** Multiple instances of the configuration parser are supported. ** *Incompatible:* As there may be more instances, we can no longer use global variables to control the configuration system. In particular, diff --git a/ucw/ff-printf.c b/ucw/ff-printf.c index 09a6d432..8783d906 100644 --- a/ucw/ff-printf.c +++ b/ucw/ff-printf.c @@ -12,7 +12,6 @@ #include #include -#include #include int diff --git a/ucw/lib.h b/ucw/lib.h index 4a7dc293..302f19ed 100644 --- a/ucw/lib.h +++ b/ucw/lib.h @@ -1,7 +1,7 @@ /* * The UCW Library -- Miscellaneous Functions * - * (c) 1997--2009 Martin Mares + * (c) 1997--2014 Martin Mares * (c) 2005 Tomas Valla * (c) 2006 Robert Spalek * (c) 2007 Pavel Charvat @@ -15,6 +15,7 @@ #include #include +#include #ifdef CONFIG_UCW_CLEAN_ABI #define assert_failed ucw_assert_failed diff --git a/ucw/opt-conf.c b/ucw/opt-conf.c index f34b8b82..ccebc013 100644 --- a/ucw/opt-conf.c +++ b/ucw/opt-conf.c @@ -17,7 +17,6 @@ #include #include -#include static void opt_conf_end_of_options(struct cf_context *cc) { cf_load_default(cc); diff --git a/ucw/opt.c b/ucw/opt.c index bba273c4..0135652c 100644 --- a/ucw/opt.c +++ b/ucw/opt.c @@ -16,7 +16,6 @@ #include #include -#include /*** * Value flags defaults