projects
/
tools
/
apitrace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6129f9e
)
Parse prototypes with no parameters in gltxt.py
author
Arnaud Vrac
<rawoul@gmail.com>
Mon, 19 Dec 2011 01:39:10 +0000
(
02:39
+0100)
committer
Arnaud Vrac
<rawoul@gmail.com>
Mon, 19 Dec 2011 12:57:14 +0000
(13:57 +0100)
specs/scripts/gltxt.py
patch
|
blob
|
history
diff --git
a/specs/scripts/gltxt.py
b/specs/scripts/gltxt.py
index
b30b87c
..
07b7046
100755
(executable)
--- a/
specs/scripts/gltxt.py
+++ b/
specs/scripts/gltxt.py
@@
-194,6
+194,9
@@
class TxtParser(LineParser):
def parse_arg(self):
type = self.parse_type()
+ if self.tokens[0] == ')':
+ assert type == 'Void'
+ return ''
name = self.tokens.pop(0)
return '(%s, "%s")' % (type, name)