Message15734
Logged In: YES
user_id=150999
I was able to compile readline on Irix after changing the
function flex_complete. the function prototyte say it should
return a char** .So we did put the following change and it
works. Is it a right way to do it?
** readline.c 2003-05-09 13:45:38.000000000 -0700
--- readline.c~ 2003-03-01 07:19:41.000000000 -0800
***************
*** 577,589 ****
/* A more flexible constructor that saves the "begidx" and
"endidx"
* before calling the normal completer */
! static char ** flex_complete(char *text, int start, int end)
{
Py_XDECREF(begidx);
Py_XDECREF(endidx);
begidx = PyInt_FromLong((long) start);
endidx = PyInt_FromLong((long) end);
! return (char **)completion_matches(text,
*on_completion);
}
--- 577,590 ----
/* A more flexible constructor that saves the "begidx" and
"endidx"
* before calling the normal completer */
! static char **
! flex_complete(char *text, int start, int end)
{
Py_XDECREF(begidx);
Py_XDECREF(endidx);
begidx = PyInt_FromLong((long) start);
endidx = PyInt_FromLong((long) end);
! return completion_matches(text, *on_completion);
}
|
|
Date |
User |
Action |
Args |
2007-08-23 14:12:54 | admin | link | issue729236 messages |
2007-08-23 14:12:54 | admin | create | |
|