[Pcre-svn] [1146] code/trunk: Correct tables argument data t…

Páxina inicial
Borrar esta mensaxe
Autor: Subversion repository
Data:  
Para: pcre-svn
Asunto: [Pcre-svn] [1146] code/trunk: Correct tables argument data type for pcre2_set_character_tables() and fix
Revision: 1146
          http://www.exim.org/viewvc/pcre2?view=rev&revision=1146
Author:   ph10
Date:     2019-07-28 16:58:24 +0100 (Sun, 28 Jul 2019)
Log Message:
-----------
Correct tables argument data type for pcre2_set_character_tables() and fix 
documentation for pcre2_maketables().


Modified Paths:
--------------
    code/trunk/ChangeLog
    code/trunk/doc/html/pcre2_maketables.html
    code/trunk/doc/html/pcre2_set_character_tables.html
    code/trunk/doc/html/pcre2api.html
    code/trunk/doc/pcre2.txt
    code/trunk/doc/pcre2_maketables.3
    code/trunk/doc/pcre2_set_character_tables.3
    code/trunk/doc/pcre2api.3
    code/trunk/src/pcre2.h.in
    code/trunk/src/pcre2_context.c


Modified: code/trunk/ChangeLog
===================================================================
--- code/trunk/ChangeLog    2019-07-28 15:32:11 UTC (rev 1145)
+++ code/trunk/ChangeLog    2019-07-28 15:58:24 UTC (rev 1146)
@@ -114,7 +114,10 @@
 22. A branch that started with (*ACCEPT) was not being recognized as one that
 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
---------------------------


Modified: code/trunk/doc/html/pcre2_maketables.html
===================================================================
--- code/trunk/doc/html/pcre2_maketables.html    2019-07-28 15:32:11 UTC (rev 1145)
+++ code/trunk/doc/html/pcre2_maketables.html    2019-07-28 15:58:24 UTC (rev 1146)
@@ -19,7 +19,7 @@
 <b>#include &#60;pcre2.h&#62;</b>
 </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>
 <br><b>
 DESCRIPTION


Modified: code/trunk/doc/html/pcre2_set_character_tables.html
===================================================================
--- code/trunk/doc/html/pcre2_set_character_tables.html    2019-07-28 15:32:11 UTC (rev 1145)
+++ code/trunk/doc/html/pcre2_set_character_tables.html    2019-07-28 15:58:24 UTC (rev 1146)
@@ -20,7 +20,7 @@
 </P>
 <P>
 <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>
 <br><b>
 DESCRIPTION


Modified: code/trunk/doc/html/pcre2api.html
===================================================================
--- code/trunk/doc/html/pcre2api.html    2019-07-28 15:32:11 UTC (rev 1145)
+++ code/trunk/doc/html/pcre2api.html    2019-07-28 15:58:24 UTC (rev 1146)
@@ -142,7 +142,7 @@
 <br>
 <br>
 <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>
 <b>int pcre2_set_compile_extra_options(pcre2_compile_context *<i>ccontext</i>,</b>
@@ -791,7 +791,7 @@
 <br>
 <br>
 <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>
 The value must be the result of a call to <i>pcre2_maketables()</i>, whose only
@@ -3851,7 +3851,7 @@
 </P>
 <br><a name="SEC42" href="#TOC1">REVISION</a><br>
 <P>
-Last updated: 22 July 2019
+Last updated: 28 July 2019
 <br>
 Copyright &copy; 1997-2019 University of Cambridge.
 <br>


Modified: code/trunk/doc/pcre2.txt
===================================================================
--- code/trunk/doc/pcre2.txt    2019-07-28 15:32:11 UTC (rev 1145)
+++ code/trunk/doc/pcre2.txt    2019-07-28 15:58:24 UTC (rev 1146)
@@ -261,7 +261,7 @@
          uint32_t value);


        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,
          uint32_t extra_options);
@@ -831,7 +831,7 @@
        pcre2_dfa_match().


        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
        only argument is a general context. This function builds a set of char-
@@ -3706,7 +3706,7 @@


REVISION

-       Last updated: 22 July 2019
+       Last updated: 28 July 2019
        Copyright (c) 1997-2019 University of Cambridge.
 ------------------------------------------------------------------------------



Modified: code/trunk/doc/pcre2_maketables.3
===================================================================
--- code/trunk/doc/pcre2_maketables.3    2019-07-28 15:32:11 UTC (rev 1145)
+++ code/trunk/doc/pcre2_maketables.3    2019-07-28 15:58:24 UTC (rev 1146)
@@ -7,7 +7,7 @@
 .B #include <pcre2.h>
 .PP
 .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
 .rs


Modified: code/trunk/doc/pcre2_set_character_tables.3
===================================================================
--- code/trunk/doc/pcre2_set_character_tables.3    2019-07-28 15:32:11 UTC (rev 1145)
+++ code/trunk/doc/pcre2_set_character_tables.3    2019-07-28 15:58:24 UTC (rev 1146)
@@ -8,7 +8,7 @@
 .PP
 .nf
 .B int pcre2_set_character_tables(pcre2_compile_context *\fIccontext\fP,
-.B "  const unsigned char *\fItables\fP);"
+.B "  const uint8_t *\fItables\fP);"
 .fi
 .
 .SH DESCRIPTION


Modified: code/trunk/doc/pcre2api.3
===================================================================
--- code/trunk/doc/pcre2api.3    2019-07-28 15:32:11 UTC (rev 1145)
+++ code/trunk/doc/pcre2api.3    2019-07-28 15:58:24 UTC (rev 1146)
@@ -1,4 +1,4 @@
-.TH PCRE2API 3 "22 July 2019" "PCRE2 10.34"
+.TH PCRE2API 3 "28 July 2019" "PCRE2 10.34"
 .SH NAME
 PCRE2 - Perl-compatible regular expressions (revised API)
 .sp
@@ -88,7 +88,7 @@
 .B "  uint32_t \fIvalue\fP);"
 .sp
 .B int pcre2_set_character_tables(pcre2_compile_context *\fIccontext\fP,
-.B "  const unsigned char *\fItables\fP);"
+.B "  const uint8_t *\fItables\fP);"
 .sp
 .B int pcre2_set_compile_extra_options(pcre2_compile_context *\fIccontext\fP,
 .B "  uint32_t \fIextra_options\fP);"
@@ -725,7 +725,7 @@
 .sp
 .nf
 .B int pcre2_set_character_tables(pcre2_compile_context *\fIccontext\fP,
-.B "  const unsigned char *\fItables\fP);"
+.B "  const uint8_t *\fItables\fP);"
 .fi
 .sp
 The value must be the result of a call to \fIpcre2_maketables()\fP, whose only
@@ -3863,6 +3863,6 @@
 .rs
 .sp
 .nf
-Last updated: 22 July 2019
+Last updated: 28 July 2019
 Copyright (c) 1997-2019 University of Cambridge.
 .fi


Modified: code/trunk/src/pcre2.h.in
===================================================================
--- code/trunk/src/pcre2.h.in    2019-07-28 15:32:11 UTC (rev 1145)
+++ code/trunk/src/pcre2.h.in    2019-07-28 15:58:24 UTC (rev 1146)
@@ -584,7 +584,7 @@
 PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \
   pcre2_set_bsr(pcre2_compile_context *, uint32_t); \
 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_set_compile_extra_options(pcre2_compile_context *, uint32_t); \
 PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \


Modified: code/trunk/src/pcre2_context.c
===================================================================
--- code/trunk/src/pcre2_context.c    2019-07-28 15:32:11 UTC (rev 1145)
+++ code/trunk/src/pcre2_context.c    2019-07-28 15:58:24 UTC (rev 1146)
@@ -323,7 +323,7 @@


PCRE2_EXP_DEFN int PCRE2_CALL_CONVENTION
pcre2_set_character_tables(pcre2_compile_context *ccontext,
- const unsigned char *tables)
+ const uint8_t *tables)
{
ccontext->tables = tables;
return 0;