diff options
| author | nyamatongwe <devnull@localhost> | 2009-01-08 09:14:54 +0000 | 
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2009-01-08 09:14:54 +0000 | 
| commit | b3b4607da3847266039dfc420502be33d76a159e (patch) | |
| tree | 17228fce7fc9c42149d6f2d561ae9d5416b70136 /include/HFacer.py | |
| parent | 208914d93e4a45ca9458cad70f16d181453661dd (diff) | |
| download | scintilla-mirror-b3b4607da3847266039dfc420502be33d76a159e.tar.gz | |
Patch from Enrico Tröger to change comments in header files to C Style /*
rather than C++ style // so that some compilers will work.
Diffstat (limited to 'include/HFacer.py')
| -rw-r--r-- | include/HFacer.py | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/include/HFacer.py b/include/HFacer.py index b3c8c2896..1b4d62746 100644 --- a/include/HFacer.py +++ b/include/HFacer.py @@ -1,7 +1,7 @@  # HFacer.py - regenerate the Scintilla.h and SciLexer.h files from the Scintilla.iface interface  # definition file. -# The header files are copied to a temporary file apart from the section between a //++Autogenerated -# comment and a //--Autogenerated comment which is generated by the printHFile and printLexHFile +# The header files are copied to a temporary file apart from the section between a /* ++Autogenerated*/ +# comment and a /* --Autogenerated*/ comment which is generated by the printHFile and printLexHFile  # functions. After the temporary file is created, it is copied back to the original file name.  import string @@ -38,10 +38,10 @@ def CopyWithInsertion(input, output, genfn, definition):  	for line in input.readlines():  		if copying:  			output.write(line) -		if Contains(line, "//++Autogenerated"): +		if Contains(line, "/* ++Autogenerated"):  			copying = 0  			genfn(definition, output) -		if Contains(line, "//--Autogenerated"): +		if Contains(line, "/* --Autogenerated"):  			copying = 1  			output.write(line) | 
