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
4fa7a5fc
Kaydet (Commit)
4fa7a5fc
authored
Agu 03, 2012
tarafından
Jesus Cea
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#15512: Declarations reorganization
üst
d52544df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
21 deletions
+23
-21
parsermodule.c
Modules/parsermodule.c
+23
-21
No files found.
Modules/parsermodule.c
Dosyayı görüntüle @
4fa7a5fc
...
@@ -172,8 +172,30 @@ static void parser_free(PyST_Object *st);
...
@@ -172,8 +172,30 @@ static void parser_free(PyST_Object *st);
static
PyObject
*
parser_sizeof
(
PyST_Object
*
,
void
*
);
static
PyObject
*
parser_sizeof
(
PyST_Object
*
,
void
*
);
static
int
parser_compare
(
PyST_Object
*
left
,
PyST_Object
*
right
);
static
int
parser_compare
(
PyST_Object
*
left
,
PyST_Object
*
right
);
static
PyObject
*
parser_getattr
(
PyObject
*
self
,
char
*
name
);
static
PyObject
*
parser_getattr
(
PyObject
*
self
,
char
*
name
);
static
PyMethodDef
parser_methods
[];
static
PyObject
*
parser_compilest
(
PyST_Object
*
,
PyObject
*
,
PyObject
*
);
static
PyObject
*
parser_isexpr
(
PyST_Object
*
,
PyObject
*
,
PyObject
*
);
static
PyObject
*
parser_issuite
(
PyST_Object
*
,
PyObject
*
,
PyObject
*
);
static
PyObject
*
parser_st2list
(
PyST_Object
*
,
PyObject
*
,
PyObject
*
);
static
PyObject
*
parser_st2tuple
(
PyST_Object
*
,
PyObject
*
,
PyObject
*
);
#define PUBLIC_METHOD_TYPE (METH_VARARGS|METH_KEYWORDS)
static
PyMethodDef
parser_methods
[]
=
{
{
"compile"
,
(
PyCFunction
)
parser_compilest
,
PUBLIC_METHOD_TYPE
,
PyDoc_STR
(
"Compile this ST object into a code object."
)},
{
"isexpr"
,
(
PyCFunction
)
parser_isexpr
,
PUBLIC_METHOD_TYPE
,
PyDoc_STR
(
"Determines if this ST object was created from an expression."
)},
{
"issuite"
,
(
PyCFunction
)
parser_issuite
,
PUBLIC_METHOD_TYPE
,
PyDoc_STR
(
"Determines if this ST object was created from a suite."
)},
{
"tolist"
,
(
PyCFunction
)
parser_st2list
,
PUBLIC_METHOD_TYPE
,
PyDoc_STR
(
"Creates a list-tree representation of this ST."
)},
{
"totuple"
,
(
PyCFunction
)
parser_st2tuple
,
PUBLIC_METHOD_TYPE
,
PyDoc_STR
(
"Creates a tuple-tree representation of this ST."
)},
{
"__sizeof__"
,
(
PyCFunction
)
parser_sizeof
,
METH_NOARGS
,
PyDoc_STR
(
"Returns size in memory, in bytes."
)},
{
NULL
,
NULL
,
0
,
NULL
}
};
static
static
PyTypeObject
PyST_Type
=
{
PyTypeObject
PyST_Type
=
{
...
@@ -503,26 +525,6 @@ parser_issuite(PyST_Object *self, PyObject *args, PyObject *kw)
...
@@ -503,26 +525,6 @@ parser_issuite(PyST_Object *self, PyObject *args, PyObject *kw)
}
}
#define PUBLIC_METHOD_TYPE (METH_VARARGS|METH_KEYWORDS)
static
PyMethodDef
parser_methods
[]
=
{
{
"compile"
,
(
PyCFunction
)
parser_compilest
,
PUBLIC_METHOD_TYPE
,
PyDoc_STR
(
"Compile this ST object into a code object."
)},
{
"isexpr"
,
(
PyCFunction
)
parser_isexpr
,
PUBLIC_METHOD_TYPE
,
PyDoc_STR
(
"Determines if this ST object was created from an expression."
)},
{
"issuite"
,
(
PyCFunction
)
parser_issuite
,
PUBLIC_METHOD_TYPE
,
PyDoc_STR
(
"Determines if this ST object was created from a suite."
)},
{
"tolist"
,
(
PyCFunction
)
parser_st2list
,
PUBLIC_METHOD_TYPE
,
PyDoc_STR
(
"Creates a list-tree representation of this ST."
)},
{
"totuple"
,
(
PyCFunction
)
parser_st2tuple
,
PUBLIC_METHOD_TYPE
,
PyDoc_STR
(
"Creates a tuple-tree representation of this ST."
)},
{
"__sizeof__"
,
(
PyCFunction
)
parser_sizeof
,
METH_NOARGS
,
PyDoc_STR
(
"Returns size in memory, in bytes."
)},
{
NULL
,
NULL
,
0
,
NULL
}
};
static
PyObject
*
static
PyObject
*
parser_getattr
(
PyObject
*
self
,
char
*
name
)
parser_getattr
(
PyObject
*
self
,
char
*
name
)
{
{
...
...
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