source file of the flowerlib
- (c) 1997--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+ (c) 1997--2009 Han-Wen Nienhuys <hanwen@xs4all.nl>
Jan Nieuwenhuizen <janneke@gnu.org>
*/
#include <cstdio>
#include <cstring>
#include <cctype>
+#include <cassert>
+
+using namespace std;
#include "libc-extension.hh"
return start;
}
-/*
- There are some strange problems with round() on early glibcs.
-*/
-double
-my_round (double x)
-{
- return floor (x -0.5)+ 1.0;
-}
-
-#ifndef isinf
-#if !HAVE_ISINF
-int
-isinf (double x)
-{
- return x && (x == x/ 2);
-}
-#endif
-#endif
-
#if !HAVE_MEMMEM
/** locate a substring. #memmem# finds the first occurrence of
return byte;
}
+/*
+ There are some strange problems with round() on early glibcs.
+*/
+double
+my_round (double x)
+{
+ return floor (x -0.5)+ 1.0;
+}
+
+/* namespace std { */
+
+#ifndef isinf
+#if !HAVE_ISINF
+int
+isinf (double x)
+{
+ return x && (x == x/ 2);
+}
+#endif
+#endif
+
#if ! HAVE_SNPRINTF
int
snprintf (char *str, size_t n, char const *format, ...)
}
#endif
+/* } namespace std */