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
dc86f9eb
Kaydet (Commit)
dc86f9eb
authored
Eki 12, 2000
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Made options global (as PyMac_options) so macosmodule can access it.
üst
6ab2cb66
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
macmain.c
Mac/Python/macmain.c
+16
-16
No files found.
Mac/Python/macmain.c
Dosyayı görüntüle @
dc86f9eb
...
...
@@ -71,7 +71,7 @@ short PyMac_AppRefNum; /* RefNum of application resource fork */
static
char
**
orig_argv
;
static
int
orig_argc
;
PyMac_PrefRecord
options
;
PyMac_PrefRecord
PyMac_
options
;
static
void
Py_Main
(
int
,
char
**
);
/* Forward */
void
PyMac_Exit
(
int
);
/* Forward */
...
...
@@ -272,8 +272,8 @@ init_common(int *argcp, char ***argvp, int embedded)
#endif
/* Get options from preference file (or from applet resource fork) */
options
.
keep_console
=
POPT_KEEPCONSOLE_OUTPUT
;
/* default-default */
PyMac_PreferenceOptions
(
&
options
);
PyMac_
options
.
keep_console
=
POPT_KEEPCONSOLE_OUTPUT
;
/* default-default */
PyMac_PreferenceOptions
(
&
PyMac_
options
);
if
(
embedded
)
{
static
char
*
emb_argv
[]
=
{
"embedded-python"
,
0
};
...
...
@@ -282,7 +282,7 @@ init_common(int *argcp, char ***argvp, int embedded)
*
argvp
=
emb_argv
;
}
else
{
/* Create argc/argv. Do it before we go into the options event loop. */
*
argcp
=
PyMac_GetArgv
(
argvp
,
options
.
noargs
);
*
argcp
=
PyMac_GetArgv
(
argvp
,
PyMac_
options
.
noargs
);
#ifdef USE_ARGV0_CHDIR
if
(
*
argcp
>=
1
&&
(
*
argvp
)[
0
]
&&
(
*
argvp
)[
0
][
0
])
{
/* Workaround for MacOS X, which currently (DP4) doesn't set
...
...
@@ -297,17 +297,17 @@ init_common(int *argcp, char ***argvp, int embedded)
}
#endif
/* Do interactive option setting, if allowed and <option> depressed */
PyMac_InteractiveOptions
(
&
options
,
argcp
,
argvp
);
PyMac_InteractiveOptions
(
&
PyMac_
options
,
argcp
,
argvp
);
}
/* Copy selected options to where the machine-independent stuff wants it */
Py_VerboseFlag
=
options
.
verbose
;
/* Py_SuppressPrintingFlag = options.suppress_print; */
Py_OptimizeFlag
=
options
.
optimize
;
Py_DebugFlag
=
options
.
debugging
;
Py_NoSiteFlag
=
options
.
nosite
;
Py_TabcheckFlag
=
options
.
tabwarn
;
if
(
options
.
noargs
)
{
Py_VerboseFlag
=
PyMac_
options
.
verbose
;
/* Py_SuppressPrintingFlag =
PyMac_
options.suppress_print; */
Py_OptimizeFlag
=
PyMac_
options
.
optimize
;
Py_DebugFlag
=
PyMac_
options
.
debugging
;
Py_NoSiteFlag
=
PyMac_
options
.
nosite
;
Py_TabcheckFlag
=
PyMac_
options
.
tabwarn
;
if
(
PyMac_
options
.
noargs
)
{
/* don't process events at all without the scripts permission */
PyMacSchedParams
scp
;
...
...
@@ -319,7 +319,7 @@ init_common(int *argcp, char ***argvp, int embedded)
/* XXXX dispatch oldexc and nosite */
/* Set buffering */
if
(
options
.
unbuffered
)
{
if
(
PyMac_
options
.
unbuffered
)
{
#ifndef MPW
setbuf
(
stdout
,
(
char
*
)
NULL
);
setbuf
(
stderr
,
(
char
*
)
NULL
);
...
...
@@ -348,7 +348,7 @@ run_inspect()
{
int
sts
=
0
;
if
(
options
.
inspect
&&
isatty
((
int
)
fileno
(
stdin
)))
if
(
PyMac_
options
.
inspect
&&
isatty
((
int
)
fileno
(
stdin
)))
sts
=
PyRun_AnyFile
(
stdin
,
"<stdin>"
)
!=
0
;
return
sts
;
}
...
...
@@ -361,7 +361,7 @@ run_inspect()
static
void
PyMac_InstallNavServicesForSF
()
{
if
(
!
options
.
nonavservice
)
{
if
(
!
PyMac_
options
.
nonavservice
)
{
PyObject
*
m
=
PyImport_ImportModule
(
"macfsn"
);
if
(
m
==
NULL
)
{
...
...
@@ -553,7 +553,7 @@ PyMac_Exit(status)
#endif
#ifdef USE_SIOUX
switch
(
options
.
keep_console
)
{
switch
(
PyMac_
options
.
keep_console
)
{
case
POPT_KEEPCONSOLE_NEVER
:
keep
=
0
;
break
;
...
...
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