[Python-checkins] python/dist/src/Modules getpath.c,1.43,1.44 main.c,1.71,1.72
jackjansen@users.sourceforge.net
jackjansen@users.sourceforge.net
Mon, 23 Dec 2002 13:03:39 -0800
Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1:/tmp/cvs-serv23733/Modules
Modified Files:
getpath.c main.c
Log Message:
Squashed compiler warnings by adding casts, making sure prototypes are in
scope and looking at types.
Index: getpath.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/getpath.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -C2 -d -r1.43 -r1.44
*** getpath.c 6 Dec 2002 12:48:50 -0000 1.43
--- getpath.c 23 Dec 2002 21:03:36 -0000 1.44
***************
*** 422,426 ****
pythonModule = NSModuleForSymbol(NSLookupAndBindSymbol("_Py_Initialize"));
/* Use dylib functions to find out where the framework was loaded from */
! buf = NSLibraryNameForModule(pythonModule);
if (buf != NULL) {
/* We're in a framework. */
--- 422,426 ----
pythonModule = NSModuleForSymbol(NSLookupAndBindSymbol("_Py_Initialize"));
/* Use dylib functions to find out where the framework was loaded from */
! buf = (char *)NSLibraryNameForModule(pythonModule);
if (buf != NULL) {
/* We're in a framework. */
Index: main.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/main.c,v
retrieving revision 1.71
retrieving revision 1.72
diff -C2 -d -r1.71 -r1.72
*** main.c 6 Dec 2002 12:48:50 -0000 1.71
--- main.c 23 Dec 2002 21:03:36 -0000 1.72
***************
*** 14,17 ****
--- 14,21 ----
#endif
+ #if defined(WITH_NEXT_FRAMEWORK)
+ #include "pymactoolbox.h"
+ #endif
+
#if (defined(PYOS_OS2) && !defined(PYCC_GCC)) || defined(MS_WINDOWS)
#define PYTHONHOMEHELP "<prefix>\\lib"