summaryrefslogtreecommitdiffstats
path: root/src/glsl/glcpp/glcpp-parse.c
diff options
context:
space:
mode:
authorCarl Worth <[email protected]>2010-08-11 13:50:51 -0700
committerCarl Worth <[email protected]>2010-08-11 14:38:03 -0700
commit624dd585c72103e5bffbc600cdf7bdfba5305a15 (patch)
tree74dc724192433a6b750126050bc5a8c2024068b3 /src/glsl/glcpp/glcpp-parse.c
parentcb5ea0c79bd74ea6263d54302ed19c243ceb05de (diff)
glcpp: Reword diagnostic for #elif with no expression
Rather than telling the user what to fix, the standard convention is to describe what the detected problem is. With this change, test 081-elif-without-expression now passes.
Diffstat (limited to 'src/glsl/glcpp/glcpp-parse.c')
-rw-r--r--src/glsl/glcpp/glcpp-parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/glcpp/glcpp-parse.c b/src/glsl/glcpp/glcpp-parse.c
index 498d0187640..05bb7ca48b5 100644
--- a/src/glsl/glcpp/glcpp-parse.c
+++ b/src/glsl/glcpp/glcpp-parse.c
@@ -1950,7 +1950,7 @@ yyreduce:
if (parser->skip_stack &&
parser->skip_stack->type == SKIP_TO_ELSE)
{
- glcpp_error(& (yylsp[(1) - (2)]), parser, "#elif needs an expression");
+ glcpp_error(& (yylsp[(1) - (2)]), parser, "#elif with no expression");
}
else
{