diff options
author | Bob Ippolito <bob@redivi.com> | 2012-12-28 19:19:04 -0800 |
---|---|---|
committer | Bob Ippolito <bob@redivi.com> | 2012-12-28 19:19:04 -0800 |
commit | 7ed40f0f1f476595f4693a74a1074e5c2446a95e (patch) | |
tree | c1ec073d3cd3c8916fac492fbc35cba2f23e0e6a | |
parent | 0bc9e8a586a6c2e4a85b3896a71fc04ed718cbfd (diff) | |
download | simplejson-7ed40f0f1f476595f4693a74a1074e5c2446a95e.tar.gz |
fix some style nits
-rw-r--r-- | simplejson/_speedups.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/simplejson/_speedups.c b/simplejson/_speedups.c index 6f6d3ad..8282d09 100644 --- a/simplejson/_speedups.c +++ b/simplejson/_speedups.c @@ -30,7 +30,8 @@ static double json_PyOS_string_to_double(const char *s, char **endptr, PyObject *overflow_exception); static double -json_PyOS_string_to_double(const char *s, char **endptr, PyObject *overflow_exception) { +json_PyOS_string_to_double(const char *s, char **endptr, PyObject *overflow_exception) +{ double x; assert(endptr == NULL); assert(overflow_exception == NULL); @@ -652,7 +653,8 @@ join_list_string(PyObject *lst) #endif /* PY_MAJOR_VERSION < 3 */ static PyObject * -_build_rval_index_tuple(PyObject *rval, Py_ssize_t idx) { +_build_rval_index_tuple(PyObject *rval, Py_ssize_t idx) +{ /* return (rval, idx) tuple, stealing reference to rval */ PyObject *tpl; PyObject *pyidx; @@ -1808,7 +1810,8 @@ _match_number_str(PyScannerObject *s, PyObject *pystr, Py_ssize_t start, Py_ssiz #endif /* PY_MAJOR_VERSION < 3 */ static PyObject * -_match_number_unicode(PyScannerObject *s, PyObject *pystr, Py_ssize_t start, Py_ssize_t *next_idx_ptr) { +_match_number_unicode(PyScannerObject *s, PyObject *pystr, Py_ssize_t start, Py_ssize_t *next_idx_ptr) +{ /* Read a JSON number from PyUnicode pystr. idx is the index of the first character of the number *next_idx_ptr is a return-by-reference index to the first character after |