This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gillet
Recipients
Date 2003-05-12.18:02:24
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
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);
  }









History
Date User Action Args
2007-08-23 14:12:54adminlinkissue729236 messages
2007-08-23 14:12:54admincreate