From: Tobias Oetiker Date: Wed, 2 Jul 2014 12:23:09 +0000 (+0200) Subject: make rrd_strtod and rrd_snprintf available for all to enjoy X-Git-Tag: v1.5.0-rc1~67 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5706f3ef4be3115385ef62f6daa658a8007a5338;p=thirdparty%2Frrdtool-1.x.git make rrd_strtod and rrd_snprintf available for all to enjoy --- diff --git a/doc/librrd.pod b/doc/librrd.pod index caeff27a..a0f57e36 100644 --- a/doc/librrd.pod +++ b/doc/librrd.pod @@ -82,6 +82,14 @@ values supplied to the fetch function. If the values are the same, the previous Generates random numbers just like random(). This further ensures that the random number generator is seeded exactly once per process. +=item B + +works like normal strtod, but it is locale independent (and thread save) + +=item B + +works like normal snprintf but it is locale independent (and thread save) + =item B Dynamically resize the array pointed to by C. C is a diff --git a/src/Makefile.am b/src/Makefile.am index 108787b1..6d6c8bf9 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -127,7 +127,7 @@ rrdtool_LDADD = librrd.la rrdcached_SOURCES = rrd_daemon.c rrdcached_DEPENDENCIES = librrd_th.la rrdcached_CPPFLAGS = -DVERSION='"$(VERSION)"' -DLOCALSTATEDIR='"$(localstatedir)"' -rrdcached_LDADD = rrd_strtod.o librrd_th.la $(ALL_LIBS) +rrdcached_LDADD = librrd_th.la $(ALL_LIBS) pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = librrd.pc diff --git a/src/librrd.sym.in.in b/src/librrd.sym.in.in index ba497595..4b4d3b82 100644 --- a/src/librrd.sym.in.in +++ b/src/librrd.sym.in.in @@ -52,6 +52,8 @@ rrd_seek rrd_set_error rrd_set_to_DINF rrd_set_to_DNAN +rrd_strtod +rrd_snprintf rrd_strerror rrd_strversion rrd_tell