diff options
author | ph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069> | 2014-09-19 07:43:39 +0000 |
---|---|---|
committer | ph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069> | 2014-09-19 07:43:39 +0000 |
commit | 2b91b407fc6fc0eab672ceb708edf8f5548a636c (patch) | |
tree | dddbd9136d4ff0e009030992756d806aa009da6d /src/pcre2_printint.c | |
parent | 262a7638174ee990673830cab7e040bcc917d740 (diff) | |
download | pcre2-2b91b407fc6fc0eab672ceb708edf8f5548a636c.tar.gz |
API documentation and a lot of little related changes to the code.
git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@74 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'src/pcre2_printint.c')
-rw-r--r-- | src/pcre2_printint.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/pcre2_printint.c b/src/pcre2_printint.c index 3067b38..0ad7dbf 100644 --- a/src/pcre2_printint.c +++ b/src/pcre2_printint.c @@ -94,7 +94,7 @@ BOOL one_code_unit = !utf; /* If UTF is supported and requested, check for a valid single code unit. */ -#ifdef SUPPORT_UTF +#ifdef SUPPORT_UNICODE if (utf) { #if PCRE2_CODE_UNIT_WIDTH == 8 @@ -105,7 +105,7 @@ if (utf) one_code_unit = (c & 0xfffff800u) != 0xd800u; #endif /* CODE_UNIT_WIDTH */ } -#endif /* SUPPORT_UTF */ +#endif /* SUPPORT_UNICODE */ /* Handle a valid one-code-unit character at any width. */ @@ -121,7 +121,7 @@ if (one_code_unit) for each width. If UTF is not supported, control should never get here, but we need a return statement to keep the compiler happy. */ -#ifndef SUPPORT_UTF +#ifndef SUPPORT_UNICODE return 0; #else @@ -178,7 +178,7 @@ as an indication. */ fprintf(f, "\\X{%x}", c); return 0; #endif /* PCRE2_CODE_UNIT_WIDTH == 32 */ -#endif /* SUPPORT_UTF */ +#endif /* SUPPORT_UNICODE */ } @@ -221,7 +221,7 @@ into the main code, however, we just put one into this function. */ static const char * get_ucpname(unsigned int ptype, unsigned int pvalue) { -#ifdef SUPPORT_UTF +#ifdef SUPPORT_UNICODE int i; for (i = utt_size - 1; i >= 0; i--) { @@ -233,7 +233,7 @@ return (i >= 0)? utt_names + utt[i].name_offset : "??"; (void)ptype; (void)pvalue; return "??"; -#endif /* SUPPORT_UTF */ +#endif /* SUPPORT_UNICODE */ } |