diff options
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/scripts/h2py.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Tools/scripts/h2py.py b/Tools/scripts/h2py.py index ff2afc2..2fc26d8 100755 --- a/Tools/scripts/h2py.py +++ b/Tools/scripts/h2py.py @@ -1,4 +1,3 @@ -#! /ufs/guido/bin/sgi/python #! /usr/local/python # Read #define's from stdin and translate to Python code on stdout. @@ -18,7 +17,7 @@ import sys, regex, string p_define = regex.compile('^#[\t ]*define[\t ]+\([a-zA-Z0-9_]+\)[\t ]+') -p_comment = regex.compile('/\*\([^*]+\|\*+[^/]\)*\*+/') +p_comment = regex.compile('/\*\([^*]+\|\*+[^/]\)*\(\*+/\)?') def main(): process(sys.stdin) |