[PYTHONMAC-SIG] Mac SWIG & dynamic loading MacPython modules

Steven D. Majewski sdm7g@Virginia.EDU
Wed, 28 May 1997 19:02:08 -0400 (EDT)

[ Partial answer to my own question: ] 

Taking a flying leap into the hope that something in MSL will 
try to do the right thing if given uninitialized FILE arrays,
I tried: 

added console.stubs.c to project. 

added two lines to my wrapper function:

	#include <stdio.h>
	FILE  __files[FOPEN_MAX];

and the SWIG example code builds (with CW11), imports, dynamically 
loads and appears to run without crashing. 

---|  Steven D. Majewski   (804-982-0831)  <sdm7g@Virginia.EDU>  |---
---|  Department of Molecular Physiology and Biological Physics  |---
---|  University of Virginia             Health Sciences Center  |---
---|  P.O. Box 10011            Charlottesville, VA  22906-0011  |---
         By doing just a little every day, you can gradually 
                let the task completely overwhelm you.

PYTHONMAC-SIG  - SIG on Python for the Apple Macintosh

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