|
|
| version 1.1, 2012/02/21 23:05:51 | version 1.1.1.3, 2013/07/22 08:25:55 |
|---|---|
| Line 6 | Line 6 |
| and semantics are as close as possible to those of the Perl 5 language. | and semantics are as close as possible to those of the Perl 5 language. |
| Written by Philip Hazel | Written by Philip Hazel |
| Copyright (c) 1997-2008 University of Cambridge | Copyright (c) 1997-2012 University of Cambridge |
| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- |
| Redistribution and use in source and binary forms, with or without | Redistribution and use in source and binary forms, with or without |
| Line 79 I could find no way of detecting that a macro is defin | Line 79 I could find no way of detecting that a macro is defin |
| pre-processor time. This hack uses a standard trick for avoiding calling | pre-processor time. This hack uses a standard trick for avoiding calling |
| the STRING macro with an empty argument when doing the test. */ | the STRING macro with an empty argument when doing the test. */ |
| #if defined COMPILE_PCRE8 | |
| PCRE_EXP_DEFN const char * PCRE_CALL_CONVENTION | PCRE_EXP_DEFN const char * PCRE_CALL_CONVENTION |
| pcre_version(void) | pcre_version(void) |
| #elif defined COMPILE_PCRE16 | |
| PCRE_EXP_DEFN const char * PCRE_CALL_CONVENTION | |
| pcre16_version(void) | |
| #elif defined COMPILE_PCRE32 | |
| PCRE_EXP_DEFN const char * PCRE_CALL_CONVENTION | |
| pcre32_version(void) | |
| #endif | |
| { | { |
| return (XSTRING(Z PCRE_PRERELEASE)[1] == 0)? | return (XSTRING(Z PCRE_PRERELEASE)[1] == 0)? |
| XSTRING(PCRE_MAJOR.PCRE_MINOR PCRE_DATE) : | XSTRING(PCRE_MAJOR.PCRE_MINOR PCRE_DATE) : |