Mercurial > hg > xemacs-beta
diff src/symbols.c @ 363:972bbb6d6ca2 r21-1-11
Import from CVS: tag r21-1-11
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:59:28 +0200 |
parents | 8bec6624d99b |
children | cc15677e0335 |
line wrap: on
line diff
--- a/src/symbols.c Mon Aug 13 10:58:41 2007 +0200 +++ b/src/symbols.c Mon Aug 13 10:59:28 2007 +0200 @@ -411,11 +411,15 @@ */ (function, obarray)) { + struct gcpro gcpro1; + if (NILP (obarray)) obarray = Vobarray; obarray = check_obarray (obarray); + GCPRO1 (obarray); map_obarray (obarray, mapatoms_1, &function); + UNGCPRO; return Qnil; } @@ -457,14 +461,17 @@ (regexp, predicate)) { struct appropos_mapper_closure closure; + struct gcpro gcpro1; CHECK_STRING (regexp); closure.regexp = regexp; closure.predicate = predicate; closure.accumulation = Qnil; + GCPRO1 (closure.accumulation); map_obarray (Vobarray, apropos_mapper, &closure); closure.accumulation = Fsort (closure.accumulation, Qstring_lessp); + UNGCPRO; return closure.accumulation; }