Changeset b5e68c8 in mainline for uspace/lib/c/include/adt/char_map.h
- Timestamp:
- 2011-05-12T16:49:44Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f36787d7
- Parents:
- e80329d6 (diff), 750636a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
uspace/lib/c/include/adt/char_map.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/adt/char_map.h
re80329d6 rb5e68c8 41 41 42 42 /** Invalid assigned value used also if an entry does not exist. */ 43 #define CHAR_MAP_NULL (-1)43 #define CHAR_MAP_NULL (-1) 44 44 45 45 /** Type definition of the character string to integer map. 46 46 * @see char_map 47 47 */ 48 typedef struct char_map char_map_t; 49 50 /** Type definition of the character string to integer map pointer. 51 * @see char_map 52 */ 53 typedef char_map_t *char_map_ref; 48 typedef struct char_map char_map_t; 54 49 55 50 /** Character string to integer map item. … … 61 56 struct char_map { 62 57 /** Actually mapped character. */ 63 charc;58 uint8_t c; 64 59 /** Stored integral value. */ 65 60 int value; … … 69 64 int next; 70 65 /** Next character array. */ 71 char_map_ ref*items;66 char_map_t **items; 72 67 /** Consistency check magic value. */ 73 68 int magic; 74 69 }; 75 70 76 extern int char_map_initialize(char_map_ ref);77 extern void char_map_destroy(char_map_ ref);78 extern int char_map_exclude(char_map_ ref, const char*, size_t);79 extern int char_map_add(char_map_ ref, const char*, size_t, const int);80 extern int char_map_find(const char_map_ ref, const char*, size_t);81 extern int char_map_update(char_map_ ref, const char*, size_t, const int);71 extern int char_map_initialize(char_map_t *); 72 extern void char_map_destroy(char_map_t *); 73 extern int char_map_exclude(char_map_t *, const uint8_t *, size_t); 74 extern int char_map_add(char_map_t *, const uint8_t *, size_t, const int); 75 extern int char_map_find(const char_map_t *, const uint8_t *, size_t); 76 extern int char_map_update(char_map_t *, const uint8_t *, size_t, const int); 82 77 83 78 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
