Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
3ed4c15a
Kaydet (Commit)
3ed4c15a
authored
Mar 02, 2001
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
RISCOS changes by dschwertberger.
üst
f0ee4b20
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
main.c
Modules/main.c
+23
-0
No files found.
Modules/main.c
Dosyayı görüntüle @
3ed4c15a
...
@@ -26,6 +26,11 @@
...
@@ -26,6 +26,11 @@
static
char
**
orig_argv
;
static
char
**
orig_argv
;
static
int
orig_argc
;
static
int
orig_argc
;
/* For my_readline when running under RISCOS */
#ifdef RISCOS
extern
int
Py_RISCOSWimpFlag
;
#endif
/* Short usage message (with %s for argv0) */
/* Short usage message (with %s for argv0) */
static
char
*
usage_line
=
static
char
*
usage_line
=
"usage: %s [option] ... [-c cmd | file | -] [arg] ...
\n
"
;
"usage: %s [option] ... [-c cmd | file | -] [arg] ...
\n
"
;
...
@@ -98,6 +103,10 @@ Py_Main(int argc, char **argv)
...
@@ -98,6 +103,10 @@ Py_Main(int argc, char **argv)
orig_argc
=
argc
;
/* For Py_GetArgcArgv() */
orig_argc
=
argc
;
/* For Py_GetArgcArgv() */
orig_argv
=
argv
;
orig_argv
=
argv
;
#ifdef RISCOS
Py_RISCOSWimpFlag
=
0
;
#endif
if
((
p
=
getenv
(
"PYTHONINSPECT"
))
&&
*
p
!=
'\0'
)
if
((
p
=
getenv
(
"PYTHONINSPECT"
))
&&
*
p
!=
'\0'
)
inspect
=
1
;
inspect
=
1
;
if
((
p
=
getenv
(
"PYTHONUNBUFFERED"
))
&&
*
p
!=
'\0'
)
if
((
p
=
getenv
(
"PYTHONUNBUFFERED"
))
&&
*
p
!=
'\0'
)
...
@@ -105,7 +114,11 @@ Py_Main(int argc, char **argv)
...
@@ -105,7 +114,11 @@ Py_Main(int argc, char **argv)
PySys_ResetWarnOptions
();
PySys_ResetWarnOptions
();
#ifdef RISCOS
while
((
c
=
getopt
(
argc
,
argv
,
"c:diOStuUvwxXhV"
))
!=
EOF
)
{
#else
while
((
c
=
_PyOS_GetOpt
(
argc
,
argv
,
"c:diOStuUvxXhVW:"
))
!=
EOF
)
{
while
((
c
=
_PyOS_GetOpt
(
argc
,
argv
,
"c:diOStuUvxXhVW:"
))
!=
EOF
)
{
#endif
if
(
c
==
'c'
)
{
if
(
c
==
'c'
)
{
/* -c is the last option; following arguments
/* -c is the last option; following arguments
that look like options are left for the
that look like options are left for the
...
@@ -150,6 +163,12 @@ Py_Main(int argc, char **argv)
...
@@ -150,6 +163,12 @@ Py_Main(int argc, char **argv)
Py_VerboseFlag
++
;
Py_VerboseFlag
++
;
break
;
break
;
#ifdef RISCOS
case
'w'
:
Py_RISCOSWimpFlag
=
1
;
break
;
#endif
case
'x'
:
case
'x'
:
skipfirstline
=
1
;
skipfirstline
=
1
;
break
;
break
;
...
@@ -301,6 +320,10 @@ Py_Main(int argc, char **argv)
...
@@ -301,6 +320,10 @@ Py_Main(int argc, char **argv)
sts
=
PyRun_AnyFile
(
stdin
,
"<stdin>"
)
!=
0
;
sts
=
PyRun_AnyFile
(
stdin
,
"<stdin>"
)
!=
0
;
Py_Finalize
();
Py_Finalize
();
#ifdef RISCOS
if
(
Py_RISCOSWimpFlag
)
fprintf
(
stderr
,
"
\x0c
q
\x0c
"
);
/* make frontend quit */
#endif
#ifdef __INSURE__
#ifdef __INSURE__
/* Insure++ is a memory analysis tool that aids in discovering
/* Insure++ is a memory analysis tool that aids in discovering
...
...
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