Staging
v0.8.1
v0.8.1
Revision 45031dfd1c37fca6361e881d56f4e62f800af91a authored by Christian Heimes on 30 November 2007, 15:13:13 UTC, committed by Christian Heimes on 30 November 2007, 15:13:13 UTC
Guido said: Please roll this back. The error message you added is inappropriate when the parameter to a legitimate register() call is omitted, e.g. collections.Sequence.register()
1 parent 7d2ff88
timefuncs.h
/* timefuncs.h
*/
/* Utility function related to timemodule.c. */
#ifndef TIMEFUNCS_H
#define TIMEFUNCS_H
#ifdef __cplusplus
extern "C" {
#endif
/* Cast double x to time_t, but raise ValueError if x is too large
* to fit in a time_t. ValueError is set on return iff the return
* value is (time_t)-1 and PyErr_Occurred().
*/
PyAPI_FUNC(time_t) _PyTime_DoubleToTimet(double x);
#ifdef __cplusplus
}
#endif
#endif /* TIMEFUNCS_H */
Computing file changes ...