projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed85a5d
)
Trivial clean-ups to ast_type_specifier(int) constructor
author
Ian Romanick
<ian.d.romanick@intel.com>
Mon, 15 Mar 2010 21:31:48 +0000
(14:31 -0700)
committer
Ian Romanick
<ian.d.romanick@intel.com>
Mon, 15 Mar 2010 21:31:48 +0000
(14:31 -0700)
ast_type.cpp
patch
|
blob
|
history
diff --git
a/ast_type.cpp
b/ast_type.cpp
index 25f28b13e2a438d26a73cb1227c62d0a9f1b99d3..3bfbc647a1efdc2ffbdc1d4532a3b7352456d918 100644
(file)
--- a/
ast_type.cpp
+++ b/
ast_type.cpp
@@
-46,6
+46,8
@@
ast_type_specifier::print(void) const
}
ast_type_specifier::ast_type_specifier(int specifier)
+ : type_specifier(ast_types(specifier)), type_name(NULL), structure(NULL),
+ is_array(false), array_size(NULL), precision(ast_precision_high)
{
static const char *const names[] = {
"void",
@@
-102,6
+104,5
@@
ast_type_specifier::ast_type_specifier(int specifier)
NULL /* ast_type_name */
};
- type_specifier = ast_types(specifier);
type_name = names[specifier];
}