Correct tables argument data type for pcre2_set_character_tables() and fix

documentation for pcre2_maketables().
This commit is contained in:
Philip.Hazel 2019-07-28 15:58:24 +00:00
parent fe2df37c9f
commit 9319b5bb83
10 changed files with 19 additions and 16 deletions

View File

@ -114,6 +114,9 @@ within it, the nested lookbehind was not correctly processed. For example, if
22. A branch that started with (*ACCEPT) was not being recognized as one that 22. A branch that started with (*ACCEPT) was not being recognized as one that
could match an empty string. could match an empty string.
23. Corrected pcre2_set_character_tables() tables data type: was const unsigned
char * instead of const uint8_t *, as generated by pcre2_maketables().
Version 10.33 16-April-2019 Version 10.33 16-April-2019
--------------------------- ---------------------------

View File

@ -19,7 +19,7 @@ SYNOPSIS
<b>#include &#60;pcre2.h&#62;</b> <b>#include &#60;pcre2.h&#62;</b>
</P> </P>
<P> <P>
<b>const unsigned char *pcre2_maketables(pcre2_general_context *<i>gcontext</i>);</b> <b>const uint8_t *pcre2_maketables(pcre2_general_context *<i>gcontext</i>);</b>
</P> </P>
<br><b> <br><b>
DESCRIPTION DESCRIPTION

View File

@ -20,7 +20,7 @@ SYNOPSIS
</P> </P>
<P> <P>
<b>int pcre2_set_character_tables(pcre2_compile_context *<i>ccontext</i>,</b> <b>int pcre2_set_character_tables(pcre2_compile_context *<i>ccontext</i>,</b>
<b> const unsigned char *<i>tables</i>);</b> <b> const uint8_t *<i>tables</i>);</b>
</P> </P>
<br><b> <br><b>
DESCRIPTION DESCRIPTION

View File

@ -142,7 +142,7 @@ document for an overview of all the PCRE2 documentation.
<br> <br>
<br> <br>
<b>int pcre2_set_character_tables(pcre2_compile_context *<i>ccontext</i>,</b> <b>int pcre2_set_character_tables(pcre2_compile_context *<i>ccontext</i>,</b>
<b> const unsigned char *<i>tables</i>);</b> <b> const uint8_t *<i>tables</i>);</b>
<br> <br>
<br> <br>
<b>int pcre2_set_compile_extra_options(pcre2_compile_context *<i>ccontext</i>,</b> <b>int pcre2_set_compile_extra_options(pcre2_compile_context *<i>ccontext</i>,</b>
@ -791,7 +791,7 @@ interpreted matching functions, <i>pcre2_match()</i> and
<br> <br>
<br> <br>
<b>int pcre2_set_character_tables(pcre2_compile_context *<i>ccontext</i>,</b> <b>int pcre2_set_character_tables(pcre2_compile_context *<i>ccontext</i>,</b>
<b> const unsigned char *<i>tables</i>);</b> <b> const uint8_t *<i>tables</i>);</b>
<br> <br>
<br> <br>
The value must be the result of a call to <i>pcre2_maketables()</i>, whose only The value must be the result of a call to <i>pcre2_maketables()</i>, whose only
@ -3851,7 +3851,7 @@ Cambridge, England.
</P> </P>
<br><a name="SEC42" href="#TOC1">REVISION</a><br> <br><a name="SEC42" href="#TOC1">REVISION</a><br>
<P> <P>
Last updated: 22 July 2019 Last updated: 28 July 2019
<br> <br>
Copyright &copy; 1997-2019 University of Cambridge. Copyright &copy; 1997-2019 University of Cambridge.
<br> <br>

View File

@ -261,7 +261,7 @@ PCRE2 NATIVE API COMPILE CONTEXT FUNCTIONS
uint32_t value); uint32_t value);
int pcre2_set_character_tables(pcre2_compile_context *ccontext, int pcre2_set_character_tables(pcre2_compile_context *ccontext,
const unsigned char *tables); const uint8_t *tables);
int pcre2_set_compile_extra_options(pcre2_compile_context *ccontext, int pcre2_set_compile_extra_options(pcre2_compile_context *ccontext,
uint32_t extra_options); uint32_t extra_options);
@ -831,7 +831,7 @@ PCRE2 CONTEXTS
pcre2_dfa_match(). pcre2_dfa_match().
int pcre2_set_character_tables(pcre2_compile_context *ccontext, int pcre2_set_character_tables(pcre2_compile_context *ccontext,
const unsigned char *tables); const uint8_t *tables);
The value must be the result of a call to pcre2_maketables(), whose The value must be the result of a call to pcre2_maketables(), whose
only argument is a general context. This function builds a set of char- only argument is a general context. This function builds a set of char-
@ -3706,7 +3706,7 @@ AUTHOR
REVISION REVISION
Last updated: 22 July 2019 Last updated: 28 July 2019
Copyright (c) 1997-2019 University of Cambridge. Copyright (c) 1997-2019 University of Cambridge.
------------------------------------------------------------------------------ ------------------------------------------------------------------------------

View File

@ -7,7 +7,7 @@ PCRE2 - Perl-compatible regular expressions (revised API)
.B #include <pcre2.h> .B #include <pcre2.h>
.PP .PP
.SM .SM
.B const unsigned char *pcre2_maketables(pcre2_general_context *\fIgcontext\fP); .B const uint8_t *pcre2_maketables(pcre2_general_context *\fIgcontext\fP);
. .
.SH DESCRIPTION .SH DESCRIPTION
.rs .rs

View File

@ -8,7 +8,7 @@ PCRE2 - Perl-compatible regular expressions (revised API)
.PP .PP
.nf .nf
.B int pcre2_set_character_tables(pcre2_compile_context *\fIccontext\fP, .B int pcre2_set_character_tables(pcre2_compile_context *\fIccontext\fP,
.B " const unsigned char *\fItables\fP);" .B " const uint8_t *\fItables\fP);"
.fi .fi
. .
.SH DESCRIPTION .SH DESCRIPTION

View File

@ -1,4 +1,4 @@
.TH PCRE2API 3 "22 July 2019" "PCRE2 10.34" .TH PCRE2API 3 "28 July 2019" "PCRE2 10.34"
.SH NAME .SH NAME
PCRE2 - Perl-compatible regular expressions (revised API) PCRE2 - Perl-compatible regular expressions (revised API)
.sp .sp
@ -88,7 +88,7 @@ document for an overview of all the PCRE2 documentation.
.B " uint32_t \fIvalue\fP);" .B " uint32_t \fIvalue\fP);"
.sp .sp
.B int pcre2_set_character_tables(pcre2_compile_context *\fIccontext\fP, .B int pcre2_set_character_tables(pcre2_compile_context *\fIccontext\fP,
.B " const unsigned char *\fItables\fP);" .B " const uint8_t *\fItables\fP);"
.sp .sp
.B int pcre2_set_compile_extra_options(pcre2_compile_context *\fIccontext\fP, .B int pcre2_set_compile_extra_options(pcre2_compile_context *\fIccontext\fP,
.B " uint32_t \fIextra_options\fP);" .B " uint32_t \fIextra_options\fP);"
@ -725,7 +725,7 @@ interpreted matching functions, \fIpcre2_match()\fP and
.sp .sp
.nf .nf
.B int pcre2_set_character_tables(pcre2_compile_context *\fIccontext\fP, .B int pcre2_set_character_tables(pcre2_compile_context *\fIccontext\fP,
.B " const unsigned char *\fItables\fP);" .B " const uint8_t *\fItables\fP);"
.fi .fi
.sp .sp
The value must be the result of a call to \fIpcre2_maketables()\fP, whose only The value must be the result of a call to \fIpcre2_maketables()\fP, whose only
@ -3863,6 +3863,6 @@ Cambridge, England.
.rs .rs
.sp .sp
.nf .nf
Last updated: 22 July 2019 Last updated: 28 July 2019
Copyright (c) 1997-2019 University of Cambridge. Copyright (c) 1997-2019 University of Cambridge.
.fi .fi

View File

@ -584,7 +584,7 @@ PCRE2_EXP_DECL void PCRE2_CALL_CONVENTION \
PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \ PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
pcre2_set_bsr(pcre2_compile_context *, uint32_t); \ pcre2_set_bsr(pcre2_compile_context *, uint32_t); \
PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \ PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
pcre2_set_character_tables(pcre2_compile_context *, const unsigned char *); \ pcre2_set_character_tables(pcre2_compile_context *, const uint8_t *); \
PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \ PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
pcre2_set_compile_extra_options(pcre2_compile_context *, uint32_t); \ pcre2_set_compile_extra_options(pcre2_compile_context *, uint32_t); \
PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \ PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \

View File

@ -323,7 +323,7 @@ data. */
PCRE2_EXP_DEFN int PCRE2_CALL_CONVENTION PCRE2_EXP_DEFN int PCRE2_CALL_CONVENTION
pcre2_set_character_tables(pcre2_compile_context *ccontext, pcre2_set_character_tables(pcre2_compile_context *ccontext,
const unsigned char *tables) const uint8_t *tables)
{ {
ccontext->tables = tables; ccontext->tables = tables;
return 0; return 0;