/*
* Sherlock Library -- Miscellaneous Functions
*
- * (c) 1997--2001 Martin Mares <mj@ucw.cz>
+ * (c) 1997--2003 Martin Mares <mj@ucw.cz>
*
* This software may be freely distributed and used according to the terms
* of the GNU Lesser General Public License.
#define L_ERROR_R 'e'
#define L_FATAL '!' /* die() */
-void log(unsigned int cat, const char *msg, ...) __attribute__((format(printf,2,3)));
+void log_msg(unsigned int cat, const char *msg, ...) __attribute__((format(printf,2,3)));
+#define log log_msg
void die(byte *, ...) NONRET;
void log_init(byte *);
void log_file(byte *);
/* log2.c */
-int log2(u32);
+int fls(u32);
/* wordsplit.c */
}
void
-log(unsigned int cat, const char *msg, ...)
+log_msg(unsigned int cat, const char *msg, ...)
{
va_list args;
--- /dev/null
+/*
+ * Sherlock Library -- Stub for including math.h, avoiding name collisions
+ *
+ * (c) 2003 Martin Mares <mj@ucw.cz>
+ *
+ * This software may be freely distributed and used according to the terms
+ * of the GNU Lesser General Public License.
+ */
+
+#undef log
+#define log libm_log
+#define exception math_exception
+#include <math.h>
+#undef log
+#define log log_msg
+#undef exception