caretx.c: Add bool warning comment
authorFather Chrysostomos <sprout@cpan.org>
Mon, 4 Nov 2013 21:46:40 +0000 (13:46 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Mon, 4 Nov 2013 22:07:33 +0000 (14:07 -0800)
It is for this reason that this file exists.

caretx.c

index 184c7d0..25ca195 100644 (file)
--- a/caretx.c
+++ b/caretx.c
 # include <mach-o/dyld.h>
 #endif
 
+/* Note: Functions in this file must not have bool parameters.  When
+   PERL_BOOL_AS_CHAR is #defined, mach-o/dyld.h overrides it in this file
+   by #including stdbool.h, so the function parameters here would conflict
+   with those in proto.h.
+*/
+
 void
 Perl_set_caret_X(pTHX) {
     dVAR;