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

Diff of /code/trunk/pcre_config.c

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

revision 884 by zherczeg, Tue Jan 17 11:52:43 2012 UTC revision 1055 by chpe, Tue Oct 16 15:53:30 2012 UTC
# Line 65  Arguments: Line 65  Arguments:
65  Returns:           0 if data returned, negative on error  Returns:           0 if data returned, negative on error
66  */  */
67    
68  #ifdef COMPILE_PCRE8  #if defined COMPILE_PCRE8
69  PCRE_EXP_DEFN int PCRE_CALL_CONVENTION  PCRE_EXP_DEFN int PCRE_CALL_CONVENTION
70  pcre_config(int what, void *where)  pcre_config(int what, void *where)
71  #else  #elif defined COMPILE_PCRE16
72  PCRE_EXP_DEFN int PCRE_CALL_CONVENTION  PCRE_EXP_DEFN int PCRE_CALL_CONVENTION
73  pcre16_config(int what, void *where)  pcre16_config(int what, void *where)
74    #elif defined COMPILE_PCRE32
75    PCRE_EXP_DEFN int PCRE_CALL_CONVENTION
76    pcre32_config(int what, void *where)
77  #endif  #endif
78  {  {
79  switch (what)  switch (what)
80    {    {
81    case PCRE_CONFIG_UTF8:    case PCRE_CONFIG_UTF8:
82  #if defined COMPILE_PCRE16  #if defined COMPILE_PCRE16 || defined COMPILE_PCRE32
83    *((int *)where) = 0;    *((int *)where) = 0;
84    return PCRE_ERROR_BADOPTION;    return PCRE_ERROR_BADOPTION;
85  #else  #else
# Line 89  switch (what) Line 92  switch (what)
92  #endif  #endif
93    
94    case PCRE_CONFIG_UTF16:    case PCRE_CONFIG_UTF16:
95  #if defined COMPILE_PCRE8  #if defined COMPILE_PCRE8 || defined COMPILE_PCRE32
96      *((int *)where) = 0;
97      return PCRE_ERROR_BADOPTION;
98    #else
99    #if defined SUPPORT_UTF
100      *((int *)where) = 1;
101    #else
102      *((int *)where) = 0;
103    #endif
104      break;
105    #endif
106    
107      case PCRE_CONFIG_UTF32:
108    #if defined COMPILE_PCRE8 || defined COMPILE_PCRE16
109    *((int *)where) = 0;    *((int *)where) = 0;
110    return PCRE_ERROR_BADOPTION;    return PCRE_ERROR_BADOPTION;
111  #else  #else

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

  ViewVC Help
Powered by ViewVC 1.1.5