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
74a3bec5
Commit
74a3bec5
authored
Jun 13, 2002
by
Andrew MacIntyre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
_Py prefix is verboten for static entry points
parent
7aec4a2e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Modules/unicodedata.c
Modules/unicodedata.c
+4
-4
No files found.
Modules/unicodedata.c
View file @
74a3bec5
...
...
@@ -277,7 +277,7 @@ _gethash(const char *s, int len, int scale)
}
static
int
_
Py_get
name
(
Py_UCS4
code
,
char
*
buffer
,
int
buflen
)
_
getuc
name
(
Py_UCS4
code
,
char
*
buffer
,
int
buflen
)
{
int
offset
;
int
i
;
...
...
@@ -334,7 +334,7 @@ _cmpname(int code, const char* name, int namelen)
/* check if code corresponds to the given name */
int
i
;
char
buffer
[
NAME_MAXLEN
];
if
(
!
_
Py_get
name
(
code
,
buffer
,
sizeof
(
buffer
)))
if
(
!
_
getuc
name
(
code
,
buffer
,
sizeof
(
buffer
)))
return
0
;
for
(
i
=
0
;
i
<
namelen
;
i
++
)
{
if
(
toupper
(
name
[
i
])
!=
buffer
[
i
])
...
...
@@ -384,7 +384,7 @@ _getcode(const char* name, int namelen, Py_UCS4* code)
static
const
_PyUnicode_Name_CAPI
hashAPI
=
{
sizeof
(
_PyUnicode_Name_CAPI
),
_
Py_get
name
,
_
getuc
name
,
_getcode
};
...
...
@@ -407,7 +407,7 @@ unicodedata_name(PyObject* self, PyObject* args)
return
NULL
;
}
if
(
!
_
Py_get
name
((
Py_UCS4
)
*
PyUnicode_AS_UNICODE
(
v
),
if
(
!
_
getuc
name
((
Py_UCS4
)
*
PyUnicode_AS_UNICODE
(
v
),
name
,
sizeof
(
name
)))
{
if
(
defobj
==
NULL
)
{
PyErr_SetString
(
PyExc_ValueError
,
"no such 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