the lack of bprintf().
prime random realloc regex timer url wildmatch \
wordsplit str_ctype str_upper bucket conf object sorter \
finger proctitle ipaccess profile bitsig randomkey \
- hashfunc base64 base224 fb-temp printf fb-mmap fb-printf
+ hashfunc base64 base224 fb-temp fb-mmap fb-printf
LIBSH_MOD_PATHS=$(addprefix obj/lib/,$(LIBSH_MODS)) $(CUSTOM_MODULES)
obj/lib/libsh.a: $(addsuffix .o,$(LIBSH_MOD_PATHS))
+++ /dev/null
-/*
- * Sherlock Library -- auto-resizable printf() functions
- *
- * (c) 2002, Robert Spalek <robert@ucw.cz>
- *
- * This software may be freely distributed and used according to the terms
- * of the GNU Lesser General Public License.
- */
-
-#include "lib/lib.h"
-#include "lib/printf.h"
-
-#include <stdio.h>
-
-byte *
-vxprintf(char *msg, va_list v)
-{
- static byte *buf = NULL;
- static int buf_len = 0;
- int len;
- if (!buf)
- {
- buf_len = 1024;
- buf = xmalloc(buf_len);
- }
- while (1)
- {
- len = vsnprintf(buf, buf_len, msg, v);
- if (len >= 0 && len < buf_len)
- return buf;
- else
- {
- buf_len *= 2;
- if (len >= buf_len)
- buf_len = len + 1;
- buf = xrealloc(buf, buf_len);
- }
- }
-}
-
-byte *
-xprintf(char *msg, ...)
-{
- byte *txt;
- va_list v;
- va_start(v, msg);
- txt = vxprintf(msg, v);
- va_end(v);
- return txt;
-}
+++ /dev/null
-/*
- * Sherlock Library -- auto-resizable printf() functions
- *
- * (c) 2002, Robert Spalek <robert@ucw.cz>
- *
- * This software may be freely distributed and used according to the terms
- * of the GNU Lesser General Public License.
- */
-
-#ifndef _LIB_PRINTF_H
-#define _LIB_PRINTF_H
-
-#include <stdarg.h>
-
-/* The following functions are NOT reentrable. */
-
-byte *vxprintf(char *msg, va_list v);
-byte *xprintf(char *msg, ...) __attribute__((format(printf,1,2)));
-
-#endif