Functions unused outside the module marked static.

This commit is contained in:
Daniele Varrazzo 2010-11-10 15:50:05 +00:00
parent cf07af5ff5
commit 92ee893f0f
2 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2010-11-10 Daniele Varrazzo <daniele.varrazzo@gmail.com>
* psycopg/green.c: functions unused outside the module marked static.
2010-11-09 Daniele Varrazzo <daniele.varrazzo@gmail.com> 2010-11-09 Daniele Varrazzo <daniele.varrazzo@gmail.com>
* Replaced PyObject_CallFunction() with *ObjArgs() where more efficient. * Replaced PyObject_CallFunction() with *ObjArgs() where more efficient.

View File

@ -33,8 +33,8 @@
HIDDEN PyObject *wait_callback = NULL; HIDDEN PyObject *wait_callback = NULL;
PyObject *have_wait_callback(void); static PyObject *have_wait_callback(void);
void psyco_clear_result_blocking(connectionObject *conn); static void psyco_clear_result_blocking(connectionObject *conn);
/* Register a callback function to block waiting for data. /* Register a callback function to block waiting for data.
* *
@ -94,7 +94,7 @@ psyco_green()
* *
* The function returns a new reference: decref after use. * The function returns a new reference: decref after use.
*/ */
PyObject * static PyObject *
have_wait_callback() have_wait_callback()
{ {
PyObject *cb; PyObject *cb;
@ -186,7 +186,7 @@ end:
* If any command was issued before clearing the result, libpq would fail with * If any command was issued before clearing the result, libpq would fail with
* the error "another command is already in progress". * the error "another command is already in progress".
*/ */
void static void
psyco_clear_result_blocking(connectionObject *conn) psyco_clear_result_blocking(connectionObject *conn)
{ {
PGresult *res; PGresult *res;