Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Christian Butz
VTK
Commits
37ad6b6e
Commit
37ad6b6e
authored
Jun 18, 2010
by
David Gobbi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
COMP: make vtkParse.y allow vtkUnicodeString etc. as a scope
parent
c9d9f72b
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1206 additions
and
1151 deletions
+1206
-1151
Wrapping/vtkParse.tab.c
Wrapping/vtkParse.tab.c
+1197
-1144
Wrapping/vtkParse.y
Wrapping/vtkParse.y
+9
-7
No files found.
Wrapping/vtkParse.tab.c
View file @
37ad6b6e
This diff is collapsed.
Click to expand it.
Wrapping/vtkParse.y
View file @
37ad6b6e
...
...
@@ -989,13 +989,7 @@ maybe_scoped_id: ID {$<str>$ = $<str>1; postSig($<str>1);}
| templated_id {$<str>$ = $<str>1;};
| scoped_id {$<str>$ = $<str>1;};
scoped_id: ID DOUBLE_COLON maybe_scoped_id
{
$<str>$ = (char *)malloc(strlen($<str>1)+strlen($<str>3)+3);
sprintf($<str>$, "%s::%s", $<str>1, $<str>3);
preScopeSig($<str>1);
}
| VTK_ID DOUBLE_COLON maybe_scoped_id
scoped_id: class_id DOUBLE_COLON maybe_scoped_id
{
$<str>$ = (char *)malloc(strlen($<str>1)+strlen($<str>3)+3);
sprintf($<str>$, "%s::%s", $<str>1, $<str>3);
...
...
@@ -1008,6 +1002,14 @@ scoped_id: ID DOUBLE_COLON maybe_scoped_id
preScopeSig("");
};
class_id: ID { $<str>$ = $<str>1; }
| VTK_ID { $<str>$ = $<str>1; }
| ISTREAM { $<str>$ = vtkstrdup("istream"); }
| OSTREAM { $<str>$ = vtkstrdup("ostream"); }
| StdString { $<str>$ = vtkstrdup("vtkStdString"); }
| UnicodeString { $<str>$ = vtkstrdup("vtkUnicodeString"); };
/* & is VTK_PARSE_REF
* is VTK_PARSE_POINTER
*& is VTK_PARSE_POINTER_REF
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment