mirror of
https://github.com/python/cpython.git
synced 2024-11-26 03:14:27 +08:00
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_GetCopyright();
|
||||
|
||||
/* For getprogramname(); set by main() */
|
||||
/* For Py_GetProgramName(); set by main() */
|
||||
static char *argv0;
|
||||
|
||||
/* Main program */
|
||||
@ -87,7 +87,7 @@ main(argc, argv)
|
||||
}
|
||||
|
||||
char *
|
||||
getprogramname()
|
||||
Py_GetProgramName()
|
||||
{
|
||||
return argv0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user