ffi: remove old Cproproc symbol NONITCNI
authorJean Privat <jean@pryen.org>
Thu, 3 Apr 2014 19:57:11 +0000 (15:57 -0400)
committerJean Privat <jean@pryen.org>
Thu, 3 Apr 2014 19:57:11 +0000 (15:57 -0400)
was used to disable the old nitni of the old compiler

Signed-off-by: Jean Privat <jean@pryen.org>

lib/standard/exec_nit.h
src/abstract_compiler.nit
src/c_tools.nit

index 1e772a5..c6a59d4 100644 (file)
 #include <sys/wait.h>
 #include <signal.h>
 
-#ifndef NONITCNI
-#include <exec._nitni.h>
-#endif
-
 typedef struct se_exec_data se_exec_data_t;
 struct se_exec_data {
        pid_t id;
index f26d7d8..0e3ab74 100644 (file)
@@ -314,7 +314,7 @@ class MakefileToolchain
                # Compile each generated file
                for f in cfiles do
                        var o = f.strip_extension(".c") + ".o"
-                       makefile.write("{o}: {f}\n\t$(CC) $(CFLAGS) $(CINCL) -D NONITCNI -c -o {o} {f}\n\n")
+                       makefile.write("{o}: {f}\n\t$(CC) $(CFLAGS) $(CINCL) -c -o {o} {f}\n\n")
                        ofiles.add(o)
                        dep_rules.add(o)
                end
index be9e649..9abb685 100644 (file)
@@ -139,7 +139,7 @@ class ExternCFile
        redef fun makefile_rule_content do
                var ff = filename.basename("")
                var o = makefile_rule_name
-               return "$(CC) $(CFLAGS) -D NONITCNI {self.cflags} -c -o {o} {ff}"
+               return "$(CC) $(CFLAGS) {self.cflags} -c -o {o} {ff}"
        end
 end