Changeset 354


Ignore:
Timestamp:
Mar 23, 2006 6:03:40 PM (18 years ago)
Author:
bennylp
Message:

Set default option to exclude pj_stricmp_alnum()

Location:
pjproject/trunk/pjlib
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/build/os-linux.mak

    r338 r354  
    88# to all operating systems should go in Makefile instead. 
    99# 
    10 export PJLIB_OBJS +=    addr_resolv_sock.o guid_simple.o \ 
     10export PJLIB_OBJS +=    addr_resolv_sock.o file_access_unistd.o \ 
     11                        file_io_ansi.o guid_simple.o \ 
    1112                        log_writer_stdout.o os_core_unix.o \ 
    1213                        os_error_unix.o os_time_unix.o \ 
    1314                        os_timestamp_common.o os_timestamp_linux.o \ 
    14                         os_time_ansi.o \ 
    1515                        pool_policy_malloc.o sock_bsd.o sock_select.o 
    1616 
     
    2020export PJLIB_OBJS += ioqueue_select.o  
    2121endif 
    22  
    23 export PJLIB_OBJS += file_access_unistd.o file_io_ansi.o 
    2422 
    2523# 
  • pjproject/trunk/pjlib/build/os-sunos.mak

    r338 r354  
    88# to all operating systems should go in Makefile instead. 
    99# 
    10 export PJLIB_OBJS +=    addr_resolv_sock.o guid_simple.o \ 
     10export PJLIB_OBJS +=    addr_resolv_sock.o file_access_unistd.o \ 
     11                        file_io_ansi.o guid_simple.o \ 
    1112                        log_writer_stdout.o os_core_unix.o \ 
    1213                        os_error_unix.o os_time_unix.o \ 
    1314                        os_timestamp_common.o os_timestamp_linux.o \ 
    14                         os_time_ansi.o \ 
    1515                        pool_policy_malloc.o sock_bsd.o sock_select.o 
    1616 
  • pjproject/trunk/pjlib/include/pj/config.h

    r338 r354  
    366366 
    367367 
     368/** 
     369 * Include pj_stricmp_alnum() and pj_strnicmp_alnum(), i.e. custom 
     370 * functions to compare alnum strings. On some systems, they're faster 
     371 * then stricmp/strcasecmp, but they can be slower on other systems. 
     372 * When disabled, pjlib will fallback to stricmp/strnicmp. 
     373 *  
     374 * Default: 0 
     375 */ 
     376#ifndef PJ_HAS_STRICMP_ALNUM 
     377#   define PJ_HAS_STRICMP_ALNUM     0 
     378#endif 
     379 
     380 
    368381/** @} */ 
    369382 
  • pjproject/trunk/pjlib/include/pj/string.h

    r315 r354  
    370370 *      - (-1)      if not equal. 
    371371 */ 
     372#if defined(PJ_HAS_STRICMP_ALNUM) && PJ_HAS_STRICMP_ALNUM!=0 
    372373PJ_IDECL(int) strnicmp_alnum(const char *str1, const char *str2, 
    373374                             int len); 
     375#else 
     376#define strnicmp_alnum  strnicmp 
     377#endif 
    374378 
    375379/** 
     
    388392 *      - (-1)      if not equal. 
    389393 */ 
     394#if defined(PJ_HAS_STRICMP_ALNUM) && PJ_HAS_STRICMP_ALNUM!=0 
    390395PJ_IDECL(int) pj_stricmp_alnum(const pj_str_t *str1, const pj_str_t *str2); 
     396#else 
     397#define pj_stricmp_alnum    pj_stricmp 
     398#endif 
    391399 
    392400/** 
  • pjproject/trunk/pjlib/include/pj/string_i.h

    r263 r354  
    196196} 
    197197 
     198#if defined(PJ_HAS_STRICMP_ALNUM) && PJ_HAS_STRICMP_ALNUM!=0 
    198199PJ_IDEF(int) strnicmp_alnum( const char *str1, const char *str2, 
    199200                             int len) 
     
    264265    } 
    265266} 
     267#endif  /* PJ_HAS_STRICMP_ALNUM */ 
    266268 
    267269PJ_IDEF(int) pj_stricmp2( const pj_str_t *str1, const char *str2) 
Note: See TracChangeset for help on using the changeset viewer.