/[pcre]/code/trunk/pcre_version.c
ViewVC logotype

Diff of /code/trunk/pcre_version.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 200 by ph10, Wed Aug 1 09:10:40 2007 UTC revision 1055 by chpe, Tue Oct 16 15:53:30 2012 UTC
# Line 6  Line 6 
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.
7    
8                         Written by Philip Hazel                         Written by Philip Hazel
9             Copyright (c) 1997-2007 University of Cambridge             Copyright (c) 1997-2012 University of Cambridge
10    
11  -----------------------------------------------------------------------------  -----------------------------------------------------------------------------
12  Redistribution and use in source and binary forms, with or without  Redistribution and use in source and binary forms, with or without
# Line 43  string that identifies the PCRE version Line 43  string that identifies the PCRE version
43    
44    
45  #ifdef HAVE_CONFIG_H  #ifdef HAVE_CONFIG_H
46  #include <config.h>  #include "config.h"
47  #endif  #endif
48    
49  #include "pcre_internal.h"  #include "pcre_internal.h"
# Line 79  I could find no way of detecting that a Line 79  I could find no way of detecting that a
79  pre-processor time. This hack uses a standard trick for avoiding calling  pre-processor time. This hack uses a standard trick for avoiding calling
80  the STRING macro with an empty argument when doing the test. */  the STRING macro with an empty argument when doing the test. */
81    
82  PCRE_EXP_DEFN const char *  #if defined COMPILE_PCRE8
83    PCRE_EXP_DEFN const char * PCRE_CALL_CONVENTION
84  pcre_version(void)  pcre_version(void)
85    #elif defined COMPILE_PCRE16
86    PCRE_EXP_DEFN const char * PCRE_CALL_CONVENTION
87    pcre16_version(void)
88    #elif defined COMPILE_PCRE32
89    PCRE_EXP_DEFN const char * PCRE_CALL_CONVENTION
90    pcre32_version(void)
91    #endif
92  {  {
93  return (XSTRING(Z PCRE_PRERELEASE)[1] == 0)?  return (XSTRING(Z PCRE_PRERELEASE)[1] == 0)?
94    XSTRING(PCRE_MAJOR.PCRE_MINOR PCRE_DATE) :    XSTRING(PCRE_MAJOR.PCRE_MINOR PCRE_DATE) :

Legend:
Removed from v.200  
changed lines
  Added in v.1055

  ViewVC Help
Powered by ViewVC 1.1.5