Fix parameter types in the pcre2serialize man page (#63)

This commit is contained in:
Michael Kaufmann 2021-12-27 12:57:28 +01:00 committed by GitHub
parent 98e7d70bc6
commit af2637ee5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -6,11 +6,11 @@ PCRE2 - Perl-compatible regular expressions (revised API)
.sp .sp
.nf .nf
.B int32_t pcre2_serialize_decode(pcre2_code **\fIcodes\fP, .B int32_t pcre2_serialize_decode(pcre2_code **\fIcodes\fP,
.B " int32_t \fInumber_of_codes\fP, const uint32_t *\fIbytes\fP," .B " int32_t \fInumber_of_codes\fP, const uint8_t *\fIbytes\fP,"
.B " pcre2_general_context *\fIgcontext\fP);" .B " pcre2_general_context *\fIgcontext\fP);"
.sp .sp
.B int32_t pcre2_serialize_encode(pcre2_code **\fIcodes\fP, .B int32_t pcre2_serialize_encode(const pcre2_code **\fIcodes\fP,
.B " int32_t \fInumber_of_codes\fP, uint32_t **\fIserialized_bytes\fP," .B " int32_t \fInumber_of_codes\fP, uint8_t **\fIserialized_bytes\fP,"
.B " PCRE2_SIZE *\fIserialized_size\fP, pcre2_general_context *\fIgcontext\fP);" .B " PCRE2_SIZE *\fIserialized_size\fP, pcre2_general_context *\fIgcontext\fP);"
.sp .sp
.B void pcre2_serialize_free(uint8_t *\fIbytes\fP); .B void pcre2_serialize_free(uint8_t *\fIbytes\fP);
@ -141,7 +141,6 @@ mangagement functions for the decoded patterns. If this argument is NULL,
\fBmalloc()\fP and \fBfree()\fP are used. After deserialization, the byte \fBmalloc()\fP and \fBfree()\fP are used. After deserialization, the byte
stream is no longer needed and can be discarded. stream is no longer needed and can be discarded.
.sp .sp
int32_t number_of_codes;
pcre2_code *list_of_codes[2]; pcre2_code *list_of_codes[2];
uint8_t *bytes = <serialized data>; uint8_t *bytes = <serialized data>;
int32_t number_of_codes = int32_t number_of_codes =