nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
grammar: remove `line_annotations_forclass` and `superclass` from classdef
[nit.git]
/
src
/
c_tools.nit
diff --git
a/src/c_tools.nit
b/src/c_tools.nit
index
b56f947
..
6fa1f05
100644
(file)
--- a/
src/c_tools.nit
+++ b/
src/c_tools.nit
@@
-49,9
+49,9
@@
class CCompilationUnit
fun add_local_function( efc : CFunction )
do
fun add_local_function( efc : CFunction )
do
- body_decl.add( "{efc.signature};\n" )
- body_impl.add( "\n" )
- body_impl.add( efc.to_writer )
+ body_decl.add "static {efc.signature};\n"
+ body_impl.add "\n"
+ body_impl.add efc.to_writer
end
fun add_exported_function( efc : CFunction )
end
fun add_exported_function( efc : CFunction )
@@
-125,7
+125,7
@@
end
class ExternCFile
super ExternFile
class ExternCFile
super ExternFile
- # Additional specific CC compiler -c flags
+ # Custom options for the C compiler (CFLAGS)
var cflags: String
redef fun hash do return filename.hash
var cflags: String
redef fun hash do return filename.hash