From 51bf37c337fbd49b59d9b6039b1722818dde8491 Mon Sep 17 00:00:00 2001 From: graydon Date: Sat, 13 Aug 2005 01:36:41 +0000 Subject: [ChangeLog] 2005-08-12 Graydon Hoare * 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 * map-values.c (_stp_map_entry_exists): New function. * map.h (_stp_map_entry_exists): Declare it. --- runtime/map-values.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'runtime/map-values.c') 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_ */ -- cgit