"Compiled" encodings.
[p5sagit/p5-mst-13.2.git] / ext / Encode / encode.h
index 10f8386..604b97f 100644 (file)
@@ -1,3 +1,5 @@
+#ifndef ENCODE_H
+#define ENCODE_H
 #ifndef U8
 typedef unsigned char U8;
 #endif
@@ -24,3 +26,14 @@ struct encode_s
  int        replen;
 };
 
+#ifdef U8
+extern int do_encode(encpage_t *enc, const U8 *src, STRLEN *slen,
+                     U8 *dst, STRLEN dlen, STRLEN *dout);
+
+extern void Encode_DefineEncoding(encode_t *enc);
+#endif
+
+#define ENCODE_NOSPACE 1
+#define ENCODE_PARTIAL 2
+#define ENCODE_NOREP   3
+#endif