diff options
author | 2009-12-05 20:19:04 +0000 | |
---|---|---|
committer | 2009-12-05 20:19:04 +0000 | |
commit | 0fd8c755fff9be7c54f936f546708bc960d9e8f0 (patch) | |
tree | 82452c1a2ea84705b579e6341f42621d32869fbd /src/lib/util/tagmap.h | |
parent | 9fdc5ec196186c1a3a396b124866922f90ad0093 (diff) |
Memory shares are now specified by tag instead of index.
The AM_SHARE() macro now takes a tag parameter. All existing
shares have been bulk renamed to "share##". However, the name
does not matter, so please use descriptive tags going forward.
Also added tag validation for bank and share tags.
Added flag to tagmap_add functions that optionally will
replace existing objects if a duplicate is found.
Diffstat (limited to 'src/lib/util/tagmap.h')
-rw-r--r-- | src/lib/util/tagmap.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/util/tagmap.h b/src/lib/util/tagmap.h index 4489be70f4b..b1fd0fee829 100644 --- a/src/lib/util/tagmap.h +++ b/src/lib/util/tagmap.h @@ -105,10 +105,10 @@ void tagmap_reset(tagmap *map); /* ----- object management ----- */ /* add a new entry to a tagmap */ -tagmap_error tagmap_add(tagmap *map, const char *tag, void *object); +tagmap_error tagmap_add(tagmap *map, const char *tag, void *object, UINT8 replace_if_duplicate); /* add a new entry to a tagmap, ensuring it has a unique hash value */ -tagmap_error tagmap_add_unique_hash(tagmap *map, const char *tag, void *object); +tagmap_error tagmap_add_unique_hash(tagmap *map, const char *tag, void *object, UINT8 replace_if_duplicate); /* remove an entry from a tagmap */ void tagmap_remove(tagmap *map, const char *tag); |