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
beb3e4ce
Commit
beb3e4ce
authored
Jul 16, 2000
by
Greg Stein
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stop messing around with goto and just write the macro correctly.
parent
e6e0291e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
Objects/unicodeobject.c
Objects/unicodeobject.c
+6
-7
No files found.
Objects/unicodeobject.c
View file @
beb3e4ce
...
...
@@ -631,11 +631,12 @@ int utf8_decoding_error(const char **source,
}
}
#define UTF8_ERROR(details) do { \
if (utf8_decoding_error(&s, &p, errors, details)) \
goto onError; \
goto nextChar; \
} while (0)
#define UTF8_ERROR(details) \
if (1) { \
if (utf8_decoding_error(&s, &p, errors, (details))) \
goto onError; \
continue; \
} else
PyObject
*
PyUnicode_DecodeUTF8
(
const
char
*
s
,
int
size
,
...
...
@@ -731,8 +732,6 @@ PyObject *PyUnicode_DecodeUTF8(const char *s,
UTF8_ERROR
(
"unsupported Unicode code range"
);
}
s
+=
n
;
nextChar:
/* empty */
;
}
/* Adjust length */
...
...
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