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
2863c10a
Kaydet (Commit)
2863c10a
authored
Agu 07, 2002
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use Py_FatalError instead of abort.
üst
2f7f8c4a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
tokenizer.c
Parser/tokenizer.c
+3
-2
compile.c
Python/compile.c
+3
-2
No files found.
Parser/tokenizer.c
Dosyayı görüntüle @
2863c10a
...
...
@@ -326,7 +326,8 @@ fp_readl(char *s, int size, struct tok_state *tok)
{
#ifndef Py_USING_UNICODE
/* In a non-Unicode built, this should never be called. */
abort
();
Py_FatalError
(
"fp_readl should not be called in this build."
);
return
NULL
;
#else
PyObject
*
utf8
;
PyObject
*
buf
=
tok
->
decoding_buffer
;
...
...
@@ -403,7 +404,7 @@ static void fp_ungetc(int c, struct tok_state *tok) {
static
char
*
decoding_fgets
(
char
*
s
,
int
size
,
struct
tok_state
*
tok
)
{
char
*
line
;
char
*
line
=
NULL
;
int
warn
=
0
,
badchar
=
0
;
for
(;;)
{
if
(
tok
->
decoding_state
<
0
)
{
...
...
Python/compile.c
Dosyayı görüntüle @
2863c10a
...
...
@@ -1186,7 +1186,8 @@ static PyObject *
decode_utf8
(
char
**
sPtr
,
char
*
end
,
char
*
encoding
)
{
#ifndef Py_USING_UNICODE
abort
();
Py_FatalError
(
"decode_utf8 should not be called in this build."
);
return
NULL
;
#else
PyObject
*
u
,
*
v
;
char
*
s
,
*
t
;
...
...
@@ -1319,7 +1320,7 @@ parsestr(struct compiling *com, char *s)
#ifndef Py_USING_UNICODE
/* This should not happen - we never see any other
encoding. */
abort
(
);
Py_FatalError
(
"cannot deal with encodings in this build."
);
#else
PyObject
*
u
=
PyUnicode_DecodeUTF8
(
s
,
len
,
NULL
);
if
(
u
==
NULL
)
...
...
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