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
d0ca955d
Kaydet (Commit)
d0ca955d
authored
Eki 07, 2008
tarafından
Amaury Forgeot d'Arc
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#4004: Missing newline in some startup error messages.
Patch by Victor.
üst
4e0630cb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
python.c
Modules/python.c
+4
-4
frozenmain.c
Python/frozenmain.c
+4
-4
No files found.
Modules/python.c
Dosyayı görüntüle @
d0ca955d
...
@@ -34,7 +34,7 @@ main(int argc, char **argv)
...
@@ -34,7 +34,7 @@ main(int argc, char **argv)
fpsetmask
(
m
&
~
FP_X_OFL
);
fpsetmask
(
m
&
~
FP_X_OFL
);
#endif
#endif
if
(
!
argv_copy
||
!
argv_copy2
)
{
if
(
!
argv_copy
||
!
argv_copy2
)
{
fprintf
(
stderr
,
"out of memory"
);
fprintf
(
stderr
,
"out of memory
\n
"
);
return
1
;
return
1
;
}
}
oldloc
=
setlocale
(
LC_ALL
,
NULL
);
oldloc
=
setlocale
(
LC_ALL
,
NULL
);
...
@@ -51,18 +51,18 @@ main(int argc, char **argv)
...
@@ -51,18 +51,18 @@ main(int argc, char **argv)
#endif
#endif
size_t
count
;
size_t
count
;
if
(
argsize
==
(
size_t
)
-
1
)
{
if
(
argsize
==
(
size_t
)
-
1
)
{
fprintf
(
stderr
,
"Could not convert argument %d to string"
,
i
);
fprintf
(
stderr
,
"Could not convert argument %d to string
\n
"
,
i
);
return
1
;
return
1
;
}
}
argv_copy
[
i
]
=
PyMem_Malloc
((
argsize
+
1
)
*
sizeof
(
wchar_t
));
argv_copy
[
i
]
=
PyMem_Malloc
((
argsize
+
1
)
*
sizeof
(
wchar_t
));
argv_copy2
[
i
]
=
argv_copy
[
i
];
argv_copy2
[
i
]
=
argv_copy
[
i
];
if
(
!
argv_copy
[
i
])
{
if
(
!
argv_copy
[
i
])
{
fprintf
(
stderr
,
"out of memory"
);
fprintf
(
stderr
,
"out of memory
\n
"
);
return
1
;
return
1
;
}
}
count
=
mbstowcs
(
argv_copy
[
i
],
argv
[
i
],
argsize
+
1
);
count
=
mbstowcs
(
argv_copy
[
i
],
argv
[
i
],
argsize
+
1
);
if
(
count
==
(
size_t
)
-
1
)
{
if
(
count
==
(
size_t
)
-
1
)
{
fprintf
(
stderr
,
"Could not convert argument %d to string"
,
i
);
fprintf
(
stderr
,
"Could not convert argument %d to string
\n
"
,
i
);
return
1
;
return
1
;
}
}
}
}
...
...
Python/frozenmain.c
Dosyayı görüntüle @
d0ca955d
...
@@ -38,7 +38,7 @@ Py_FrozenMain(int argc, char **argv)
...
@@ -38,7 +38,7 @@ Py_FrozenMain(int argc, char **argv)
}
}
if
(
!
argv_copy
)
{
if
(
!
argv_copy
)
{
fprintf
(
stderr
,
"out of memory"
);
fprintf
(
stderr
,
"out of memory
\n
"
);
return
1
;
return
1
;
}
}
...
@@ -52,18 +52,18 @@ Py_FrozenMain(int argc, char **argv)
...
@@ -52,18 +52,18 @@ Py_FrozenMain(int argc, char **argv)
#endif
#endif
size_t
count
;
size_t
count
;
if
(
argsize
==
(
size_t
)
-
1
)
{
if
(
argsize
==
(
size_t
)
-
1
)
{
fprintf
(
stderr
,
"Could not convert argument %d to string"
,
i
);
fprintf
(
stderr
,
"Could not convert argument %d to string
\n
"
,
i
);
return
1
;
return
1
;
}
}
argv_copy
[
i
]
=
PyMem_Malloc
((
argsize
+
1
)
*
sizeof
(
wchar_t
));
argv_copy
[
i
]
=
PyMem_Malloc
((
argsize
+
1
)
*
sizeof
(
wchar_t
));
argv_copy2
[
i
]
=
argv_copy
[
i
];
argv_copy2
[
i
]
=
argv_copy
[
i
];
if
(
!
argv_copy
[
i
])
{
if
(
!
argv_copy
[
i
])
{
fprintf
(
stderr
,
"out of memory"
);
fprintf
(
stderr
,
"out of memory
\n
"
);
return
1
;
return
1
;
}
}
count
=
mbstowcs
(
argv_copy
[
i
],
argv
[
i
],
argsize
+
1
);
count
=
mbstowcs
(
argv_copy
[
i
],
argv
[
i
],
argsize
+
1
);
if
(
count
==
(
size_t
)
-
1
)
{
if
(
count
==
(
size_t
)
-
1
)
{
fprintf
(
stderr
,
"Could not convert argument %d to string"
,
i
);
fprintf
(
stderr
,
"Could not convert argument %d to string
\n
"
,
i
);
return
1
;
return
1
;
}
}
}
}
...
...
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