glcpp: Add static keyword to several functions in the parser.
authorCarl Worth <cworth@cworth.org>
Tue, 20 Jul 2010 22:55:21 +0000 (15:55 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 21 Jul 2010 00:01:11 +0000 (17:01 -0700)
This quiets warnings about missing declarations otherwise.

src/glsl/glcpp/glcpp-parse.y

index a2b54eff5078805f061ebebaed705d2ee53546f2..c37c9bcff0b1462f553917341a1cc1c57fbc68ca 100644 (file)
@@ -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)
 {