Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5526e39 commit 9189bdaCopy full SHA for 9189bda
1 file changed
Tools/scripts/h2py.py
@@ -32,8 +32,9 @@
32
p_include = regex.compile('^[\t ]*#[\t ]*include[\t ]+<\([a-zA-Z0-9_/\.]+\)')
33
34
p_comment = regex.compile('/\*\([^*]+\|\*+[^/]\)*\(\*+/\)?')
35
+p_cpp_comment = regex.compile('//.*')
36
-ignores = [p_comment]
37
+ignores = [p_comment, p_cpp_comment]
38
39
p_char = regex.compile("'\(\\\\.[^\\\\]*\|[^\\\\]\)'")
40
@@ -48,6 +49,7 @@
48
49
searchdirs=['/usr/include']
50
51
def main():
52
+ global filedict
53
opts, args = getopt.getopt(sys.argv[1:], 'i:')
54
for o, a in opts:
55
if o == '-i':
0 commit comments