A while ago, Alex Muntean sent me a bunch of changes to .properties
files. The changes for Python, Ruby and HTML were fairly simple to
accept/reject (accepted: use $(file.patterns.py) in preference to
*.py, [while, for] indent in Ruby, Web Applications 1.0 Working Draft
identifiers in HTML) so are committed but the C/C++ settings are a bit
more complex and I've modified his version a bit further.

   There is a file.patterns.cplusplus property to make it easier to
treat all C++ source files similarly. Common options are in ccopts.
ccc is the compiler command for C files: I lnow this isn't traditional
but leaving cc as compiling for C++ will reduce incompatibility with
earlier releases. Highlights of changes:

file.patterns.cplusplus=*.cc;*.cpp;*.cxx
ccopts=-pedantic -Os
cc=g++ $(ccopts) -c $(FileNameExt) -o $(FileName).o
ccc=gcc $(ccopts) -c $(FileNameExt) -o $(FileName).o
command.compile.*.c=$(ccc) -std=c99
command.compile.$(file.patterns.cplusplus)=$(cc)
command.build.$(file.patterns.cplusplus)=$(make.command)
command.go.$(file.patterns.cplusplus)=$(FileName)
command.go.needs.$(file.patterns.cplusplus)=g++ $(ccopts)
$(FileNameExt) -o $(FileName)

   These haven't been committed yet.

   Neil

_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest

Reply via email to