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
be87abce
Commit
be87abce
authored
Jan 19, 1992
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added -d option (increments debugging variable); mostly to get rid
of a compiler warning.
parent
132248f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
Python/pythonmain.c
Python/pythonmain.c
+5
-3
No files found.
Python/pythonmain.c
View file @
be87abce
...
...
@@ -41,9 +41,7 @@ extern char *getpythonpath();
extern
grammar
gram
;
/* From graminit.c */
#ifdef DEBUG
int
debugging
;
/* Needed by parser.c */
#endif
/* Interface to getopt(): */
extern
int
optind
;
...
...
@@ -62,7 +60,7 @@ main(argc, argv)
initargs
(
&
argc
,
&
argv
);
/* Defined in config*.c */
while
((
c
=
getopt
(
argc
,
argv
,
"c:"
))
!=
EOF
)
{
while
((
c
=
getopt
(
argc
,
argv
,
"c:
d
"
))
!=
EOF
)
{
if
(
c
==
'c'
)
{
/* -c is the last option; following arguments
that look like options are left for the
...
...
@@ -76,6 +74,10 @@ main(argc, argv)
switch
(
c
)
{
case
'd'
:
debugging
++
;
break
;
/* This space reserved for other options */
default:
...
...
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