projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use trunc module from gnulib instead of our home-grown solution.
[pspp-builds.git]
/
src
/
language
/
expressions
/
helpers.c
diff --git
a/src/language/expressions/helpers.c
b/src/language/expressions/helpers.c
index a0f0c0fc735f394d5c17f4cc74347f2beb44e939..a28f1a666ef2180ea17730c024dbfe19f4d1980e 100644
(file)
--- a/
src/language/expressions/helpers.c
+++ b/
src/language/expressions/helpers.c
@@
-131,15
+131,6
@@
enum date_unit
DATE_SECONDS
};
DATE_SECONDS
};
-#ifndef HAVE_TRUNC
-/* Return X rounded toward zero. */
-static double
-trunc (double x)
-{
- return x >= 0.0 ? floor (x) : ceil (x);
-}
-#endif /* !HAVE_TRUNC */
-
/* Stores in *UNIT the unit whose name is NAME.
Return success. */
static enum date_unit
/* Stores in *UNIT the unit whose name is NAME.
Return success. */
static enum date_unit