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

Side by Side Diff: Modules/_futuresmodule.c

Issue 28405: Compile error on Modules/_futuresmodule.c (Closed)
Patch Set: Created 3 years, 3 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:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #include "Python.h" 1 #include "Python.h"
2 #include "structmember.h" 2 #include "structmember.h"
3 3
4 4
5 /* identifiers used from some functions */ 5 /* identifiers used from some functions */
6 _Py_IDENTIFIER(call_soon); 6 _Py_IDENTIFIER(call_soon);
7 7
8 8
9 /* State of the _futures module */ 9 /* State of the _futures module */
10 static int _futuremod_ready; 10 static int _futuremod_ready;
(...skipping 925 matching lines...) Expand 10 before | Expand all | Expand 10 after
936 if (!PyObject_TypeCheck(fut, &FutureType)) { 936 if (!PyObject_TypeCheck(fut, &FutureType)) {
937 PyErr_BadInternalCall(); 937 PyErr_BadInternalCall();
938 return NULL; 938 return NULL;
939 } 939 }
940 it = PyObject_GC_New(futureiterobject, &FutureIterType); 940 it = PyObject_GC_New(futureiterobject, &FutureIterType);
941 if (it == NULL) { 941 if (it == NULL) {
942 return NULL; 942 return NULL;
943 } 943 }
944 Py_INCREF(fut); 944 Py_INCREF(fut);
945 it->future = (FutureObj*)fut; 945 it->future = (FutureObj*)fut;
946 _PyObject_GC_TRACK(it); 946 PyObject_GC_Track(it);
947 return (PyObject*)it; 947 return (PyObject*)it;
948 } 948 }
949 949
950 /*********************** Module **************************/ 950 /*********************** Module **************************/
951 951
952 PyDoc_STRVAR(module_doc, "Fast asyncio.Future implementation.\n"); 952 PyDoc_STRVAR(module_doc, "Fast asyncio.Future implementation.\n");
953 953
954 PyObject * 954 PyObject *
955 _init_module(PyObject *self, PyObject *args) 955 _init_module(PyObject *self, PyObject *args)
956 { 956 {
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
1025 } 1025 }
1026 1026
1027 Py_INCREF(&FutureType); 1027 Py_INCREF(&FutureType);
1028 if (PyModule_AddObject(m, "Future", (PyObject *)&FutureType) < 0) { 1028 if (PyModule_AddObject(m, "Future", (PyObject *)&FutureType) < 0) {
1029 Py_DECREF(&FutureType); 1029 Py_DECREF(&FutureType);
1030 return NULL; 1030 return NULL;
1031 } 1031 }
1032 1032
1033 return m; 1033 return m;
1034 } 1034 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

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