Update of /cvsroot/q-lang/q/modules/clib
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv26629/modules/clib
Modified Files:
system.c
Log Message:
compatibility with newer readline versions (patch contributed by Ryan Schmidt)
Index: system.c
===================================================================
RCS file: /cvsroot/q-lang/q/modules/clib/system.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** system.c 6 Mar 2008 10:15:24 -0000 1.7
--- system.c 10 May 2015 16:03:26 -0000 1.8
***************
*** 5150,5154 ****
}
! static CPPFunction *my_completion_function(void)
{
expr x = mksym(sym(RL_COMPLETION_FUNCTION)), f = eval(x);
--- 5150,5154 ----
}
! static rl_completion_func_t *my_completion_function(void)
{
expr x = mksym(sym(RL_COMPLETION_FUNCTION)), f = eval(x);
***************
*** 5158,5162 ****
} else
dispose(f);
! return (CPPFunction *) (completion_function?my_sym_completion:NULL);
}
--- 5158,5162 ----
} else
dispose(f);
! return (rl_completion_func_t *) (completion_function?my_sym_completion:NULL);
}
***************
*** 5186,5190 ****
char *save_rl_completer_word_break_characters =
rl_completer_word_break_characters;
! CPPFunction *save_rl_attempted_completion_function =
rl_attempted_completion_function;
HISTORY_STATE *save_hist = history_get_history_state();
--- 5186,5190 ----
char *save_rl_completer_word_break_characters =
rl_completer_word_break_characters;
! rl_completion_func_t *save_rl_attempted_completion_function =
rl_attempted_completion_function;
HISTORY_STATE *save_hist = history_get_history_state();
|