IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 12885 for trunk/psLib/src/sys


Ignore:
Timestamp:
Apr 18, 2007, 9:37:31 AM (19 years ago)
Author:
rhl
Message:

strcasestr isn't in posix (and is in C namespace). Use psStrcasestr

Location:
trunk/psLib/src/sys
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sys/psString.h

    r12517 r12885  
    1111 * @author Joshua Hoblitt, University of Hawaii
    1212 *
    13  * @version $Revision: 1.40 $ $Name: not supported by cvs2svn $
    14  * @date $Date: 2007-03-21 21:37:58 $
     13 * @version $Revision: 1.41 $ $Name: not supported by cvs2svn $
     14 * @date $Date: 2007-04-18 19:37:08 $
    1515 *
    1616 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
    … …  
    309309}
    310310
    311 #ifndef DOXYGEN
    312 #if NO_STRCASESTR
    313 // this means that the system's libc does not provide strcasestr()
    314 #define strcasestr(...) p_psstrcasestr(__VA_ARGS__)
    315 extern char *p_psstrcasestr (const char *haystack, const char *needle)
    316     __THROW __attribute_pure__ __nonnull ((1, 2));
    317 #endif // if NO_STRCASESTR
    318 #endif // ifndef DOXYGEN
    319 
     311char *psStrcasestr (const char *haystack, const char *needle);
    320312
    321313/// @}
  • trunk/psLib/src/sys/strcasestr.c

    r10949 r12885  
    4949#undef __strcasestr
    5050
    51 // was named __strcasestr (phaystack, pneedle)
    5251char *
    53 p_psstrcasestr (phaystack, pneedle)
    54 const char *phaystack;
    55 const char *pneedle;
     52psStrcasestr(const char *phaystack,
     53             const char *pneedle)
    5654{
    5755    register const unsigned char *haystack, *needle;
    … …  
    134132    return 0;
    135133}
    136 
    137 //weak_alias (__strcasestr, strcasestr)
Note: See TracChangeset for help on using the changeset viewer.