summaryrefslogtreecommitdiff
path: root/Source/DOH/hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'Source/DOH/hash.c')
-rw-r--r--Source/DOH/hash.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/Source/DOH/hash.c b/Source/DOH/hash.c
index 56f0959a8..e91e1cc23 100644
--- a/Source/DOH/hash.c
+++ b/Source/DOH/hash.c
@@ -276,11 +276,19 @@ Hash_getattr(DOH *h, DOH *k) {
return obj;
}
+DOH *
+DohHashGetAttr(DOH *h, DOH *k) {
+ DOH *obj = 0;
+ Hash *ho = (Hash *) ObjData(h);
+ _Hash_getattr(ho, k, obj);
+ return obj;
+}
+
/* -----------------------------------------------------------------------------
- * Hash_checkattr()
+ * HashCheckAttr()
*
- * Get an attribute from the hash table. Returns 0 if it doesn't exist.
+ * Check an attribute from the hash table.
* ----------------------------------------------------------------------------- */
int