[vlc-commits] commit: python: handle comments in enums (Olivier Aubert )
git at videolan.org
git at videolan.org
Tue Apr 20 17:33:02 CEST 2010
vlc/python | branch: master | Olivier Aubert <olivier.aubert at liris.cnrs.fr> | Tue Apr 20 17:32:21 2010 +0200| [dab4a87c9cdd61c0204640a7000ee44cdb3e2953] | committer: Olivier Aubert
python: handle comments in enums
> http://git.videolan.org/gitweb.cgi/vlc/python.git/?a=commit;h=dab4a87c9cdd61c0204640a7000ee44cdb3e2953
---
generate.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/generate.py b/generate.py
index 6d183c0..969b6cb 100755
--- a/generate.py
+++ b/generate.py
@@ -175,6 +175,9 @@ class Parser(object):
accumulator=l
continue
elif accumulator:
+ # Strip possible trailing comments
+ if '/*' in l:
+ l = l[:l.index('/*')]
accumulator=" ".join( (accumulator, l) )
if l.endswith(';'):
# End of definition
More information about the vlc-commits
mailing list