view Modules/python.c @ 17848:6960b2bbbfca legacy-trunk

First step in porting MacPython modules to OSX/unix: break all references between modules except for the obj_New() and obj_Convert() routines, the PyArg_Parse and Py_BuildValue helpers. And these can now be vectored through glue routines (by defining USE_TOOLBOX_OBJECT_GLUE) which will do the necessary imports, whereupon the module's init routine will tell the glue routine about the real conversion routine address and everything is fine again.
author Jack Jansen <jack.jansen@cwi.nl>
date Thu, 17 May 2001 21:58:34 +0000
parents a6c7bfdd6777
children f66b3a3509c7
line wrap: on
line source

/* Minimal main program -- everything is loaded from the library */

#include "Python.h"

extern DL_EXPORT(int) Py_Main(int, char **);

int
main(int argc, char **argv)
{
	return Py_Main(argc, argv);
}