Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
f23473f0
Commit
f23473f0
authored
Oct 21, 2001
by
Neil Schemenauer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing "static" declarations (found by "make smelly").
parent
2677512f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
Objects/moduleobject.c
Objects/moduleobject.c
+1
-1
Objects/typeobject.c
Objects/typeobject.c
+4
-4
No files found.
Objects/moduleobject.c
View file @
f23473f0
...
...
@@ -9,7 +9,7 @@ typedef struct {
PyObject
*
md_dict
;
}
PyModuleObject
;
PyMemberDef
module_members
[]
=
{
static
PyMemberDef
module_members
[]
=
{
{
"__dict__"
,
T_OBJECT
,
offsetof
(
PyModuleObject
,
md_dict
),
READONLY
},
{
0
}
};
...
...
Objects/typeobject.c
View file @
f23473f0
...
...
@@ -80,7 +80,7 @@ type_dict(PyTypeObject *type, void *context)
return
PyDictProxy_New
(
type
->
tp_dict
);
}
PyGetSetDef
type_getsets
[]
=
{
static
PyGetSetDef
type_getsets
[]
=
{
{
"__name__"
,
(
getter
)
type_name
,
NULL
,
NULL
},
{
"__module__"
,
(
getter
)
type_module
,
(
setter
)
type_set_module
,
NULL
},
{
"__dict__"
,
(
getter
)
type_dict
,
NULL
,
NULL
},
...
...
@@ -371,7 +371,7 @@ lookup_method(PyObject *self, char *attrstr, PyObject **attrobj)
instead of PyObject_GetAttrString(). This uses the same convention
as lookup_method to cache the interned name string object. */
PyObject
*
static
PyObject
*
call_method
(
PyObject
*
o
,
char
*
name
,
PyObject
**
nameobj
,
char
*
format
,
...)
{
va_list
va
;
...
...
@@ -407,7 +407,7 @@ call_method(PyObject *o, char *name, PyObject **nameobj, char *format, ...)
/* Clone of call_method() that returns NotImplemented when the lookup fails. */
PyObject
*
static
PyObject
*
call_maybe
(
PyObject
*
o
,
char
*
name
,
PyObject
**
nameobj
,
char
*
format
,
...)
{
va_list
va
;
...
...
@@ -674,7 +674,7 @@ subtype_dict(PyObject *obj, void *context)
return
dict
;
}
PyGetSetDef
subtype_getsets
[]
=
{
static
PyGetSetDef
subtype_getsets
[]
=
{
{
"__dict__"
,
subtype_dict
,
NULL
,
NULL
},
{
0
},
};
...
...
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