aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-decl.c
diff options
context:
space:
mode:
authorBernardo Innocenti <bernie@develer.com>2004-07-25 21:32:47 +0200
committerBernardo Innocenti <bernie@gcc.gnu.org>2004-07-25 21:32:47 +0200
commit89658955e592792b3bac0fc5207cb28112cb4440 (patch)
treed642b60901c819286df73b834dd418c53d8bafe4 /gcc/c-decl.c
parent3244e67d15cd8cf65da89849a2bea5161a7ed102 (diff)
downloadgcc-89658955e592792b3bac0fc5207cb28112cb4440.zip
gcc-89658955e592792b3bac0fc5207cb28112cb4440.tar.gz
gcc-89658955e592792b3bac0fc5207cb28112cb4440.tar.bz2
c-decl.c (groktypename, [...]): Rename variable typename to type_name.
* c-decl.c (groktypename, groktypename_in_param_context): Rename variable typename to type_name. * c-lex.c (interpret_float): Likewise. From-SVN: r85161
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r--gcc/c-decl.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index 31927a4..475ce6c 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -2646,33 +2646,33 @@ set_array_declarator_type (tree decl, tree type, int abstract_p)
/* Decode a "typename", such as "int **", returning a ..._TYPE node. */
tree
-groktypename (tree typename)
+groktypename (tree type_name)
{
tree specs, attrs;
- if (TREE_CODE (typename) != TREE_LIST)
- return typename;
+ if (TREE_CODE (type_name) != TREE_LIST)
+ return type_name;
- split_specs_attrs (TREE_PURPOSE (typename), &specs, &attrs);
+ split_specs_attrs (TREE_PURPOSE (type_name), &specs, &attrs);
- typename = grokdeclarator (TREE_VALUE (typename), specs, TYPENAME, 0,
+ type_name = grokdeclarator (TREE_VALUE (type_name), specs, TYPENAME, 0,
NULL);
/* Apply attributes. */
- decl_attributes (&typename, attrs, 0);
+ decl_attributes (&type_name, attrs, 0);
- return typename;
+ return type_name;
}
/* Return a PARM_DECL node for a given pair of specs and declarator. */
tree
-groktypename_in_parm_context (tree typename)
+groktypename_in_parm_context (tree type_name)
{
- if (TREE_CODE (typename) != TREE_LIST)
- return typename;
- return grokdeclarator (TREE_VALUE (typename),
- TREE_PURPOSE (typename),
+ if (TREE_CODE (type_name) != TREE_LIST)
+ return type_name;
+ return grokdeclarator (TREE_VALUE (type_name),
+ TREE_PURPOSE (type_name),
PARM, 0, NULL);
}