glsl/glcpp: Minor tweak to wording of error message
authorCarl Worth <cworth@cworth.org>
Sat, 21 Jun 2014 02:11:27 +0000 (19:11 -0700)
committerCarl Worth <cworth@cworth.org>
Tue, 29 Jul 2014 22:11:49 +0000 (15:11 -0700)
It makes more sense to print the directive name with the preceding '#'.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/glsl/glcpp/glcpp-parse.y
src/glsl/glcpp/tests/077-else-without-if.c.expected
src/glsl/glcpp/tests/078-elif-without-if.c.expected

index a93c1e3..840003b 100644 (file)
@@ -2119,7 +2119,7 @@ _glcpp_parser_skip_stack_change_if (glcpp_parser_t *parser, YYLTYPE *loc,
                                    const char *type, int condition)
 {
        if (parser->skip_stack == NULL) {
-               glcpp_error (loc, parser, "%s without #if\n", type);
+               glcpp_error (loc, parser, "#%s without #if\n", type);
                return;
        }
 
index cc1c379..64e6d1a 100644 (file)
@@ -1,3 +1,3 @@
-0:1(2): preprocessor error: else without #if
+0:1(2): preprocessor error: #else without #if
 
 
index ee34501..f3530ed 100644 (file)
@@ -1,3 +1,3 @@
-0:1(2): preprocessor error: elif without #if
+0:1(2): preprocessor error: #elif without #if