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
4917d93c
Kaydet (Commit)
4917d93c
authored
May 13, 1997
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Keep picky compilers happy.
üst
d6353e2c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
regexpr.c
Modules/regexpr.c
+3
-4
No files found.
Modules/regexpr.c
Dosyayı görüntüle @
4917d93c
...
...
@@ -797,7 +797,7 @@ static int re_optimize_star_jump(regexp_t bufp, char *code)
case
Cexact
:
{
ch
=
(
unsigned
char
)
*
p1
++
;
if
(
map
[
ch
])
if
(
map
[
(
int
)
ch
])
goto
make_normal_jump
;
break
;
}
...
...
@@ -873,7 +873,6 @@ static int re_optimize_star_jump(regexp_t bufp, char *code)
}
}
make_update_jump:
code
-=
3
;
a
+=
3
;
/* jump to after the Cfailure_jump */
code
[
0
]
=
Cupdate_failure_jump
;
...
...
@@ -1094,12 +1093,12 @@ char *re_compile_pattern(char *regex, int size, regexp_t bufp)
int
current_level
;
int
level
;
int
opcode
;
int
pattern_offset
,
alloc
;
int
pattern_offset
=
0
,
alloc
;
int
starts
[
NUM_LEVELS
*
MAX_NESTING
];
int
starts_base
;
int
future_jumps
[
MAX_NESTING
];
int
num_jumps
;
unsigned
char
ch
;
unsigned
char
ch
=
'\0'
;
char
*
pattern
;
char
*
translate
;
int
next_register
;
...
...
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