Pod typos, pod2man bugs, and miscellaneous installation comments
[p5sagit/p5-mst-13.2.git] / handy.h
diff --git a/handy.h b/handy.h
index 2d0e81f..27eebd7 100644 (file)
--- a/handy.h
+++ b/handy.h
@@ -85,8 +85,8 @@
 
 typedef char           I8;
 typedef unsigned char  U8;
-#define I8_MAX PERL_CHAR_MAX
-#define I8_MIN PERL_CHAR_MIN
+/* I8_MAX and I8_MIN constants are not defined, as I8 is an ambiguous type.
+   Please search CHAR_MAX in perl.h for further details. */
 #define U8_MAX PERL_UCHAR_MAX
 #define U8_MIN PERL_UCHAR_MIN
 
@@ -184,10 +184,17 @@ typedef U16 line_t;
 #ifndef lint
 #ifndef LEAKTEST
 #ifndef safemalloc
+
+#  ifdef __cplusplus
+    extern "C" {
+#  endif
 Malloc_t safemalloc _((MEM_SIZE));
 Malloc_t saferealloc _((Malloc_t, MEM_SIZE));
 Free_t safefree _((Malloc_t));
 Malloc_t safecalloc _((MEM_SIZE, MEM_SIZE));
+#  ifdef __cplusplus
+    }
+#  endif
 #endif
 #ifndef MSDOS
 #define New(x,v,n,t)  (v = (t*)safemalloc((MEM_SIZE)((n) * sizeof(t))))