summaryrefslogtreecommitdiff
path: root/psycopg/adapter_list.h
diff options
context:
space:
mode:
authorJames Henstridge <james@jamesh.id.au>2008-01-21 05:54:01 +0000
committerJames Henstridge <james@jamesh.id.au>2008-01-21 05:54:01 +0000
commit864d107325fb616eaaf873ad20c66aa77b648a5c (patch)
treee60ad253db0b909d13b3da7800e9670ac54de980 /psycopg/adapter_list.h
parent3265dd172d259201d90666eff17b3276e798a270 (diff)
downloadpsycopg2-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/adapter_list.h')
-rw-r--r--psycopg/adapter_list.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/psycopg/adapter_list.h b/psycopg/adapter_list.h
index 9ffc52e..9e7fb48 100644
--- a/psycopg/adapter_list.h
+++ b/psycopg/adapter_list.h
@@ -25,11 +25,13 @@
#define PY_SSIZE_T_CLEAN
#include <Python.h>
+#include "psycopg/config.h"
+
#ifdef __cplusplus
extern "C" {
#endif
-extern PyTypeObject listType;
+extern HIDDEN PyTypeObject listType;
typedef struct {
PyObject_HEAD
@@ -39,7 +41,7 @@ typedef struct {
char *encoding;
} listObject;
-extern PyObject *psyco_List(PyObject *module, PyObject *args);
+HIDDEN PyObject *psyco_List(PyObject *module, PyObject *args);
#define psyco_List_doc \
"List(list, enc) -> new quoted list"