summaryrefslogtreecommitdiff
path: root/psycopg/adapter_datetime.c
diff options
context:
space:
mode:
authorJames Henstridge <james@jamesh.id.au>2008-01-22 00:13:42 +0000
committerJames Henstridge <james@jamesh.id.au>2008-01-22 00:13:42 +0000
commit6c2e3ab49b388db328ecceaf6b8117ff28213928 (patch)
tree15188dbdb65cb5ab48fbb9d408a09cdf8d191e1f /psycopg/adapter_datetime.c
parentfe853d02618076577b617f7ec4ce75dcf40b7c24 (diff)
downloadpsycopg2-6c2e3ab49b388db328ecceaf6b8117ff28213928.tar.gz
* Add HIDDEN attribute to datetime related global variables.
* Make const strings static, which essentially makes them labels for the strings.
Diffstat (limited to 'psycopg/adapter_datetime.c')
-rw-r--r--psycopg/adapter_datetime.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/psycopg/adapter_datetime.c b/psycopg/adapter_datetime.c
index b2b0555..98922d3 100644
--- a/psycopg/adapter_datetime.c
+++ b/psycopg/adapter_datetime.c
@@ -38,14 +38,14 @@
/* the pointer to the datetime module API is initialized by the module init
code, we just need to grab it */
-extern PyObject* pyDateTimeModuleP;
-extern PyObject *pyDateTypeP;
-extern PyObject *pyTimeTypeP;
-extern PyObject *pyDateTimeTypeP;
-extern PyObject *pyDeltaTypeP;
-
-extern PyObject *pyPsycopgTzModule;
-extern PyObject *pyPsycopgTzLOCAL;
+extern HIDDEN PyObject* pyDateTimeModuleP;
+extern HIDDEN PyObject *pyDateTypeP;
+extern HIDDEN PyObject *pyTimeTypeP;
+extern HIDDEN PyObject *pyDateTimeTypeP;
+extern HIDDEN PyObject *pyDeltaTypeP;
+
+extern HIDDEN PyObject *pyPsycopgTzModule;
+extern HIDDEN PyObject *pyPsycopgTzLOCAL;
/* datetime_str, datetime_getquoted - return result of quoting */