diff options
author | Gerhard Häring <gh@ghaering.de> | 2010-03-05 09:12:37 (GMT) |
---|---|---|
committer | Gerhard Häring <gh@ghaering.de> | 2010-03-05 09:12:37 (GMT) |
commit | 3bbb67273a8c146a38de91080a37e716e2699622 (patch) | |
tree | 19a3d1e79cb51cc42760af73724c4f4615d4c21c /Modules/_sqlite/cursor.h | |
parent | 2bb66e03b72ae5a0468dab0b7020316f31c8cfdf (diff) | |
download | cpython-3bbb67273a8c146a38de91080a37e716e2699622.zip cpython-3bbb67273a8c146a38de91080a37e716e2699622.tar.gz cpython-3bbb67273a8c146a38de91080a37e716e2699622.tar.bz2 |
Merged code from pysqlite 2.6.0.
Diffstat (limited to 'Modules/_sqlite/cursor.h')
-rw-r--r-- | Modules/_sqlite/cursor.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Modules/_sqlite/cursor.h b/Modules/_sqlite/cursor.h index 54d816d..82f5972 100644 --- a/Modules/_sqlite/cursor.h +++ b/Modules/_sqlite/cursor.h @@ -1,6 +1,6 @@ /* cursor.h - definitions for the cursor type * - * Copyright (C) 2004-2007 Gerhard Häring <gh@ghaering.de> + * Copyright (C) 2004-2010 Gerhard Häring <gh@ghaering.de> * * This file is part of pysqlite. * @@ -40,9 +40,14 @@ typedef struct long rowcount; PyObject* row_factory; pysqlite_Statement* statement; + int closed; + int reset; + int initialized; /* the next row to be returned, NULL if no next row available */ PyObject* next_row; + + PyObject* in_weakreflist; /* List of weak references */ } pysqlite_Cursor; typedef enum { @@ -53,8 +58,6 @@ typedef enum { extern PyTypeObject pysqlite_CursorType; -int pysqlite_cursor_init(pysqlite_Cursor* self, PyObject* args, PyObject* kwargs); -void pysqlite_cursor_dealloc(pysqlite_Cursor* self); PyObject* pysqlite_cursor_execute(pysqlite_Cursor* self, PyObject* args); PyObject* pysqlite_cursor_executemany(pysqlite_Cursor* self, PyObject* args); PyObject* pysqlite_cursor_getiter(pysqlite_Cursor *self); |