summaryrefslogtreecommitdiff
path: root/regcomp.h
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-07-08 18:41:45 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-07-08 18:41:45 +0000
commit4d61ec052de5c3a91dc64c80c032c2cbec44d845 (patch)
treefcc319025627956e7cd3c2cd6510ed1bcd7b266c /regcomp.h
parentf248d07102861fd4d0819cc0b602f81105bc562c (diff)
downloadperl-4d61ec052de5c3a91dc64c80c032c2cbec44d845.tar.gz
sundry cleanups for clean build on windows
p4raw-id: //depot/perl@3659
Diffstat (limited to 'regcomp.h')
-rw-r--r--regcomp.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/regcomp.h b/regcomp.h
index c679ca4d46..61726bba6f 100644
--- a/regcomp.h
+++ b/regcomp.h
@@ -230,7 +230,7 @@ struct regnode_2 {
*/
#ifndef lint
#ifndef CHARMASK
-#define UCHARAT(p) ((int)*(unsigned char *)(p))
+#define UCHARAT(p) ((int)*(U8*)(p))
#else
#define UCHARAT(p) ((int)*(p)&CHARMASK)
#endif
@@ -263,22 +263,22 @@ START_EXTERN_C
#include "regnodes.h"
-/* The following have no fixed length. char* since we do strchr on it. */
+/* The following have no fixed length. U8 so we can do strchr() on it. */
#ifndef DOINIT
-EXTCONST char PL_varies[];
+EXTCONST U8 PL_varies[];
#else
-EXTCONST char PL_varies[] = {
+EXTCONST U8 PL_varies[] = {
BRANCH, BACK, STAR, PLUS, CURLY, CURLYX, REF, REFF, REFFL,
WHILEM, CURLYM, CURLYN, BRANCHJ, IFTHEN, SUSPEND, CLUMP, 0
};
#endif
-/* The following always have a length of 1. char* since we do strchr on it. */
-/* (Note that lenght 1 means "one character" under UTF8, not "one octet".) */
+/* The following always have a length of 1. U8 we can do strchr() on it. */
+/* (Note that length 1 means "one character" under UTF8, not "one octet".) */
#ifndef DOINIT
-EXTCONST char PL_simple[];
+EXTCONST U8 PL_simple[];
#else
-EXTCONST char PL_simple[] = {
+EXTCONST U8 PL_simple[] = {
REG_ANY, ANYUTF8, SANY, SANYUTF8, ANYOF, ANYOFUTF8,
ALNUM, ALNUMUTF8, ALNUML, ALNUMLUTF8,
NALNUM, NALNUMUTF8, NALNUML, NALNUMLUTF8,