-
-
Save earl/353ad14fedab30dddd83 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/include/host-lib.h b/src/include/host-lib.h | |
index 8141b73..f154540 100644 | |
--- a/src/include/host-lib.h | |
+++ b/src/include/host-lib.h | |
@@ -17,8 +17,8 @@ | |
#define HOST_LIB_VER 107 | |
-#define HOST_LIB_SUM 62628 | |
-#define HOST_LIB_SIZE 31 | |
+#define HOST_LIB_SUM 46010 | |
+#define HOST_LIB_SIZE 33 | |
typedef struct REBOL_Host_Lib { | |
@@ -27,7 +27,7 @@ typedef struct REBOL_Host_Lib { | |
void *(*os_make)(size_t size); | |
void (*os_free)(void *mem); | |
void (*os_exit)(int code); | |
- void (*os_crash)(const REBYTE *title, const REBYTE *content); | |
+ void (*os_crash)(const REBCHR *title, const REBCHR *content); | |
REBCHR *(*os_form_error)(int errnum, REBCHR *str, int len); | |
BOOL (*os_get_boot_path)(REBCHR *name); | |
REBCHR *(*os_get_locale)(int what); | |
@@ -35,7 +35,9 @@ typedef struct REBOL_Host_Lib { | |
int (*os_set_env)(REBCHR *expr, int mode); | |
REBCHR *(*os_list_env)(void); | |
void (*os_get_time)(REBOL_DAT *dat); | |
- i64 (*os_delta_time)(i64 base, int flags); | |
+ i64 (*os_delta_time)(i64 base, int opts); | |
+ REBCHR *(*os_to_rebol_path)(REBCHR *path, int *len); | |
+ REBCHR *(*os_to_local_path)(REBCHR *path, int *len); | |
int (*os_get_current_dir)(REBCHR **path); | |
BOOL (*os_set_current_dir)(REBCHR *path); | |
void (*os_file_time)(REBREQ *file, REBOL_DAT *dat); | |
@@ -45,7 +47,7 @@ typedef struct REBOL_Host_Lib { | |
REBINT (*os_create_thread)(CFUNC init, void *arg, REBCNT stack_size); | |
void (*os_delete_thread)(void); | |
void (*os_task_ready)(REBINT tid); | |
- int (*os_create_process)(REBCHR *call, u32 flags); | |
+ int (*os_create_process)(REBCHR *call, int reserved); | |
int (*os_browse)(REBCHR *url, int reserved); | |
BOOL (*os_request_file)(REBRFR *fr); | |
REBSER *(*os_gob_to_image)(REBGOB *gob); | |
@@ -64,7 +66,7 @@ typedef struct REBOL_Host_Lib { | |
extern void *OS_Make(size_t size); // host-lib.c | |
extern void OS_Free(void *mem); // host-lib.c | |
extern void OS_Exit(int code); // host-lib.c | |
-extern void OS_Crash(const REBYTE *title, const REBYTE *content); // host-lib.c | |
+extern void OS_Crash(const REBCHR *title, const REBCHR *content); // host-lib.c | |
extern REBCHR *OS_Form_Error(int errnum, REBCHR *str, int len); // host-lib.c | |
extern BOOL OS_Get_Boot_Path(REBCHR *name); // host-lib.c | |
extern REBCHR *OS_Get_Locale(int what); // host-lib.c | |
@@ -72,7 +74,9 @@ extern REBCHR *OS_Get_Env(REBCHR *var, int mode); // host-lib.c | |
extern int OS_Set_Env(REBCHR *expr, int mode); // host-lib.c | |
extern REBCHR *OS_List_Env(void); // host-lib.c | |
extern void OS_Get_Time(REBOL_DAT *dat); // host-lib.c | |
-extern i64 OS_Delta_Time(i64 base, int flags); // host-lib.c | |
+extern i64 OS_Delta_Time(i64 base, int opts); // host-lib.c | |
+extern REBCHR *OS_To_REBOL_Path(REBCHR *path, int *len); // host-lib.c | |
+extern REBCHR *OS_To_Local_Path(REBCHR *path, int *len); // host-lib.c | |
extern int OS_Get_Current_Dir(REBCHR **path); // host-lib.c | |
extern BOOL OS_Set_Current_Dir(REBCHR *path); // host-lib.c | |
extern void OS_File_Time(REBREQ *file, REBOL_DAT *dat); // host-lib.c | |
@@ -82,7 +86,7 @@ extern void *OS_Find_Function(void *dll, char* funcname); // host-lib.c | |
extern REBINT OS_Create_Thread(CFUNC init, void *arg, REBCNT stack_size); // host-lib.c | |
extern void OS_Delete_Thread(void); // host-lib.c | |
extern void OS_Task_Ready(REBINT tid); // host-lib.c | |
-extern int OS_Create_Process(REBCHR *call, u32 flags); // host-lib.c | |
+extern int OS_Create_Process(REBCHR *call, int reserved); // host-lib.c | |
extern int OS_Browse(REBCHR *url, int reserved); // host-lib.c | |
extern BOOL OS_Request_File(REBRFR *fr); // host-lib.c | |
extern REBSER *OS_GOB_To_Image(REBGOB *gob); // host-lib.c | |
@@ -112,6 +116,8 @@ REBOL_HOST_LIB Host_Lib_Init = { // Host library function vector table. | |
OS_List_Env, | |
OS_Get_Time, | |
OS_Delta_Time, | |
+ OS_To_REBOL_Path, | |
+ OS_To_Local_Path, | |
OS_Get_Current_Dir, | |
OS_Set_Current_Dir, | |
OS_File_Time, | |
@@ -153,6 +159,8 @@ extern REBOL_HOST_LIB *Host_Lib; | |
#define OS_LIST_ENV() Host_Lib->os_list_env() | |
#define OS_GET_TIME(a) Host_Lib->os_get_time(a) | |
#define OS_DELTA_TIME(a,b) Host_Lib->os_delta_time(a,b) | |
+#define OS_TO_REBOL_PATH(a,b) Host_Lib->os_to_rebol_path(a,b) | |
+#define OS_TO_LOCAL_PATH(a,b) Host_Lib->os_to_local_path(a,b) | |
#define OS_GET_CURRENT_DIR(a) Host_Lib->os_get_current_dir(a) | |
#define OS_SET_CURRENT_DIR(a) Host_Lib->os_set_current_dir(a) | |
#define OS_FILE_TIME(a,b) Host_Lib->os_file_time(a,b) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment