X-Git-Url: http://nitlanguage.org diff --git a/c_src/file_nit.h b/c_src/file_nit.h index f34769d..1f5b183 100644 --- a/c_src/file_nit.h +++ b/c_src/file_nit.h @@ -20,12 +20,6 @@ #include #include -#ifndef NONITCNI -#include - -Set String_files___impl( String recv ); -#endif - extern int string_NativeString_NativeString_file_exists_0(char *f); extern void *string_NativeString_NativeString_file_stat_0(char *f); extern void *file_NativeFile_NativeFile_file_stat_0(FILE *f); @@ -50,6 +44,7 @@ extern int string_NativeString_NativeString_file_delete_0(char *f); #define string_NativeString_NativeString_file_mkdir_0(p) (mkdir(p, 0777)) #define string_NativeString_NativeString_file_getcwd_0(p) (getcwd(NULL, 0)) #define string_NativeString_NativeString_file_chdir_0(p) (chdir(p)?-1:0) /* hack to avoid warn_unused_result */ +#define file_NativeString_realpath(p) (realpath(p, NULL)) #define file_stdin_poll_in(self) file_stdin_poll_in_() int file_stdin_poll_in_(void);