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
a6d80faf
Kaydet (Commit)
a6d80faf
authored
Haz 12, 2006
tarafından
Neal Norwitz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Impl ssize_t
üst
052cbcf6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
_sre.c
Modules/_sre.c
+0
-0
sre.h
Modules/sre.h
+12
-12
No files found.
Modules/_sre.c
Dosyayı görüntüle @
a6d80faf
This diff is collapsed.
Click to expand it.
Modules/sre.h
Dosyayı görüntüle @
a6d80faf
...
...
@@ -23,7 +23,7 @@
typedef
struct
{
PyObject_VAR_HEAD
in
t
groups
;
/* must be first! */
Py_ssize_
t
groups
;
/* must be first! */
PyObject
*
groupindex
;
PyObject
*
indexgroup
;
/* compatibility */
...
...
@@ -31,7 +31,7 @@ typedef struct {
int
flags
;
/* flags used when compiling pattern source */
PyObject
*
weakreflist
;
/* List of weak references */
/* pattern code */
in
t
codesize
;
Py_ssize_
t
codesize
;
SRE_CODE
code
[
1
];
}
PatternObject
;
...
...
@@ -42,10 +42,10 @@ typedef struct {
PyObject
*
string
;
/* link to the target string (must be first) */
PyObject
*
regs
;
/* cached list of matching spans */
PatternObject
*
pattern
;
/* link to the regex (pattern) object */
in
t
pos
,
endpos
;
/* current target slice */
in
t
lastindex
;
/* last index marker seen by the engine (-1 if none) */
in
t
groups
;
/* number of groups (start/end marks) */
in
t
mark
[
1
];
Py_ssize_
t
pos
,
endpos
;
/* current target slice */
Py_ssize_
t
lastindex
;
/* last index marker seen by the engine (-1 if none) */
Py_ssize_
t
groups
;
/* number of groups (start/end marks) */
Py_ssize_
t
mark
[
1
];
}
MatchObject
;
typedef
unsigned
int
(
*
SRE_TOLOWER_HOOK
)(
unsigned
int
ch
);
...
...
@@ -54,7 +54,7 @@ typedef unsigned int (*SRE_TOLOWER_HOOK)(unsigned int ch);
#define SRE_MARK_SIZE 200
typedef
struct
SRE_REPEAT_T
{
in
t
count
;
Py_ssize_
t
count
;
SRE_CODE
*
pattern
;
/* points to REPEAT operator arguments */
void
*
last_ptr
;
/* helper to check for infinite loops */
struct
SRE_REPEAT_T
*
prev
;
/* points to previous repeat context */
...
...
@@ -68,17 +68,17 @@ typedef struct {
void
*
end
;
/* end of original string */
/* attributes for the match object */
PyObject
*
string
;
in
t
pos
,
endpos
;
Py_ssize_
t
pos
,
endpos
;
/* character size */
int
charsize
;
/* registers */
in
t
lastindex
;
in
t
lastmark
;
Py_ssize_
t
lastindex
;
Py_ssize_
t
lastmark
;
void
*
mark
[
SRE_MARK_SIZE
];
/* dynamically allocated stuff */
char
*
data_stack
;
unsigned
in
t
data_stack_size
;
unsigned
in
t
data_stack_base
;
size_
t
data_stack_size
;
size_
t
data_stack_base
;
/* current repeat context */
SRE_REPEAT
*
repeat
;
/* hooks */
...
...
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