summaryrefslogtreecommitdiffstats
path: root/src/glsl/glsl_parser_extras.cpp
diff options
context:
space:
mode:
authorSir Anthony <[email protected]>2014-02-05 21:18:09 +0600
committerKenneth Graunke <[email protected]>2014-03-08 01:29:00 -0800
commit433d562ac6b24b5e0ff63a682316be632dfc7053 (patch)
treef6224ee03952a8ad91a95c65ffc48fcfa3ddcf45 /src/glsl/glsl_parser_extras.cpp
parent6984aa43504bd9b68692872cd711af3931607576 (diff)
glsl: Extend ast location structure to hande end token position.
Reviewed-by: Carl Worth <[email protected]>
Diffstat (limited to 'src/glsl/glsl_parser_extras.cpp')
-rw-r--r--src/glsl/glsl_parser_extras.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/glsl/glsl_parser_extras.cpp b/src/glsl/glsl_parser_extras.cpp
index d7f5202fecd..61ae62150fe 100644
--- a/src/glsl/glsl_parser_extras.cpp
+++ b/src/glsl/glsl_parser_extras.cpp
@@ -807,8 +807,10 @@ ast_node::print(void) const
ast_node::ast_node(void)
{
this->location.source = 0;
- this->location.line = 0;
- this->location.column = 0;
+ this->location.first_line = 0;
+ this->location.first_column = 0;
+ this->location.last_line = 0;
+ this->location.last_column = 0;
}