Fix DECL/DEFN typo that affects Windows.
This commit is contained in:
parent
980a637741
commit
438e51958a
|
@ -87,6 +87,9 @@ transfer from PCRE1, meaning that CMake configuration failed if "build tests"
|
||||||
was selected. (2) The file src/pcre2_serialize.c had not been added to the list
|
was selected. (2) The file src/pcre2_serialize.c had not been added to the list
|
||||||
of PCRE2 sources, which caused a failure to build pcre2test.
|
of PCRE2 sources, which caused a failure to build pcre2test.
|
||||||
|
|
||||||
|
18. Fixed typo in pcre2_serialize.c (DECL instead of DEFN) that causes problems
|
||||||
|
only on Windows.
|
||||||
|
|
||||||
|
|
||||||
Version 10.00 05-January-2015
|
Version 10.00 05-January-2015
|
||||||
-----------------------------
|
-----------------------------
|
||||||
|
|
|
@ -68,7 +68,7 @@ character width. */
|
||||||
* Serialize compiled patterns *
|
* Serialize compiled patterns *
|
||||||
*************************************************/
|
*************************************************/
|
||||||
|
|
||||||
PCRE2_EXP_DECL int32_t PCRE2_CALL_CONVENTION
|
PCRE2_EXP_DEFN int32_t PCRE2_CALL_CONVENTION
|
||||||
pcre2_serialize_encode(const pcre2_code **codes, int32_t number_of_codes,
|
pcre2_serialize_encode(const pcre2_code **codes, int32_t number_of_codes,
|
||||||
uint8_t **serialized_bytes, PCRE2_SIZE *serialized_size,
|
uint8_t **serialized_bytes, PCRE2_SIZE *serialized_size,
|
||||||
pcre2_general_context *gcontext)
|
pcre2_general_context *gcontext)
|
||||||
|
@ -141,7 +141,7 @@ return number_of_codes;
|
||||||
* Deserialize compiled patterns *
|
* Deserialize compiled patterns *
|
||||||
*************************************************/
|
*************************************************/
|
||||||
|
|
||||||
PCRE2_EXP_DECL int32_t PCRE2_CALL_CONVENTION
|
PCRE2_EXP_DEFN int32_t PCRE2_CALL_CONVENTION
|
||||||
pcre2_serialize_decode(pcre2_code **codes, int32_t number_of_codes,
|
pcre2_serialize_decode(pcre2_code **codes, int32_t number_of_codes,
|
||||||
const uint8_t *bytes, pcre2_general_context *gcontext)
|
const uint8_t *bytes, pcre2_general_context *gcontext)
|
||||||
{
|
{
|
||||||
|
@ -227,7 +227,7 @@ return number_of_codes;
|
||||||
* Get the number of serialized patterns *
|
* Get the number of serialized patterns *
|
||||||
*************************************************/
|
*************************************************/
|
||||||
|
|
||||||
PCRE2_EXP_DECL int32_t PCRE2_CALL_CONVENTION
|
PCRE2_EXP_DEFN int32_t PCRE2_CALL_CONVENTION
|
||||||
pcre2_serialize_get_number_of_codes(const uint8_t *bytes)
|
pcre2_serialize_get_number_of_codes(const uint8_t *bytes)
|
||||||
{
|
{
|
||||||
const pcre2_serialized_data *data = (const pcre2_serialized_data *)bytes;
|
const pcre2_serialized_data *data = (const pcre2_serialized_data *)bytes;
|
||||||
|
@ -245,7 +245,7 @@ return data->number_of_codes;
|
||||||
* Free the allocated stream *
|
* Free the allocated stream *
|
||||||
*************************************************/
|
*************************************************/
|
||||||
|
|
||||||
PCRE2_EXP_DECL void PCRE2_CALL_CONVENTION
|
PCRE2_EXP_DEFN void PCRE2_CALL_CONVENTION
|
||||||
pcre2_serialize_free(uint8_t *bytes)
|
pcre2_serialize_free(uint8_t *bytes)
|
||||||
{
|
{
|
||||||
if (bytes != NULL)
|
if (bytes != NULL)
|
||||||
|
|
Loading…
Reference in New Issue