Remove list_ prefix from all lists.

See commit on shared-pointers.
Rename the iteration type to be prefix by name list_it_name_t ==> name_it_t
This commit is contained in:
Patrick Pelissier committed 2017-07-27 21:40:35 +02:00
1 parent 7a49348a4d
commit 4cb92a92b8
7 files changed
+284 -280

No files matched your search

+3 -3
View File
@@ -9,10 +9,10 @@
#include "m-algo.h"
// Let's create a list of string.
LIST_DEF(string, string_t, STRING_OPLIST)
LIST_DEF(list_string, string_t, STRING_OPLIST)
// Let's define its oplist with a shorter name
#define ASTR_OPLIST LIST_OPLIST(string, STRING_OPLIST)
#define ASTR_OPLIST LIST_OPLIST(list_string, STRING_OPLIST)
// Let's define some basic algorithms over this list of string.
ALGO_DEF(astring, ASTR_OPLIST)
@@ -49,7 +49,7 @@ int main(void)
}
// You can also use classic iterator:
list_it_string_t it;
list_string_it_t it;
printf ("Using iterators :\n");
for(list_string_it(it, grow) ; !list_string_end_p(it) ; list_string_next(it)) {
const string_t *item = list_string_cref (it);