rename 'package' to 'module'
[nit.git] / src / compiling / compiling_global.nit
index a79ddeb..39b31c4 100644 (file)
@@ -15,7 +15,7 @@
 # limitations under the License.
 
 # Compute and generate tables for classes and modules.
-package compiling_global
+module compiling_global
 
 import table_computation
 private import compiling_icode
@@ -81,7 +81,7 @@ redef class MMModule
        # Compile sep files
        fun compile_mod_to_c(v: CompilerVisitor)
        do
-               v.add_decl("extern const char *LOCATE_{cname};")
+               v.add_decl("extern const char LOCATE_{cname}[];")
                if not v.program.tc.use_SFT_optimization then
                        v.add_decl("extern const int SFT_{cname}[];")
                end
@@ -118,7 +118,7 @@ redef class MMModule
        # Compile module file for the current module
        fun compile_local_table_to_c(v: CompilerVisitor)
        do
-               v.add_instr("const char *LOCATE_{cname} = \"{location.file.filename}\";")
+               v.add_instr("const char LOCATE_{cname}[] = \"{location.file.filename}\";")
 
                if v.program.tc.use_SFT_optimization or local_table.is_empty then
                        return