# HG changeset patch # User Paul Boddie # Date 1488756683 -3600 # Node ID b8733c35d308e07929f268a6395e03f88d4e96d9 # Parent 124ed76ca4a8dd563d9c6f4767861a3125c1d750 Incorporated __WITHIN within __HASATTR. diff -r 124ed76ca4a8 -r b8733c35d308 templates/ops.c --- a/templates/ops.c Mon Mar 06 00:13:47 2017 +0100 +++ b/templates/ops.c Mon Mar 06 00:31:23 2017 +0100 @@ -25,14 +25,9 @@ /* Basic structure tests. */ -static inline int __WITHIN(__ref obj, int pos) -{ - return pos < obj->table->size; -} - static inline int __HASATTR(__ref obj, int pos, int code) { - return __WITHIN(obj, pos) && (obj->table->attrs[pos] == code); + return (pos < obj->table->size) && (obj->table->attrs[pos] == code); } /* Direct access and manipulation of static objects. */