]> git.draconx.ca Git - cdecl99.git/blobdiff - src/cdecl-internal.h
libcdecl: Fully remove snprintf requirement from the library.
[cdecl99.git] / src / cdecl-internal.h
index 0d8f2e86946d6c5214a3f0669ba8f52373d4cbfd..a1e8a9665b21ebe9593dca36eb25142e35648abe 100644 (file)
@@ -22,6 +22,8 @@
 #include <gettext.h>
 #include "cdecl.h"
 
+#define MIN(a, b) ((a) < (b) ? (a) : (b))
+
 #define _(s) dgettext(PACKAGE, s)
 #define N_(s) s
 
@@ -81,6 +83,7 @@ struct output_state {
 
 size_t cdecl__advance(struct output_state *dst, size_t amount);
 size_t cdecl__emit(struct output_state *dst, const char *src);
+size_t cdecl__emit_uint(struct output_state *dst, uintmax_t val);
 size_t cdecl__strlcpy(char *dst, const char *src, size_t len);
 
 const char *cdecl__emit_specs(struct output_state *dst,