summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2010-05-26 08:25:44 -0700
committerCarl Worth <cworth@cworth.org>2010-05-26 08:30:36 -0700
commitce540f2571a449a3620bd3672bfb93b39cef71e1 (patch)
tree4844eac4fa9b82910869bec67f16e797a52dec62
parent63909fc19654ddb3ef339bcceed9cbf6e6a057bc (diff)
Rename identifier from 'i' to 'node'.
Now that we no longer have nested for loops with 'i' and 'j' we can use the 'node' that we already have.
-rw-r--r--glcpp-parse.y10
1 files changed, 5 insertions, 5 deletions
diff --git a/glcpp-parse.y b/glcpp-parse.y
index 04e78b1..5f59b5b 100644
--- a/glcpp-parse.y
+++ b/glcpp-parse.y
@@ -807,7 +807,6 @@ _glcpp_parser_expand_function_onto (glcpp_parser_t *parser,
argument_list_t *arguments;
function_status_t status;
token_list_t *substituted;
- token_node_t *i, *j;
int parameter_index;
node = *node_ret;
@@ -851,10 +850,11 @@ _glcpp_parser_expand_function_onto (glcpp_parser_t *parser,
/* Perform argument substitution on the replacement list. */
substituted = _token_list_create (arguments);
- for (i = macro->replacements->head; i; i = i->next) {
- if (i->token->type == IDENTIFIER &&
+ for (node = macro->replacements->head; node; node = node->next)
+ {
+ if (node->token->type == IDENTIFIER &&
_string_list_contains (macro->parameters,
- i->token->value.str,
+ node->token->value.str,
&parameter_index))
{
token_list_t *argument;
@@ -866,7 +866,7 @@ _glcpp_parser_expand_function_onto (glcpp_parser_t *parser,
argument,
substituted);
} else {
- _token_list_append (substituted, i->token);
+ _token_list_append (substituted, node->token);
}
}