From: Alexis Laferrière Date: Sat, 8 Jun 2013 01:27:50 +0000 (-0400) Subject: lib: makes native_arg[cv] intern X-Git-Tag: v0.6.1~74^2 X-Git-Url: http://nitlanguage.org lib: makes native_arg[cv] intern Signed-off-by: Alexis Laferrière --- diff --git a/lib/standard/string.nit b/lib/standard/string.nit index 0bc9e94..4c575b5 100644 --- a/lib/standard/string.nit +++ b/lib/standard/string.nit @@ -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 index 747df8c..0000000 --- a/lib/standard/string_nit.c +++ /dev/null @@ -1,14 +0,0 @@ -/* This file is part of NIT ( http://www.nitlanguage.org ). - * - * Copyright 2012 Alexis Laferrière - * - * 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 index 5653f27..0000000 --- a/lib/standard/string_nit.h +++ /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 - * - * 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