summaryrefslogtreecommitdiff
path: root/src/glsl/glcpp/glcpp-parse.y
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2010-07-20 15:55:21 -0700
committerIan Romanick <ian.d.romanick@intel.com>2010-07-20 17:01:11 -0700
commitd80dcaf427e12a5cba9cfc5bcd1b485572a2714b (patch)
tree735fd5d67b248413db74b5fdd48764b2e4f874df /src/glsl/glcpp/glcpp-parse.y
parentfb90560744864e44730330e4c801ac47c4ece0e1 (diff)
glcpp: Add static keyword to several functions in the parser.
This quiets warnings about missing declarations otherwise.
Diffstat (limited to 'src/glsl/glcpp/glcpp-parse.y')
-rw-r--r--src/glsl/glcpp/glcpp-parse.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/glsl/glcpp/glcpp-parse.y b/src/glsl/glcpp/glcpp-parse.y
index a2b54eff50..c37c9bcff0 100644
--- a/src/glsl/glcpp/glcpp-parse.y
+++ b/src/glsl/glcpp/glcpp-parse.y
@@ -692,7 +692,7 @@ _token_list_append_list (token_list_t *list, token_list_t *tail)
list->non_space_tail = tail->non_space_tail;
}
-token_list_t *
+static token_list_t *
_token_list_copy (void *ctx, token_list_t *other)
{
token_list_t *copy;
@@ -708,7 +708,7 @@ _token_list_copy (void *ctx, token_list_t *other)
return copy;
}
-void
+static void
_token_list_trim_trailing_space (token_list_t *list)
{
token_node_t *tail, *next;
@@ -1410,7 +1410,7 @@ _glcpp_parser_print_expanded_token_list (glcpp_parser_t *parser,
_token_list_print (parser, list);
}
-void
+static void
_check_for_reserved_macro_name (glcpp_parser_t *parser, YYLTYPE *loc,
const char *identifier)
{