summaryrefslogtreecommitdiffstats
path: root/runtime/map-values.c
diff options
context:
space:
mode:
authorgraydon <graydon>2005-08-13 01:36:41 +0000
committergraydon <graydon>2005-08-13 01:36:41 +0000
commit51bf37c337fbd49b59d9b6039b1722818dde8491 (patch)
tree382ecd87c484a9173ff7725d15af2c02c4d24d86 /runtime/map-values.c
parent3a20432bc0a0aa6d8651561d508cc730e6dabc97 (diff)
downloadsystemtap-steved-51bf37c337fbd49b59d9b6039b1722818dde8491.tar.gz
systemtap-steved-51bf37c337fbd49b59d9b6039b1722818dde8491.tar.xz
systemtap-steved-51bf37c337fbd49b59d9b6039b1722818dde8491.zip
[ChangeLog]
2005-08-12 Graydon Hoare <graydon@redhat.com> * translate.cxx (c_tmpcounter::visit_array_in): Implement. (c_unparser::visit_array_in): Likewise. (mapvar::exists): New method. [runtime/ChangeLog] 2005-08-12 Graydon Hoare <graydon@redhat.com> * map-values.c (_stp_map_entry_exists): New function. * map.h (_stp_map_entry_exists): Declare it.
Diffstat (limited to 'runtime/map-values.c')
-rw-r--r--runtime/map-values.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/runtime/map-values.c b/runtime/map-values.c
index f0df9563..32cfb59d 100644
--- a/runtime/map-values.c
+++ b/runtime/map-values.c
@@ -51,5 +51,14 @@ void _stp_map_add_int64 (MAP map, int64_t val)
}
#endif
+unsigned _stp_map_entry_exists (MAP map)
+{
+ struct map_node *m;
+ if (map == NULL || map->create || map->key == NULL)
+ return 0;
+ return 1;
+}
+
+
#endif /* _MAP_VALUES_C_ */