]> mj.ucw.cz Git - libucw.git/commitdiff
Applications of gbuf.h to byte arrays are very common, so I've introduced
authorMartin Mares <mj@ucw.cz>
Tue, 6 Jul 2004 10:44:20 +0000 (10:44 +0000)
committerMartin Mares <mj@ucw.cz>
Tue, 6 Jul 2004 10:44:20 +0000 (10:44 +0000)
a special include for them.

lib/bbuf.h [new file with mode: 0644]

diff --git a/lib/bbuf.h b/lib/bbuf.h
new file mode 100644 (file)
index 0000000..5ee6c1a
--- /dev/null
@@ -0,0 +1,17 @@
+/*
+ *     A simple growing buffer for byte-sized items.
+ *
+ *     (c) 2004 Martin Mares <mj@ucw.cz>
+ *
+ *     This software may be freely distributed and used according to the terms
+ *     of the GNU Lesser General Public License.
+ */
+
+#ifndef _SHERLOCK_BBUF_H
+#define _SHERLOCK_BBUF_H
+
+#define        GBUF_TYPE       byte
+#define        GBUF_PREFIX(x)  bb_##x
+#include "lib/gbuf.h"
+
+#endif