From 864d107325fb616eaaf873ad20c66aa77b648a5c Mon Sep 17 00:00:00 2001 From: James Henstridge Date: Mon, 21 Jan 2008 05:54:01 +0000 Subject: * 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. --- psycopg/adapter_list.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'psycopg/adapter_list.h') 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 +#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" -- cgit v1.2.1