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
c3d12ac8
Commit
c3d12ac8
authored
19 years ago
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
const poisoning, spreading to fix new const warnings
in _winreg.c.
parent
dc297b4e
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
Include/structmember.h
Include/structmember.h
+3
-3
PC/_winreg.c
PC/_winreg.c
+2
-2
Python/structmember.c
Python/structmember.c
+3
-3
No files found.
Include/structmember.h
View file @
c3d12ac8
...
...
@@ -79,11 +79,11 @@ typedef struct PyMemberDef {
/* Obsolete API, for binary backwards compatibility */
PyAPI_FUNC
(
PyObject
*
)
PyMember_Get
(
c
har
*
,
struct
memberlist
*
,
char
*
);
PyAPI_FUNC
(
int
)
PyMember_Set
(
char
*
,
struct
memberlist
*
,
char
*
,
PyObject
*
);
PyAPI_FUNC
(
PyObject
*
)
PyMember_Get
(
c
onst
char
*
,
struct
memberlist
*
,
const
char
*
);
PyAPI_FUNC
(
int
)
PyMember_Set
(
char
*
,
struct
memberlist
*
,
c
onst
c
har
*
,
PyObject
*
);
/* Current API, use this */
PyAPI_FUNC
(
PyObject
*
)
PyMember_GetOne
(
char
*
,
struct
PyMemberDef
*
);
PyAPI_FUNC
(
PyObject
*
)
PyMember_GetOne
(
c
onst
c
har
*
,
struct
PyMemberDef
*
);
PyAPI_FUNC
(
int
)
PyMember_SetOne
(
char
*
,
struct
PyMemberDef
*
,
PyObject
*
);
...
...
This diff is collapsed.
Click to expand it.
PC/_winreg.c
View file @
c3d12ac8
...
...
@@ -455,7 +455,7 @@ static PyNumberMethods PyHKEY_NumberMethods =
/* fwd declare __getattr__ */
static
PyObject
*
PyHKEY_getattr
(
PyObject
*
self
,
char
*
name
);
static
PyObject
*
PyHKEY_getattr
(
PyObject
*
self
,
c
onst
c
har
*
name
);
/* The type itself */
PyTypeObject
PyHKEY_Type
=
...
...
@@ -526,7 +526,7 @@ static struct PyMethodDef PyHKEY_methods[] = {
};
/*static*/
PyObject
*
PyHKEY_getattr
(
PyObject
*
self
,
char
*
name
)
PyHKEY_getattr
(
PyObject
*
self
,
c
onst
c
har
*
name
)
{
PyObject
*
res
;
...
...
This diff is collapsed.
Click to expand it.
Python/structmember.c
View file @
c3d12ac8
...
...
@@ -29,7 +29,7 @@ listmembers(struct memberlist *mlist)
}
PyObject
*
PyMember_Get
(
c
har
*
addr
,
struct
memberlist
*
mlist
,
char
*
name
)
PyMember_Get
(
c
onst
char
*
addr
,
struct
memberlist
*
mlist
,
const
char
*
name
)
{
struct
memberlist
*
l
;
...
...
@@ -51,7 +51,7 @@ PyMember_Get(char *addr, struct memberlist *mlist, char *name)
}
PyObject
*
PyMember_GetOne
(
char
*
addr
,
PyMemberDef
*
l
)
PyMember_GetOne
(
c
onst
c
har
*
addr
,
PyMemberDef
*
l
)
{
PyObject
*
v
;
if
((
l
->
flags
&
READ_RESTRICTED
)
&&
...
...
@@ -134,7 +134,7 @@ PyMember_GetOne(char *addr, PyMemberDef *l)
}
int
PyMember_Set
(
char
*
addr
,
struct
memberlist
*
mlist
,
char
*
name
,
PyObject
*
v
)
PyMember_Set
(
char
*
addr
,
struct
memberlist
*
mlist
,
c
onst
c
har
*
name
,
PyObject
*
v
)
{
struct
memberlist
*
l
;
...
...
This diff is collapsed.
Click to expand it.
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