summaryrefslogtreecommitdiff
path: root/contrib/bit/varbit_glue.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2000-04-03 20:56:40 +0000
committerBruce Momjian <bruce@momjian.us>2000-04-03 20:56:40 +0000
commit51cfdae50ff91d99d9f1fd1dc9756a5335ee91fb (patch)
treefac6b854fa3128003b934b0dce0dcbfca97f0911 /contrib/bit/varbit_glue.c
parent5454b37921ba37b14f2bddfd5781ff3eb0e910f7 (diff)
Hi,
here is an updated version of the bit type with a bugfix and all the necessa ry SQL functions defined. This should replace what is currently in contrib. I'd appreciate any comments on what is there. Kind regards, Adriaan
Diffstat (limited to 'contrib/bit/varbit_glue.c')
-rw-r--r--contrib/bit/varbit_glue.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/contrib/bit/varbit_glue.c b/contrib/bit/varbit_glue.c
new file mode 100644
index 00000000000..29b7debd03c
--- /dev/null
+++ b/contrib/bit/varbit_glue.c
@@ -0,0 +1,22 @@
+/* Glue file to use varbit before it is properly integrated with postgres */
+
+#include "varbit.h"
+
+bits8 * varbit_in (char * s);
+char * varbit_out (bits8 *s);
+
+bits8 *
+varbit_in (char * s) {
+ return varbitin (s, 0, -1);
+}
+
+/*char *
+varbit_out (bits8 *s) {
+ return zpbitout(s);
+}
+*/
+
+char *
+varbit_out (bits8 *s) {
+ return zpbitsout(s);
+}