Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(60644)

Delta Between Two Patch Sets: Modules/_json.c

Issue 19361: Specialize exceptions thrown by JSON parser
Left Patch Set: Created 5 years ago
Right Patch Set: Created 4 years, 10 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « Lib/test/test_json/test_scanstring.py ('k') | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 #include "Python.h" 1 #include "Python.h"
2 #include "structmember.h" 2 #include "structmember.h"
3 #include "accu.h" 3 #include "accu.h"
4 4
5 #ifdef __GNUC__ 5 #ifdef __GNUC__
6 #define UNUSED __attribute__((__unused__)) 6 #define UNUSED __attribute__((__unused__))
7 #else 7 #else
8 #define UNUSED 8 #define UNUSED
9 #endif 9 #endif
10 10
(...skipping 1870 matching lines...) Expand 10 before | Expand all | Expand 10 after
1881 Py_INCREF((PyObject*)&PyEncoderType); 1881 Py_INCREF((PyObject*)&PyEncoderType);
1882 if (PyModule_AddObject(m, "make_encoder", (PyObject*)&PyEncoderType) < 0) { 1882 if (PyModule_AddObject(m, "make_encoder", (PyObject*)&PyEncoderType) < 0) {
1883 Py_DECREF((PyObject*)&PyEncoderType); 1883 Py_DECREF((PyObject*)&PyEncoderType);
1884 goto fail; 1884 goto fail;
1885 } 1885 }
1886 return m; 1886 return m;
1887 fail: 1887 fail:
1888 Py_DECREF(m); 1888 Py_DECREF(m);
1889 return NULL; 1889 return NULL;
1890 } 1890 }
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+