Commit Graph

117 Commits

Author SHA1 Message Date
Laurence Withers dcb15f2081 Bump version 2012-01-07 17:42:57 +00:00
Laurence Withers 4c470ec1e9 Bump version 2012-01-07 17:42:57 +00:00
Laurence Withers ba81c458e1 Update for 2012-06-30 leap second 2012-01-07 17:42:44 +00:00
Laurence Withers 49536349f7 Bump version 2011-11-18 12:19:09 +00:00
Laurence Withers c7b38eab5a Bump version 2011-11-18 12:19:09 +00:00
Laurence Withers c198eaf34b Remove accidental variable definition 2011-11-16 12:04:15 +00:00
Laurence Withers b622223b64 Remove unneeded nonnull attribute 2011-11-16 09:58:21 +00:00
Laurence Withers 81df4e8a05 Add C++ extern C include guards 2011-11-15 16:49:46 +00:00
Laurence Withers 7a5f30bfcd Update build system 2011-11-15 16:49:46 +00:00
Laurence Withers d910e88bc3 Bump version 2010-08-02 12:01:43 +00:00
Laurence Withers 2aa3d5aaac Bump version 2010-08-02 12:01:43 +00:00
Laurence Withers d013bff263 Remove incorrect nonnull attribute
iso8601_leap_table_load() had an incorrect ‘nonnull’ attribute, which could
lead to crashes as the compiled code could omit the test for null which then
substitutes the system default. Fix it by removing the attribute.
2010-08-02 12:00:20 +00:00
Laurence Withers 8cc71fb069 Bump version 2010-06-18 12:49:36 +00:00
Laurence Withers 2d9621e0a5 Bump version 2010-06-18 12:49:33 +00:00
Laurence Withers 944331702f Cope with negative C library timestamps
While perhaps not strictly valid, negative timestamps can potentially be
returned by the C library and passed in to iso8601_from_ts() etc. This commit
adds a check for such timestamps and copes with the gracefully, whereas
previously invalid ISO8601 timestamps would have been generated.
2010-06-18 12:47:38 +00:00
Laurence Withers 0d56edd890 Bump version 2010-01-28 16:22:46 +00:00
Laurence Withers 65fe613272 Bump version 2010-01-28 16:22:39 +00:00
Laurence Withers 64e06d17c4 Add explicit note on params which may be null 2010-01-28 16:22:03 +00:00
Laurence Withers cd9a2d252a iso8601_difference(): incorrect nonnull attribute
iso8601_difference was incorrectly marked as having all of its attributes
required to be non-null, but this is not the case according to the docs or
the implementation. This was causing a crash as the compiled library was
taking advantage of the nonnull notation to remove some tests against null
which, according to the docs, are actually required.

Fix by tightening the nonnull specification to those parameters which actually
require it.
2010-01-28 16:17:53 +00:00
Laurence Withers ed05b5c872 Bump version 2010-01-08 19:26:21 +00:00
Laurence Withers bd4ddd7621 Write brief description for library
Add a brief description of the library on the doxygen front page.
2010-01-08 19:25:58 +00:00
Laurence Withers 420df40a5b Bring C code up to coding standards
Reformatting and comment improvement only. No code changes.
2010-01-08 19:22:36 +00:00
Laurence Withers 9f3fbd4116 Minor build system update
A fix for when there are multiple libraries in a single package. Doesn't apply
here but just in case.
2010-01-08 18:49:50 +00:00
Laurence Withers 6285d214aa Documentation and annotation updates
This commit updates the Doxygen documentation (particularly taking into account
a request from Kelly Dunlop for more verbose notice about which members are
changed by iso8601_from_*()) and file/function annotation/formatting to current
standards.
2010-01-08 18:46:34 +00:00
Laurence Withers e504a722f5 Bump version 2009-05-29 14:52:52 +00:00
Laurence Withers 1a0553e083 Bump version 2009-05-29 14:52:52 +00:00
Laurence Withers 7ba82a2988 Add default path for iso8601_leap_table_load() 2009-05-29 14:51:26 +00:00
Laurence Withers b7d039a32c Add iso8601_elapsed_divide() 2009-05-29 14:51:14 +00:00
Laurence Withers dcfc699af0 Bump version 2009-04-06 14:58:26 +00:00
Laurence Withers 47ccc537b8 Bump version 2009-04-06 14:58:26 +00:00
Laurence Withers 1d9447dcd2 Add iso8601_cmp(), comparison function for qsort() 2009-04-06 14:58:05 +00:00
Laurence Withers d09e55e8ae Update build system 2009-04-06 14:56:00 +00:00
Laurence Withers 3309803b9e Bump version 2009-02-12 02:32:14 +00:00
Laurence Withers 076d215860 Bump version 2009-02-12 02:32:14 +00:00
Laurence Withers 6937f2f12b Bugfix in rounding of iso8601_add_elapsed()
When adding a number of nanoseconds so that the resultant date lies exactly on
a second boundary, rounding was not performed when it should have been. Fix
the rounding so that the seconds field rolls over.
2009-02-12 02:31:04 +00:00
Laurence Withers c4679ded38 Bump version 2009-01-03 19:40:43 +00:00
Laurence Withers 557c7e1efb Bump version 2009-01-03 19:40:43 +00:00
Laurence Withers 711872660b Add documentation for leap second table functions 2009-01-03 19:40:16 +00:00
Laurence Withers ddaa9a8f8d Link to enumerations correctly in documentation 2009-01-03 19:34:17 +00:00
Laurence Withers 394dc40b97 Add mechanism to free old leap table
To avoid memory leaks, we add a simple internal mechanism to free the table
of leap seconds if it was previously loaded from disk. The user is still
responsible for freeing their own tables, of course.
2009-01-03 19:33:24 +00:00
Laurence Withers 73df6f836d Remove stale pkgconfig file 2009-01-03 19:22:21 +00:00
Laurence Withers a0f747067d Add functions to load/set leap second table 2009-01-03 19:21:46 +00:00
Laurence Withers e908febba2 Move -std=gnu99 to correct place, use _GNU_SOURCE 2009-01-03 19:21:25 +00:00
Laurence Withers 2c016208f2 Use dynamic table for leap second days 2009-01-03 19:08:21 +00:00
Laurence Withers 849744bb07 Use std=gnu99
This allows us to use C99 features such as lldiv along with GNU extensions
and POSIX, etc.
2009-01-03 19:04:54 +00:00
Laurence Withers 2d51d09c83 Upgrade build system 2008-12-20 22:36:28 +00:00
Laurence Withers cad2283f6a Add iso8601_add_multiple()
Add a function to efficiently add (or subtract) a multiple of a period
to a timestamp.
2008-12-11 15:37:12 +00:00
Laurence Withers d431f68054 Add leap second for 2008-12-31
Add an entry to record the leap second at 2008-12-31, and tidy up the table
formatting.
2008-12-10 18:24:32 +00:00
Laurence Withers 0d504baaee Bump version 2008-01-07 13:17:17 +00:00
Laurence Withers 93efb6294d Bump version 2008-01-07 13:16:22 +00:00