/[pcre]/code/branches/pcre16/pcre_config.c
ViewVC logotype

Diff of /code/branches/pcre16/pcre_config.c

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

revision 755 by ph10, Mon Nov 21 10:41:54 2011 UTC revision 786 by zherczeg, Tue Dec 6 11:33:41 2011 UTC
# Line 62  Arguments: Line 62  Arguments:
62  Returns:           0 if data returned, negative on error  Returns:           0 if data returned, negative on error
63  */  */
64    
65    #ifdef COMPILE_PCRE8
66  PCRE_EXP_DEFN int PCRE_CALL_CONVENTION  PCRE_EXP_DEFN int PCRE_CALL_CONVENTION
67  pcre_config(int what, void *where)  pcre_config(int what, void *where)
68    #else
69    PCRE_EXP_DEFN int PCRE_CALL_CONVENTION
70    pcre16_config(int what, void *where)
71    #endif
72  {  {
73  switch (what)  switch (what)
74    {    {
75    case PCRE_CONFIG_UTF8:    case PCRE_CONFIG_UTF8:
76  #ifdef SUPPORT_UTF8  #if defined SUPPORT_UTF8 && defined COMPILE_PCRE8
77      *((int *)where) = 1;
78    #else
79      *((int *)where) = 0;
80    #endif
81      break;
82    
83      case PCRE_CONFIG_UTF16:
84    #if defined SUPPORT_UTF16 && defined COMPILE_PCRE16
85    *((int *)where) = 1;    *((int *)where) = 1;
86  #else  #else
87    *((int *)where) = 0;    *((int *)where) = 0;

Legend:
Removed from v.755  
changed lines
  Added in v.786

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12