Changes in uspace/lib/c/include/adt/generic_char_map.h [61bfc370:aaa3f33a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/adt/generic_char_map.h
r61bfc370 raaa3f33a 62 62 }; \ 63 63 \ 64 int name##_add(name##_t *, const uint8_t*, const size_t, type *); \64 int name##_add(name##_t *, const char *, const size_t, type *); \ 65 65 int name##_count(name##_t *); \ 66 66 void name##_destroy(name##_t *); \ 67 void name##_exclude(name##_t *, const uint8_t*, const size_t); \68 type *name##_find(name##_t *, const uint8_t*, const size_t); \67 void name##_exclude(name##_t *, const char *, const size_t); \ 68 type *name##_find(name##_t *, const char *, const size_t); \ 69 69 int name##_initialize(name##_t *); \ 70 70 int name##_is_valid(name##_t *); … … 74 74 * Should follow declaration with the same parameters. 75 75 * 76 * @param[in] name Name of the map. 77 * @param[in] type Inner object type. 78 * 76 * @param[in] name Name of the map. 77 * @param[in] type Inner object type. 79 78 */ 80 79 #define GENERIC_CHAR_MAP_IMPLEMENT(name, type) \ 81 80 GENERIC_FIELD_IMPLEMENT(name##_items, type) \ 82 81 \ 83 int name##_add(name##_t *map, const uint8_t*name, const size_t length, \82 int name##_add(name##_t *map, const char *name, const size_t length, \ 84 83 type *value) \ 85 84 { \ … … 113 112 } \ 114 113 \ 115 void name##_exclude(name##_t *map, const uint8_t*name, \114 void name##_exclude(name##_t *map, const char *name, \ 116 115 const size_t length) \ 117 116 { \ … … 125 124 } \ 126 125 \ 127 type *name##_find(name##_t *map, const uint8_t*name, \126 type *name##_find(name##_t *map, const char *name, \ 128 127 const size_t length) \ 129 128 { \
Note:
See TracChangeset
for help on using the changeset viewer.