toolkit/crashreporter/google-breakpad/src/third_party/curl/mprintf.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 #ifndef __CURL_MPRINTF_H
michael@0 2 #define __CURL_MPRINTF_H
michael@0 3 /***************************************************************************
michael@0 4 * _ _ ____ _
michael@0 5 * Project ___| | | | _ \| |
michael@0 6 * / __| | | | |_) | |
michael@0 7 * | (__| |_| | _ <| |___
michael@0 8 * \___|\___/|_| \_\_____|
michael@0 9 *
michael@0 10 * Copyright (C) 1998 - 2006, Daniel Stenberg, <daniel@haxx.se>, et al.
michael@0 11 *
michael@0 12 * This software is licensed as described in the file COPYING, which
michael@0 13 * you should have received as part of this distribution. The terms
michael@0 14 * are also available at http://curl.haxx.se/docs/copyright.html.
michael@0 15 *
michael@0 16 * You may opt to use, copy, modify, merge, publish, distribute and/or sell
michael@0 17 * copies of the Software, and permit persons to whom the Software is
michael@0 18 * furnished to do so, under the terms of the COPYING file.
michael@0 19 *
michael@0 20 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
michael@0 21 * KIND, either express or implied.
michael@0 22 *
michael@0 23 * $Id: mprintf.h,v 1.16 2008-05-20 10:21:50 patrickm Exp $
michael@0 24 ***************************************************************************/
michael@0 25
michael@0 26 #include <stdarg.h>
michael@0 27 #include <stdio.h> /* needed for FILE */
michael@0 28
michael@0 29 #include "curl.h"
michael@0 30
michael@0 31 #ifdef __cplusplus
michael@0 32 extern "C" {
michael@0 33 #endif
michael@0 34
michael@0 35 CURL_EXTERN int curl_mprintf(const char *format, ...);
michael@0 36 CURL_EXTERN int curl_mfprintf(FILE *fd, const char *format, ...);
michael@0 37 CURL_EXTERN int curl_msprintf(char *buffer, const char *format, ...);
michael@0 38 CURL_EXTERN int curl_msnprintf(char *buffer, size_t maxlength,
michael@0 39 const char *format, ...);
michael@0 40 CURL_EXTERN int curl_mvprintf(const char *format, va_list args);
michael@0 41 CURL_EXTERN int curl_mvfprintf(FILE *fd, const char *format, va_list args);
michael@0 42 CURL_EXTERN int curl_mvsprintf(char *buffer, const char *format, va_list args);
michael@0 43 CURL_EXTERN int curl_mvsnprintf(char *buffer, size_t maxlength,
michael@0 44 const char *format, va_list args);
michael@0 45 CURL_EXTERN char *curl_maprintf(const char *format, ...);
michael@0 46 CURL_EXTERN char *curl_mvaprintf(const char *format, va_list args);
michael@0 47
michael@0 48 #ifdef _MPRINTF_REPLACE
michael@0 49 # undef printf
michael@0 50 # undef fprintf
michael@0 51 # undef sprintf
michael@0 52 # undef vsprintf
michael@0 53 # undef snprintf
michael@0 54 # undef vprintf
michael@0 55 # undef vfprintf
michael@0 56 # undef vsnprintf
michael@0 57 # undef aprintf
michael@0 58 # undef vaprintf
michael@0 59 # define printf curl_mprintf
michael@0 60 # define fprintf curl_mfprintf
michael@0 61 #ifdef CURLDEBUG
michael@0 62 /* When built with CURLDEBUG we define away the sprintf() functions since we
michael@0 63 don't want internal code to be using them */
michael@0 64 # define sprintf sprintf_was_used
michael@0 65 # define vsprintf vsprintf_was_used
michael@0 66 #else
michael@0 67 # define sprintf curl_msprintf
michael@0 68 # define vsprintf curl_mvsprintf
michael@0 69 #endif
michael@0 70 # define snprintf curl_msnprintf
michael@0 71 # define vprintf curl_mvprintf
michael@0 72 # define vfprintf curl_mvfprintf
michael@0 73 # define vsnprintf curl_mvsnprintf
michael@0 74 # define aprintf curl_maprintf
michael@0 75 # define vaprintf curl_mvaprintf
michael@0 76 #endif
michael@0 77
michael@0 78 #ifdef __cplusplus
michael@0 79 }
michael@0 80 #endif
michael@0 81
michael@0 82 #endif /* __CURL_MPRINTF_H */

mercurial