mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-14 10:18:02 +00:00
- Remove most __ASSEMBLER__ __LINKER__ ifdefs - Rename libc/intrin/bits.h to libc/serialize.h - Block pthread cancelation in fchmodat() polyfill - Remove `clang-format off` statements in third_party
19 lines
639 B
C
19 lines
639 B
C
#ifndef PYSQLITE_UTIL_H
|
|
#define PYSQLITE_UTIL_H
|
|
#include "third_party/python/Include/Python.h"
|
|
#include "third_party/python/Include/pythread.h"
|
|
#include "third_party/python/Modules/_sqlite/connection.h"
|
|
#include "third_party/sqlite3/sqlite3.h"
|
|
|
|
int pysqlite_step(sqlite3_stmt* statement, pysqlite_Connection* connection);
|
|
|
|
/**
|
|
* Checks the SQLite error code and sets the appropriate DB-API exception.
|
|
* Returns the error code (0 means no error occurred).
|
|
*/
|
|
int _pysqlite_seterror(sqlite3* db, sqlite3_stmt* st);
|
|
|
|
PyObject * _pysqlite_long_from_int64(sqlite_int64 value);
|
|
sqlite_int64 _pysqlite_long_as_int64(PyObject * value);
|
|
|
|
#endif
|