diff options
| author | James Henstridge <james@jamesh.id.au> | 2008-01-21 05:54:01 +0000 |
|---|---|---|
| committer | James Henstridge <james@jamesh.id.au> | 2008-01-21 05:54:01 +0000 |
| commit | 864d107325fb616eaaf873ad20c66aa77b648a5c (patch) | |
| tree | e60ad253db0b909d13b3da7800e9670ac54de980 /psycopg/cursor.h | |
| parent | 3265dd172d259201d90666eff17b3276e798a270 (diff) | |
| download | psycopg2-864d107325fb616eaaf873ad20c66aa77b648a5c.tar.gz | |
* psycypg/*.h: apply HIDDEN to all global variables and functions
that should not be exported from the module. This results in a 5%
reduction in code size and shortens the dynamic symbol table.
* psycopg/config.h: If GCC >= 4.0 is installed, define the HIDDEN
symbol to apply the "hidden" visibility attribute.
Diffstat (limited to 'psycopg/cursor.h')
| -rw-r--r-- | psycopg/cursor.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/psycopg/cursor.h b/psycopg/cursor.h index d8af1e8..355dd27 100644 --- a/psycopg/cursor.h +++ b/psycopg/cursor.h @@ -26,13 +26,14 @@ #include <Python.h> #include <libpq-fe.h> +#include "psycopg/config.h" #include "psycopg/connection.h" #ifdef __cplusplus extern "C" { #endif -extern PyTypeObject cursorType; +extern HIDDEN PyTypeObject cursorType; typedef struct { PyObject_HEAD @@ -80,7 +81,7 @@ typedef struct { } cursorObject; /* C-callable functions in cursor_int.c and cursor_ext.c */ -extern void curs_reset(cursorObject *self); +HIDDEN void curs_reset(cursorObject *self); /* exception-raising macros */ #define EXC_IF_CURS_CLOSED(self) \ |
