Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@staticfloat
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save staticfloat/11153142 to your computer and use it in GitHub Desktop.
Save staticfloat/11153142 to your computer and use it in GitHub Desktop.
readline 6.3 patch for Julia 0.2.1
diff --git a/ui/repl-readline.c b/ui/repl-readline.c
index ccdaf56..30a27d7 100644
--- a/ui/repl-readline.c
+++ b/ui/repl-readline.c
@@ -831,7 +831,7 @@ void jl_init_repl(int history)
rl_instream = fopen("/dev/null","r");
prompt_length = 7; // == strlen("julia> ")
init_history();
- rl_startup_hook = (Function*)init_rl;
+ rl_startup_hook = (rl_hook_func_t*)init_rl;
}
static char *prompt_string=NULL;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment