[PYTHONMAC-SIG] CW 11

Doug Wyatt doug@sonosphere.com
Fri, 18 Apr 1997 08:14:18 -0400


At 12:30 +0200 4/18/97, Jack Jansen wrote:
> > I was wondering what the status of MacPython and CW11 is. I recently tried
> > to add a new module and found that the library changes affect a lot of
> > things. Namely settings in the projects and what libraries are included.
>
> For the time being it is best to load the "obsolete ANSI libraries" off the
> CW11 CD and use those. This should work without a problem. I'm busy porting
> everything to the new MSL libraries, and it all seems to work with only some
> minor problems, but my sourcetree already has a lot of Guido's mods for 1.5,
> so I can't really make a distribution at this point.
>
> If you really want to try the MSL libraries: make sure you get the updated
> version from the MW website, and ask me for the modified GUSI to work with


Hi,

I was just complaining to the appropriate people about GUSI and MSL,
fdopen() being the place where things went wrong.

Matthias Neeracher suggested Inserting the following definition (ahead of
all MSL libraries):

#ifdef __cplusplus
extern "C" {
#endif
FILE * __find_unopened_file();
FILE * __handle_reopen(int fd, char * type, FILE * f);
#ifdef __cplusplus
}
#endif

FILE *fdopen(int fildes, char *type)
{
	FILE			*str;

	if (!(str = __find_unopened_file()))
		return(0);

	return(__handle_reopen(fildes, type, str));
}

In case this helps

Doug


--
Doug Wyatt                      software development, Opcode Systems Inc.
work:     doug@opcode.com       http://www.opcode.com/
personal: doug@sonosphere.com   http://www.sonosphere.com/doug/
"Chaotic action is preferable to orderly inaction." - John Geirland



_______________
PYTHONMAC-SIG  - SIG on Python for the Apple Macintosh

send messages to: pythonmac-sig@python.org
administrivia to: pythonmac-sig-request@python.org
_______________