Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libloc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
libloc
Commits
d42e1dcd
Commit
d42e1dcd
authored
Jan 12, 2019
by
Michael Tremer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
python: Do not use any GNU-style initialisers for structs
Signed-off-by:
Michael Tremer
<
michael.tremer@ipfire.org
>
parent
9f2f5d13
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
48 additions
and
48 deletions
+48
-48
src/python/as.c
src/python/as.c
+11
-11
src/python/database.c
src/python/database.c
+18
-18
src/python/network.c
src/python/network.c
+10
-10
src/python/writer.c
src/python/writer.c
+9
-9
No files found.
src/python/as.c
View file @
d42e1dcd
...
...
@@ -145,15 +145,15 @@ static struct PyGetSetDef AS_getsetters[] = {
PyTypeObject
ASType
=
{
PyVarObject_HEAD_INIT
(
NULL
,
0
)
tp_name:
"location.AS"
,
tp_basicsize:
sizeof
(
ASObject
),
tp_flags:
Py_TPFLAGS_DEFAULT
|
Py_TPFLAGS_BASETYPE
,
tp_new:
AS_new
,
tp_dealloc:
(
destructor
)
AS_dealloc
,
tp_init:
(
initproc
)
AS_init
,
tp_doc:
"AS object"
,
tp_getset:
AS_getsetters
,
tp_repr:
(
reprfunc
)
AS_repr
,
tp_str:
(
reprfunc
)
AS_str
,
tp_richcompare:
(
richcmpfunc
)
AS_richcompare
,
.
tp_name
=
"location.AS"
,
.
tp_basicsize
=
sizeof
(
ASObject
),
.
tp_flags
=
Py_TPFLAGS_DEFAULT
|
Py_TPFLAGS_BASETYPE
,
.
tp_new
=
AS_new
,
.
tp_dealloc
=
(
destructor
)
AS_dealloc
,
.
tp_init
=
(
initproc
)
AS_init
,
.
tp_doc
=
"AS object"
,
.
tp_getset
=
AS_getsetters
,
.
tp_repr
=
(
reprfunc
)
AS_repr
,
.
tp_str
=
(
reprfunc
)
AS_str
,
.
tp_richcompare
=
(
richcmpfunc
)
AS_richcompare
,
};
src/python/database.c
View file @
d42e1dcd
...
...
@@ -239,16 +239,16 @@ static struct PyGetSetDef Database_getsetters[] = {
PyTypeObject
DatabaseType
=
{
PyVarObject_HEAD_INIT
(
NULL
,
0
)
tp_name:
"location.Database"
,
tp_basicsize:
sizeof
(
DatabaseObject
),
tp_flags:
Py_TPFLAGS_DEFAULT
|
Py_TPFLAGS_BASETYPE
,
tp_new:
Database_new
,
tp_dealloc:
(
destructor
)
Database_dealloc
,
tp_init:
(
initproc
)
Database_init
,
tp_doc:
"Database object"
,
tp_methods:
Database_methods
,
tp_getset:
Database_getsetters
,
tp_repr:
(
reprfunc
)
Database_repr
,
.
tp_name
=
"location.Database"
,
.
tp_basicsize
=
sizeof
(
DatabaseObject
),
.
tp_flags
=
Py_TPFLAGS_DEFAULT
|
Py_TPFLAGS_BASETYPE
,
.
tp_new
=
Database_new
,
.
tp_dealloc
=
(
destructor
)
Database_dealloc
,
.
tp_init
=
(
initproc
)
Database_init
,
.
tp_doc
=
"Database object"
,
.
tp_methods
=
Database_methods
,
.
tp_getset
=
Database_getsetters
,
.
tp_repr
=
(
reprfunc
)
Database_repr
,
};
static
PyObject
*
DatabaseEnumerator_new
(
PyTypeObject
*
type
,
PyObject
*
args
,
PyObject
*
kwds
)
{
...
...
@@ -279,12 +279,12 @@ static PyObject* DatabaseEnumerator_next(DatabaseEnumeratorObject* self) {
PyTypeObject
DatabaseEnumeratorType
=
{
PyVarObject_HEAD_INIT
(
NULL
,
0
)
tp_name:
"location.DatabaseEnumerator"
,
tp_basicsize:
sizeof
(
DatabaseEnumeratorObject
),
tp_flags:
Py_TPFLAGS_DEFAULT
,
tp_alloc:
PyType_GenericAlloc
,
tp_new:
DatabaseEnumerator_new
,
tp_dealloc:
(
destructor
)
DatabaseEnumerator_dealloc
,
tp_iter:
PyObject_SelfIter
,
tp_iternext:
(
iternextfunc
)
DatabaseEnumerator_next
,
.
tp_name
=
"location.DatabaseEnumerator"
,
.
tp_basicsize
=
sizeof
(
DatabaseEnumeratorObject
),
.
tp_flags
=
Py_TPFLAGS_DEFAULT
,
.
tp_alloc
=
PyType_GenericAlloc
,
.
tp_new
=
DatabaseEnumerator_new
,
.
tp_dealloc
=
(
destructor
)
DatabaseEnumerator_dealloc
,
.
tp_iter
=
PyObject_SelfIter
,
.
tp_iternext
=
(
iternextfunc
)
DatabaseEnumerator_next
,
};
src/python/network.c
View file @
d42e1dcd
...
...
@@ -146,14 +146,14 @@ static struct PyGetSetDef Network_getsetters[] = {
PyTypeObject
NetworkType
=
{
PyVarObject_HEAD_INIT
(
NULL
,
0
)
tp_name:
"location.Network"
,
tp_basicsize:
sizeof
(
NetworkObject
),
tp_flags:
Py_TPFLAGS_DEFAULT
|
Py_TPFLAGS_BASETYPE
,
tp_new:
Network_new
,
tp_dealloc:
(
destructor
)
Network_dealloc
,
tp_init:
(
initproc
)
Network_init
,
tp_doc:
"Network object"
,
tp_getset:
Network_getsetters
,
tp_repr:
(
reprfunc
)
Network_repr
,
tp_str:
(
reprfunc
)
Network_str
,
.
tp_name
=
"location.Network"
,
.
tp_basicsize
=
sizeof
(
NetworkObject
),
.
tp_flags
=
Py_TPFLAGS_DEFAULT
|
Py_TPFLAGS_BASETYPE
,
.
tp_new
=
Network_new
,
.
tp_dealloc
=
(
destructor
)
Network_dealloc
,
.
tp_init
=
(
initproc
)
Network_init
,
.
tp_doc
=
"Network object"
,
.
tp_getset
=
Network_getsetters
,
.
tp_repr
=
(
reprfunc
)
Network_repr
,
.
tp_str
=
(
reprfunc
)
Network_str
,
};
src/python/writer.c
View file @
d42e1dcd
...
...
@@ -220,13 +220,13 @@ static struct PyGetSetDef Writer_getsetters[] = {
PyTypeObject
WriterType
=
{
PyVarObject_HEAD_INIT
(
NULL
,
0
)
tp_name:
"location.Writer"
,
tp_basicsize:
sizeof
(
WriterObject
),
tp_flags:
Py_TPFLAGS_DEFAULT
|
Py_TPFLAGS_BASETYPE
,
tp_new:
Writer_new
,
tp_dealloc:
(
destructor
)
Writer_dealloc
,
tp_init:
(
initproc
)
Writer_init
,
tp_doc:
"Writer object"
,
tp_methods:
Writer_methods
,
tp_getset:
Writer_getsetters
,
.
tp_name
=
"location.Writer"
,
.
tp_basicsize
=
sizeof
(
WriterObject
),
.
tp_flags
=
Py_TPFLAGS_DEFAULT
|
Py_TPFLAGS_BASETYPE
,
.
tp_new
=
Writer_new
,
.
tp_dealloc
=
(
destructor
)
Writer_dealloc
,
.
tp_init
=
(
initproc
)
Writer_init
,
.
tp_doc
=
"Writer object"
,
.
tp_methods
=
Writer_methods
,
.
tp_getset
=
Writer_getsetters
,
};
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