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/typecast_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/typecast_datetime.c')
-rw-r--r-- | psycopg/typecast_datetime.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/psycopg/typecast_datetime.c b/psycopg/typecast_datetime.c index 6748c6a..99f4b60 100644 --- a/psycopg/typecast_datetime.c +++ b/psycopg/typecast_datetime.c @@ -25,11 +25,11 @@ /* 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 HIDDEN PyObject* pyDateTimeModuleP; +extern HIDDEN PyObject *pyDateTypeP; +extern HIDDEN PyObject *pyTimeTypeP; +extern HIDDEN PyObject *pyDateTimeTypeP; +extern HIDDEN PyObject *pyDeltaTypeP; /** DATE - cast a date into a date python object **/ |