<commit_before>/*// 
// 
// Copyright (C) 2005-2006 SIPez LLC.
// Licensed to SIPfoundry under a Contributor Agreement.
//
// Copyright (C) 2004-2006 SIPfoundry Inc.
// Licensed by SIPfoundry under the LGPL license.
//
// Copyright (C) 2004-2006 Pingtel Corp.  All rights reserved.
// Licensed to SIPfoundry under a Contributor Agreement.
//
// $$
///////////////////////////////////////////////////////////////////////////////
*/

/* NOTE THIS FILE MUST BE INCLUDABLE IN C CODE as well as C++ */
/* USE C Style comments */

#ifndef _OsDefs_h_
#define _OsDefs_h_

#include "qsTypes.h"    // Should be removed -- move contents here.

// SYSTEM INCLUDES
#ifdef _VXWORKS
#include "os/Vxw/OsVxwDefs.h"
#endif // _VXWORKS
#ifdef __pingtel_on_posix__
#include "os/linux/OsLinuxDefs.h"
#endif /* __pingtel_on_posix__ */

#if defined(_VXWORKS)
#  define IS_INET_RETURN_OK( x )    (x == 0)  /* wdn - OK == 0 defined in vxWorks.h but has issues ??? */
#else
#  define IS_INET_RETURN_OK( x )    (x > 0)
#endif


#ifdef WIN32
#define snprintf _snprintf
#endif

/* Handle the case-insensitive string comparison functions, by making the Posix names
 * strcasecmp and strncasecmp available on all platforms.
 * (On newer Windows environments, str(n)casecmp are built-in, along with the older
 * str(n)icmp, but on older ones, they are not.) */
#ifdef WIN32
    #ifdef WINCE
        #ifndef strcasecmp
           #define strcasecmp _stricmp
        #endif
        #ifndef strncasecmp
           #define strncasecmp _strnicmp
        #endif
    #else
        #ifndef strcasecmp
           #define strcasecmp stricmp
        #endif<commit_msg>Fix stricmp C4996 warnings on VS2005 -- use ISO C++ conformant name instead of POSIX name as it is deprecated.<commit_after>/*// 
// 
// Copyright (C) 2005-2006 SIPez LLC.
// Licensed to SIPfoundry under a Contributor Agreement.
//
// Copyright (C) 2004-2006 SIPfoundry Inc.
// Licensed by SIPfoundry under the LGPL license.
//
// Copyright (C) 2004-2006 Pingtel Corp.  All rights reserved.
// Licensed to SIPfoundry under a Contributor Agreement.
//
// $$
///////////////////////////////////////////////////////////////////////////////
*/

/* NOTE THIS FILE MUST BE INCLUDABLE IN C CODE as well as C++ */
/* USE C Style comments */

#ifndef _OsDefs_h_
#define _OsDefs_h_

#include "qsTypes.h"    // Should be removed -- move contents here.

// SYSTEM INCLUDES
#ifdef _VXWORKS
#include "os/Vxw/OsVxwDefs.h"
#endif // _VXWORKS
#ifdef __pingtel_on_posix__
#include "os/linux/OsLinuxDefs.h"
#endif /* __pingtel_on_posix__ */

#if defined(_VXWORKS)
#  define IS_INET_RETURN_OK( x )    (x == 0)  /* wdn - OK == 0 defined in vxWorks.h but has issues ??? */
#else
#  define IS_INET_RETURN_OK( x )    (x > 0)
#endif


#ifdef WIN32
#define snprintf _snprintf
#endif

/* Handle the case-insensitive string comparison functions, by making the Posix names
 * strcasecmp and strncasecmp available on all platforms.
 * (On newer Windows environments, str(n)casecmp are built-in, along with the older
 * str(n)icmp, but on older ones, they are not.) */
#ifdef WIN32
    #if defined(WINCE) || (defined(_MSC_VER) && (_MSC_VER > 1300)) // if wince, or win and > msvc7(vs2003)
        #ifndef strcasecmp
           #define strcasecmp _stricmp
        #endif
        #ifndef strncasecmp
           #define strncasecmp _strnicmp
        #endif
    #else
        #ifndef strcasecmp
           #define strcasecmp stricmp
        #endif
{'fraction_non_alphanumeric': 0.14605760837940063, 'fraction_numerical': 0.02298516147803317, 'mean_word_length': 2.4903553299492387, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1340891', 'n_tokens_mistral': 1203, 'n_tokens_neox': 1108, 'n_words': 370}