[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Changes to m4/m4/builtin.c,v
From: |
Gary V. Vaughan |
Subject: |
Changes to m4/m4/builtin.c,v |
Date: |
Wed, 12 Sep 2007 01:14:50 +0000 |
CVSROOT: /sources/m4
Module name: m4
Changes by: Gary V. Vaughan <gary> 07/09/12 01:14:49
Index: m4/builtin.c
===================================================================
RCS file: /sources/m4/m4/m4/builtin.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -b -r1.30 -r1.31
--- m4/builtin.c 6 Sep 2007 22:58:26 -0000 1.30
+++ m4/builtin.c 12 Sep 2007 01:14:47 -0000 1.31
@@ -25,14 +25,14 @@
#include "m4private.h"
-/* Find the builtin which has NAME. If HANDLE is not NULL, then
- search only in HANDLE's builtin table. The result is a malloc'd
+/* Find the builtin which has NAME. If MODULE is not NULL, then
+ search only in MODULE's builtin table. The result is a malloc'd
symbol value, suitable for use in the symbol table or for an
argument to m4_push_builtin. */
m4_symbol_value *
-m4_builtin_find_by_name (m4_module *handle, const char *name)
+m4_builtin_find_by_name (m4_module *module, const char *name)
{
- m4_module *cur = handle ? handle : m4__module_next (NULL);
+ m4_module *cur = module ? module : m4__module_next (NULL);
do
{
@@ -47,7 +47,7 @@
m4_symbol_value *token = xzalloc (sizeof *token);
m4_set_symbol_value_builtin (token, builtin);
- VALUE_HANDLE (token) = cur;
+ VALUE_MODULE (token) = cur;
VALUE_FLAGS (token) = builtin->flags;
VALUE_MIN_ARGS (token) = builtin->min_args;
VALUE_MAX_ARGS (token) = builtin->max_args;
@@ -55,17 +55,17 @@
}
}
}
- while (!handle && (cur = m4__module_next (cur)));
+ while (!module && (cur = m4__module_next (cur)));
return NULL;
}
-/* Find the builtin which has FUNC. If HANDLE argument is supplied
- then search only in HANDLE's builtin table. */
+/* Find the builtin which has FUNC. If MODULE argument is supplied
+ then search only in MODULE's builtin table. */
const m4_builtin *
-m4_builtin_find_by_func (m4_module *handle, m4_builtin_func *func)
+m4_builtin_find_by_func (m4_module *module, m4_builtin_func *func)
{
- m4_module *cur = handle ? handle : m4__module_next (NULL);
+ m4_module *cur = module ? module : m4__module_next (NULL);
do
{
@@ -79,7 +79,7 @@
return builtin;
}
}
- while (!handle && (cur = m4__module_next (cur)));
+ while (!module && (cur = m4__module_next (cur)));
return 0;
}