Re: [htdig3-dev] strptime


Gilles Detillieux (grdetil@scrc.umanitoba.ca)
Thu, 12 Aug 1999 15:01:09 -0500 (CDT)


According to loic@ceic.com:
> I've reworked all the strptime usage. configure.in now defines
>
> HAVE_STRPTIME and
> HAVE_STRPTIME_DECL
>
> The htdig strptime function is only used if HAVE_STRPTIME is not
> defined. A declaration of strptime is included if HAVE_STRPTIME_DECL is
> not defined.
>
> From my point of view it compiles without errors or warnings.
>
> Let me know if you have problems,

As my C library has strptime, I don't expect any problems. However, is
it possible that on a system that doesn't have strptime, but either does
have an incompatible langinfo.h, or doesn't define nl_item in nl_types.h,
the problem would rise up again? Just a thought, but it might be a good
idea to include tests for langinfo.h and nl_types.h, and include tests
for HAVE_LANGINFO_H in strptime.c, and HAVE_NL_TYPES_H in langinfo.h.
Of course, langinfo.h in htlib would need to be renamed, to destinguish
it from the system's langinfo.h. This may be overkill, though.

-- 
Gilles R. Detillieux              E-mail: <grdetil@scrc.umanitoba.ca>
Spinal Cord Research Centre       WWW:    http://www.scrc.umanitoba.ca/~grdetil
Dept. Physiology, U. of Manitoba  Phone:  (204)789-3766
Winnipeg, MB  R3E 3J7  (Canada)   Fax:    (204)789-3930

------------------------------------ To unsubscribe from the htdig3-dev mailing list, send a message to htdig3-dev@htdig.org containing the single word "unsubscribe" in the SUBJECT of the message.



This archive was generated by hypermail 2.0b3 on Thu Aug 12 1999 - 13:02:09 PDT