Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 847c51a

Browse files
committed
Slightly better conformance to the Python C style guide.
1 parent af876d7 commit 847c51a

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

Doc/api/intro.tex

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,8 @@ \subsubsection{Reference Count Details \label{refcountDetails}}
250250
item:
251251

252252
\begin{verbatim}
253-
int set_all(PyObject *target, PyObject *item)
253+
int
254+
set_all(PyObject *target, PyObject *item)
254255
{
255256
int i, n;
256257
@@ -293,7 +294,8 @@ \subsubsection{Reference Count Details \label{refcountDetails}}
293294
\cfunction{PySequence_GetItem()}\ttindex{PySequence_GetItem()}.
294295

295296
\begin{verbatim}
296-
long sum_list(PyObject *list)
297+
long
298+
sum_list(PyObject *list)
297299
{
298300
int i, n;
299301
long total = 0;
@@ -313,7 +315,8 @@ \subsubsection{Reference Count Details \label{refcountDetails}}
313315
\ttindex{sum_list()}
314316

315317
\begin{verbatim}
316-
long sum_sequence(PyObject *sequence)
318+
long
319+
sum_sequence(PyObject *sequence)
317320
{
318321
int i, n;
319322
long total = 0;
@@ -432,7 +435,8 @@ \section{Exceptions \label{exceptions}}
432435
Here is the corresponding C code, in all its glory:
433436

434437
\begin{verbatim}
435-
int incr_item(PyObject *dict, PyObject *key)
438+
int
439+
incr_item(PyObject *dict, PyObject *key)
436440
{
437441
/* Objects all initialized to NULL for Py_XDECREF */
438442
PyObject *item = NULL, *const_one = NULL, *incremented_item = NULL;

0 commit comments

Comments
 (0)