mirror of https://github.com/python/cpython
getprogramname -> Py_GetProgramName.
This commit is contained in:
parent
6d43c5de5a
commit
71bd363d9c
|
@ -30,7 +30,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
extern char *Py_GetVersion();
|
extern char *Py_GetVersion();
|
||||||
extern char *Py_GetCopyright();
|
extern char *Py_GetCopyright();
|
||||||
|
|
||||||
/* For getprogramname(); set by main() */
|
/* For Py_GetProgramName(); set by main() */
|
||||||
static char *argv0;
|
static char *argv0;
|
||||||
|
|
||||||
/* Main program */
|
/* Main program */
|
||||||
|
@ -87,7 +87,7 @@ main(argc, argv)
|
||||||
}
|
}
|
||||||
|
|
||||||
char *
|
char *
|
||||||
getprogramname()
|
Py_GetProgramName()
|
||||||
{
|
{
|
||||||
return argv0;
|
return argv0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue