lib: makes native_arg[cv] intern
authorAlexis Laferrière <alexis.laf@xymus.net>
Sat, 8 Jun 2013 01:27:50 +0000 (21:27 -0400)
committerJean Privat <jean@pryen.org>
Thu, 1 Aug 2013 19:11:18 +0000 (15:11 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

lib/standard/string.nit
lib/standard/string_nit.c [deleted file]
lib/standard/string_nit.h [deleted file]

index 0bc9e94..4c575b5 100644 (file)
@@ -1000,8 +1000,10 @@ redef class Sys
                _args_cache = args
        end
 
-       private fun native_argc: Int is extern "kernel_Sys_Sys_native_argc_0" # First argument of the main C function.
-       
-       private fun native_argv(i: Int): NativeString is extern "kernel_Sys_Sys_native_argv_1" # Second argument of the main C function.
+       # First argument of the main C function.
+       private fun native_argc: Int is intern
+
+       # Second argument of the main C function.
+       private fun native_argv(i: Int): NativeString is intern
 end
 
diff --git a/lib/standard/string_nit.c b/lib/standard/string_nit.c
deleted file mode 100644 (file)
index 747df8c..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-/* This file is part of NIT ( http://www.nitlanguage.org ).
- *
- * Copyright 2012 Alexis Laferrière <alexis.laf@xymus.net>
- *
- * This file is free software, which comes along with NIT.  This software is
- * distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
- * without  even  the implied warranty of  MERCHANTABILITY or  FITNESS FOR A
- * PARTICULAR PURPOSE.  You can modify it is you want,  provided this header
- * is kept unaltered, and a notification of the changes is added.
- * You  are  allowed  to  redistribute it and sell it, alone or is a part of
- * another product.
- */
-
-#include "string_nit.h"
diff --git a/lib/standard/string_nit.h b/lib/standard/string_nit.h
deleted file mode 100644 (file)
index 5653f27..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-#ifndef __STRING_NIT_H
-#define __STRING_NIT_H
-/* This file is part of NIT ( http://www.nitlanguage.org ).
- *
- * Copyright 2004-2008 Jean Privat <jean@pryen.org>
- *
- * This file is free software, which comes along with NIT.  This software is
- * distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
- * without  even  the implied warranty of  MERCHANTABILITY or  FITNESS FOR A 
- * PARTICULAR PURPOSE.  You can modify it is you want,  provided this header
- * is kept unaltered, and a notification of the changes is added.
- * You  are  allowed  to  redistribute it and sell it, alone or is a part of
- * another product.
- */
-
-#define kernel_Sys_Sys_native_argc_0(self) (glob_argc)
-#define kernel_Sys_Sys_native_argv_1(self, p0) (glob_argv[(p0)])
-
-#endif