[Python-checkins] CVS: python/dist/src/Modules readline.c,2.35,2.35.2.1

Thomas Wouters twouters@users.sourceforge.net
Wed, 11 Jul 2001 05:18:26 -0700


Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv6445/Modules

Modified Files:
      Tag: release21-maint
	readline.c 
Log Message:

Backport of Guido's checkins of acconfig.h (1.50), configure.in (1.224) and
readline.c (2.36), and re-generated config.h.in and configure:

SF Patch #432457 by Jason Tishler: support for readline 4.2. 

This patch allows the readline module to build cleanly with GNU
readline 4.2 without breaking the build for earlier GNU readline
versions.  The configure script checks for the presence of
rl_completion_matches in libreadline.



Index: readline.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/readline.c,v
retrieving revision 2.35
retrieving revision 2.35.2.1
diff -C2 -r2.35 -r2.35.2.1
*** readline.c	2001/04/13 18:14:27	2.35
--- readline.c	2001/07/11 12:18:24	2.35.2.1
***************
*** 22,25 ****
--- 22,29 ----
  #include <readline/history.h>
  
+ #ifdef HAVE_RL_COMPLETION_MATCHES
+ #define completion_matches(x, y) rl_completion_matches((x), ((rl_compentry_func_t *)(y)))
+ #endif
+ 
  /* Pointers needed from outside (but not declared in a header file). */
  extern DL_IMPORT(int) (*PyOS_InputHook)(void);