Skip to content
Snippets Groups Projects
warnless.h 1.8 KiB
Newer Older
  • Learn to ignore specific revisions
  • Yang Tse's avatar
    Yang Tse committed
    #ifndef HEADER_CURL_WARNLESS_H
    #define HEADER_CURL_WARNLESS_H
    /***************************************************************************
     *                                  _   _ ____  _
     *  Project                     ___| | | |  _ \| |
     *                             / __| | | | |_) | |
     *                            | (__| |_| |  _ <| |___
     *                             \___|\___/|_| \_\_____|
     *
    
    Yang Tse's avatar
    Yang Tse committed
     * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
    
    Yang Tse's avatar
    Yang Tse committed
     *
     * This software is licensed as described in the file COPYING, which
     * you should have received as part of this distribution. The terms
     * are also available at http://curl.haxx.se/docs/copyright.html.
     *
     * You may opt to use, copy, modify, merge, publish, distribute and/or sell
     * copies of the Software, and permit persons to whom the Software is
     * furnished to do so, under the terms of the COPYING file.
     *
     * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
     * KIND, either express or implied.
     *
     ***************************************************************************/
    
    
    Yang Tse's avatar
     
    Yang Tse committed
    unsigned short curlx_ultous(unsigned long ulnum);
    
    Yang Tse's avatar
    Yang Tse committed
    
    
    Yang Tse's avatar
     
    Yang Tse committed
    unsigned char curlx_ultouc(unsigned long ulnum);
    
    Yang Tse's avatar
     
    Yang Tse committed
    
    
    Yang Tse's avatar
     
    Yang Tse committed
    int curlx_uztosi(size_t uznum);
    
    
    int curlx_sltosi(long slnum);
    
    unsigned int curlx_sltoui(long slnum);
    
    unsigned short curlx_sltous(long slnum);
    
    
    size_t curlx_sotouz(curl_off_t sonum);
    
    
    Yang Tse's avatar
    Yang Tse committed
    #if defined(__INTEL_COMPILER) && defined(__unix__)
    
    int curlx_FD_ISSET(int fd, fd_set *fdset);
    
    void curlx_FD_SET(int fd, fd_set *fdset);
    
    void curlx_FD_ZERO(fd_set *fdset);
    
    #ifndef BUILDING_WARNLESS_C
    #  define FD_ISSET(a,b) curlx_FD_ISSET((a),(b))
    #  define FD_SET(a,b)   curlx_FD_SET((a),(b))
    #  define FD_ZERO(a)    curlx_FD_ZERO((a))
    #endif
    
    #endif /* __INTEL_COMPILER && __unix__ */
    
    
    Yang Tse's avatar
    Yang Tse committed
    #endif /* HEADER_CURL_WARNLESS_H */