Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
6e1dcfa7
Commit
6e1dcfa7
authored
Jul 21, 1996
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New style names for getprogramname and getargcargv
parent
66bdfc5e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
Modules/main.c
Modules/main.c
+6
-6
No files found.
Modules/main.c
View file @
6e1dcfa7
...
...
@@ -38,10 +38,10 @@ extern char *Py_GetVersion();
extern
char
*
Py_GetCopyright
();
/* For
getprogramn
ame(); set by main() */
/* For
Py_GetProgramN
ame(); set by main() */
static
char
*
argv0
;
/* For
getargca
rgv(); set by main() */
/* For
Py_GetArgcA
rgv(); set by main() */
static
char
**
orig_argv
;
static
int
orig_argc
;
...
...
@@ -88,9 +88,9 @@ main(argc, argv)
int
inspect
=
0
;
int
unbuffered
=
0
;
orig_argc
=
argc
;
/* For
getargca
rgv() */
orig_argc
=
argc
;
/* For
Py_GetArgcA
rgv() */
orig_argv
=
argv
;
argv0
=
argv
[
0
];
/* For
getprogramn
ame() */
argv0
=
argv
[
0
];
/* For
Py_GetProgramN
ame() */
if
((
p
=
getenv
(
"PYTHONDEBUG"
))
&&
*
p
!=
'\0'
)
Py_DebugFlag
=
1
;
...
...
@@ -223,7 +223,7 @@ main(argc, argv)
(currently _tkinter.c and importdl.c). */
char
*
getprogramn
ame
()
Py_GetProgramN
ame
()
{
return
argv0
;
}
...
...
@@ -233,7 +233,7 @@ getprogramname()
This is rare, but it is needed by the secureware extension. */
void
getargcargv
(
argc
,
argv
)
Py_GetArgcArgv
(
argc
,
argv
)
int
*
argc
;
char
***
argv
;
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment