diff options
| author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2010-11-10 15:50:05 +0000 |
|---|---|---|
| committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2010-11-10 15:50:05 +0000 |
| commit | 92ee893f0fcd3fb49ec41ad384cd7ff4b74d294f (patch) | |
| tree | c514bafbbef7ae23c87ef69b90bdce65425f8380 | |
| parent | cf07af5ff50b7f8febe06adcf42babbf639b1ae9 (diff) | |
| download | psycopg2-92ee893f0fcd3fb49ec41ad384cd7ff4b74d294f.tar.gz | |
Functions unused outside the module marked static.
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | psycopg/green.c | 8 |
2 files changed, 8 insertions, 4 deletions
@@ -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> * Replaced PyObject_CallFunction() with *ObjArgs() where more efficient. diff --git a/psycopg/green.c b/psycopg/green.c index 0036d2e..4c7cc40 100644 --- a/psycopg/green.c +++ b/psycopg/green.c @@ -33,8 +33,8 @@ HIDDEN PyObject *wait_callback = NULL; -PyObject *have_wait_callback(void); -void psyco_clear_result_blocking(connectionObject *conn); +static PyObject *have_wait_callback(void); +static void psyco_clear_result_blocking(connectionObject *conn); /* Register a callback function to block waiting for data. * @@ -94,7 +94,7 @@ psyco_green() * * The function returns a new reference: decref after use. */ -PyObject * +static PyObject * have_wait_callback() { PyObject *cb; @@ -186,7 +186,7 @@ end: * If any command was issued before clearing the result, libpq would fail with * the error "another command is already in progress". */ -void +static void psyco_clear_result_blocking(connectionObject *conn) { PGresult *res; |
