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
d5c4022d
Commit
d5c4022d
authored
Nov 20, 2011
by
Victor Stinner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove the two ugly and unused WRITE_ASCII_OR_WSTR and WRITE_WSTR macros
parent
2e9cfadd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
18 deletions
+0
-18
Objects/unicodeobject.c
Objects/unicodeobject.c
+0
-18
No files found.
Objects/unicodeobject.c
View file @
d5c4022d
...
@@ -5589,21 +5589,6 @@ length_of_escaped_ascii_string(const char *s, Py_ssize_t size)
...
@@ -5589,21 +5589,6 @@ length_of_escaped_ascii_string(const char *s, Py_ssize_t size)
return
length
;
return
length
;
}
}
/* Similar to PyUnicode_WRITE but either write into wstr field
or treat string as ASCII. */
#define WRITE_ASCII_OR_WSTR(kind, buf, index, value) \
do { \
if ((kind) != PyUnicode_WCHAR_KIND) \
((unsigned char *)(buf))[(index)] = (unsigned char)(value); \
else \
((Py_UNICODE *)(buf))[(index)] = (Py_UNICODE)(value); \
} while (0)
#define WRITE_WSTR(buf, index, value) \
assert(kind == PyUnicode_WCHAR_KIND), \
((Py_UNICODE *)(buf))[(index)] = (Py_UNICODE)(value)
static
_PyUnicode_Name_CAPI
*
ucnhash_CAPI
=
NULL
;
static
_PyUnicode_Name_CAPI
*
ucnhash_CAPI
=
NULL
;
PyObject
*
PyObject
*
...
@@ -5873,9 +5858,6 @@ PyUnicode_DecodeUnicodeEscape(const char *s,
...
@@ -5873,9 +5858,6 @@ PyUnicode_DecodeUnicodeEscape(const char *s,
return
NULL
;
return
NULL
;
}
}
#undef WRITE_ASCII_OR_WSTR
#undef WRITE_WSTR
/* Return a Unicode-Escape string version of the Unicode object.
/* Return a Unicode-Escape string version of the Unicode object.
If quotes is true, the string is enclosed in u"" or u'' quotes as
If quotes is true, the string is enclosed in u"" or u'' quotes as
...
...
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