summaryrefslogtreecommitdiff
path: root/psycopg/pqpath.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/pqpath.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/pqpath.h')
-rw-r--r--psycopg/pqpath.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/psycopg/pqpath.h b/psycopg/pqpath.h
index 9bb011c..ee14fab 100644
--- a/psycopg/pqpath.h
+++ b/psycopg/pqpath.h
@@ -22,6 +22,7 @@
#ifndef PSYCOPG_PQPATH_H
#define PSYCOPG_PQPATH_H 1
+#include "psycopg/config.h"
#include "psycopg/cursor.h"
#include "psycopg/connection.h"
@@ -30,20 +31,20 @@
#define CLEARPGRES(pgres) PQclear(pgres); pgres = NULL
/* exported functions */
-extern int pq_fetch(cursorObject *curs);
-extern int pq_execute(cursorObject *curs, const char *query, int async);
-extern int pq_commit(connectionObject *conn);
-extern int pq_abort_locked(connectionObject *conn, PGresult **pgres,
+HIDDEN int pq_fetch(cursorObject *curs);
+HIDDEN int pq_execute(cursorObject *curs, const char *query, int async);
+HIDDEN int pq_commit(connectionObject *conn);
+HIDDEN int pq_abort_locked(connectionObject *conn, PGresult **pgres,
char **error);
-extern int pq_abort(connectionObject *conn);
-extern int pq_is_busy(connectionObject *conn);
+HIDDEN int pq_abort(connectionObject *conn);
+HIDDEN int pq_is_busy(connectionObject *conn);
-extern void pq_set_critical(connectionObject *conn, const char *msg);
+HIDDEN void pq_set_critical(connectionObject *conn, const char *msg);
-extern int pq_execute_command_locked(connectionObject *conn,
+HIDDEN int pq_execute_command_locked(connectionObject *conn,
const char *query,
PGresult **pgres, char **error);
-extern void pq_complete_error(connectionObject *conn, PGresult **pgres,
+HIDDEN void pq_complete_error(connectionObject *conn, PGresult **pgres,
char **error);
#endif /* !defined(PSYCOPG_PQPATH_H) */