git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2738
d4fa192b-c00b-0410-8231-
f00ffab90ce4
#include <pthread_np.h>
#endif
#include <stdint.h>
+#include <string.h>
#include <limits.h>
#include "vqueue.h"
((unsigned)(t.e - t.b));
}
+static inline void
+Tadd(txt *t, const char *p, int l)
+{
+ if (l <= 0) {
+ } if (t->b + l < t->e) {
+ memcpy(t->b, p, l);
+ t->b += l;
+ } else {
+ t->b = t->e;
+ }
+}
+
#ifdef WITHOUT_ASSERTS
#define spassert(cond) ((void)(cond))
#define SPAZ(val) ((void)(val) == 0)