--- REngine/Rinit.m.orig 2013-03-06 10:30:33 +++ REngine/Rinit.m 2024-09-25 13:22:19 @@ -107,10 +107,10 @@ /* ptr_R_Suicide = Re_Suicide; */ /* ptr_R_CleanUp = Re_CleanUp; */ - ptr_R_ShowMessage = Re_ShowMessage; - ptr_R_ReadConsole = Re_ReadConsole; + ptr_R_ShowMessage = (void (*)(const char *))Re_ShowMessage; + ptr_R_ReadConsole = (int (*)(const char *, unsigned char *, int, int))Re_ReadConsole; ptr_R_WriteConsole = NULL; - ptr_R_WriteConsoleEx = Re_WriteConsoleEx; + ptr_R_WriteConsoleEx = (void (*)(const char *, int, int))Re_WriteConsoleEx; ptr_R_ResetConsole = Re_ResetConsole; ptr_R_FlushConsole = Re_FlushConsole; ptr_R_ClearerrConsole = Re_ClearerrConsole; @@ -121,10 +121,10 @@ ptr_R_loadhistory = Re_loadhistory; ptr_R_savehistory = Re_savehistory; - ptr_R_EditFile = Re_Edit; + ptr_R_EditFile = (int (*)(const char *))Re_Edit; - ptr_R_ShowFiles = Re_ShowFiles; - ptr_R_EditFiles = Re_EditFiles; + ptr_R_ShowFiles = (int (*)(int, const char **, const char **, const char *, Rboolean, const char *))Re_ShowFiles; + ptr_R_EditFiles = (int (*)(int, const char **, const char **, const char *))Re_EditFiles; ptr_R_ChooseFile = Re_ChooseFile; ptr_CocoaSystem = Re_system;