mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
ANSIfication step 2: make sure all needed prototypes are available, and all needed
header files included.
This commit is contained in:
parent
5e80a75799
commit
9ae898b415
19 changed files with 83 additions and 41 deletions
|
@ -33,6 +33,9 @@ PERFORMANCE OF THIS SOFTWARE.
|
|||
#include "osdefs.h"
|
||||
#include "macglue.h"
|
||||
#include "pythonresources.h"
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
|
||||
/* Return the initial python search path. This is called once from
|
||||
|
@ -58,6 +61,10 @@ PERFORMANCE OF THIS SOFTWARE.
|
|||
#include <GUSI.h>
|
||||
#endif
|
||||
|
||||
#ifndef USE_BUILTIN_PATH
|
||||
staticforward char *PyMac_GetPythonPath();
|
||||
#endif
|
||||
|
||||
#define PYTHONPATH "\
|
||||
:\n\
|
||||
:Lib\n\
|
||||
|
@ -143,9 +150,6 @@ Py_GetPath()
|
|||
char *p, *endp;
|
||||
int newlen;
|
||||
char *curwd;
|
||||
#ifndef USE_BUILTIN_PATH
|
||||
staticforward char *PyMac_GetPythonPath();
|
||||
#endif
|
||||
|
||||
if ( pythonpath ) return pythonpath;
|
||||
#ifndef USE_BUILTIN_PATH
|
||||
|
@ -294,7 +298,7 @@ PyMac_GetPythonDir()
|
|||
|
||||
#ifndef USE_BUILTIN_PATH
|
||||
char *
|
||||
PyMac_GetPythonPath()
|
||||
PyMac_GetPythonPath(void)
|
||||
{
|
||||
short oldrh, prefrh = -1;
|
||||
char *rv;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue