diff options
author | James Henstridge <james@jamesh.id.au> | 2008-01-22 00:13:42 +0000 |
---|---|---|
committer | James Henstridge <james@jamesh.id.au> | 2008-01-22 00:13:42 +0000 |
commit | 6c2e3ab49b388db328ecceaf6b8117ff28213928 (patch) | |
tree | 15188dbdb65cb5ab48fbb9d408a09cdf8d191e1f /psycopg/adapter_datetime.c | |
parent | fe853d02618076577b617f7ec4ce75dcf40b7c24 (diff) | |
download | psycopg2-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.c | 16 |
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 */ |