[ python-Bugs-1597798 ] Modules/readline.c fails to compile on AIX 4.2

SourceForge.net noreply at sourceforge.net
Tue Dec 19 15:50:14 CET 2006


Bugs item #1597798, was opened at 2006-11-16 10:37
Message generated for change (Comment added) made by akuchling
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1597798&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Build
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Mike Kent (mikekent)
Assigned to: Nobody/Anonymous (nobody)
Summary: Modules/readline.c fails to compile on AIX 4.2

Initial Comment:
Python 2.5 Modules/readline.c line 681 is:

	return completion_matches(text, *on_completion);

on_completion is a function declared as:

static char *on_completion(char *text, int state);

completion_matches is a macro that expands to: 

rl_completion_matches((x), ((rl_compentry_func_t *)(y)))

SO, the second parameter to completion_matches should be a function pointer (on_completion), not the dereferenced function pointer that is currently passed to it (*on_completion).


----------------------------------------------------------------------

>Comment By: A.M. Kuchling (akuchling)
Date: 2006-12-19 09:50

Message:
Logged In: YES 
user_id=11375
Originator: NO

Can you please provide a patch that fixes things?  It's difficult for us
to provide a patch that will fix the problem on AIX because we don't have
access to an AIX machine for testing.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1597798&group_id=5470


More information about the Python-bugs-list mailing list