Fix DECL/DEFN typo that affects Windows.

This commit is contained in:
Philip.Hazel 2015-02-24 14:21:28 +00:00
parent 980a637741
commit 438e51958a
2 changed files with 7 additions and 4 deletions

View File

@ -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
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
-----------------------------

View File

@ -68,7 +68,7 @@ character width. */
* 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,
uint8_t **serialized_bytes, PCRE2_SIZE *serialized_size,
pcre2_general_context *gcontext)
@ -141,7 +141,7 @@ return number_of_codes;
* 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,
const uint8_t *bytes, pcre2_general_context *gcontext)
{
@ -227,7 +227,7 @@ return number_of_codes;
* 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)
{
const pcre2_serialized_data *data = (const pcre2_serialized_data *)bytes;
@ -245,7 +245,7 @@ return data->number_of_codes;
* Free the allocated stream *
*************************************************/
PCRE2_EXP_DECL void PCRE2_CALL_CONVENTION
PCRE2_EXP_DEFN void PCRE2_CALL_CONVENTION
pcre2_serialize_free(uint8_t *bytes)
{
if (bytes != NULL)