Classes | Defines | Enumerations | Functions | Variables
mprintf.c File Reference
#include "curl_setup.h"
#include <curl/mprintf.h>
#include "curl_memory.h"
#include "memdebug.h"
Include dependency graph for mprintf.c:

Go to the source code of this file.

Classes

struct  asprintf
struct  nsprintf
struct  va_stack_t

Defines

#define BUFFSIZE
#define MAX_PARAMETERS   128 /* lame static limit */
#define mp_intmax_t   long
#define mp_uintmax_t   unsigned long
#define OUTCHAR(x)
#define SIZEOF_LONG_DOUBLE   0
#define SIZEOF_SIZE_T   CURL_SIZEOF_LONG

Enumerations

enum  {
  FLAGS_NEW = 0, FLAGS_SPACE = 1<<0, FLAGS_SHOWSIGN = 1<<1, FLAGS_LEFT = 1<<2,
  FLAGS_ALT = 1<<3, FLAGS_SHORT = 1<<4, FLAGS_LONG = 1<<5, FLAGS_LONGLONG = 1<<6,
  FLAGS_LONGDOUBLE = 1<<7, FLAGS_PAD_NIL = 1<<8, FLAGS_UNSIGNED = 1<<9, FLAGS_OCTAL = 1<<10,
  FLAGS_HEX = 1<<11, FLAGS_UPPER = 1<<12, FLAGS_WIDTH = 1<<13, FLAGS_WIDTHPARAM = 1<<14,
  FLAGS_PREC = 1<<15, FLAGS_PRECPARAM = 1<<16, FLAGS_CHAR = 1<<17, FLAGS_FLOATE = 1<<18,
  FLAGS_FLOATG = 1<<19
}
enum  FormatType {
  FORMAT_UNKNOWN = 0, FORMAT_STRING, FORMAT_PTR, FORMAT_INT,
  FORMAT_INTPTR, FORMAT_LONG, FORMAT_LONGLONG, FORMAT_DOUBLE,
  FORMAT_LONGDOUBLE, FORMAT_WIDTH
}

Functions

static int addbyter (int output, FILE *data)
static int alloc_addbyter (int output, FILE *data)
char * curl_maprintf (const char *format,...)
int curl_mfprintf (FILE *whereto, const char *format,...)
int curl_mprintf (const char *format,...)
int curl_msnprintf (char *buffer, size_t maxlength, const char *format,...)
int curl_msprintf (char *buffer, const char *format,...)
char * curl_mvaprintf (const char *format, va_list ap_save)
int curl_mvfprintf (FILE *whereto, const char *format, va_list ap_save)
int curl_mvprintf (const char *format, va_list ap_save)
int curl_mvsnprintf (char *buffer, size_t maxlength, const char *format, va_list ap_save)
int curl_mvsprintf (char *buffer, const char *format, va_list ap_save)
static long dprintf_DollarString (char *input, char **end)
static int dprintf_formatf (void *data, int(*stream)(int, FILE *), const char *format, va_list ap_save)
static bool dprintf_IsQualifierNoDollar (const char *fmt)
static int dprintf_Pass1 (const char *format, va_stack_t *vto, char **endpos, va_list arglist)
static int storebuffer (int output, FILE *data)

Variables

static const char lower_digits [] = "0123456789abcdefghijklmnopqrstuvwxyz"
static const char upper_digits [] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"

Define Documentation

#define BUFFSIZE
Value:
326 /* buffer for long-to-str and float-to-str calcs, should
                        fit negative DBL_MAX (317 letters) */

Definition at line 95 of file mprintf.c.

#define MAX_PARAMETERS   128 /* lame static limit */

Definition at line 96 of file mprintf.c.

#define mp_intmax_t   long

Definition at line 91 of file mprintf.c.

#define mp_uintmax_t   unsigned long

Definition at line 92 of file mprintf.c.

#define OUTCHAR (   x)
Value:
do{ \
    if(stream((unsigned char)(x), (FILE *)data) != -1) \
      done++; \
    else \
     return done; /* return immediately on failure */ \
  } WHILE_FALSE

Definition at line 108 of file mprintf.c.

#define SIZEOF_LONG_DOUBLE   0

Definition at line 46 of file mprintf.c.

#define SIZEOF_SIZE_T   CURL_SIZEOF_LONG

Definition at line 54 of file mprintf.c.


Enumeration Type Documentation

anonymous enum
Enumerator:
FLAGS_NEW 
FLAGS_SPACE 
FLAGS_SHOWSIGN 
FLAGS_LEFT 
FLAGS_ALT 
FLAGS_SHORT 
FLAGS_LONG 
FLAGS_LONGLONG 
FLAGS_LONGDOUBLE 
FLAGS_PAD_NIL 
FLAGS_UNSIGNED 
FLAGS_OCTAL 
FLAGS_HEX 
FLAGS_UPPER 
FLAGS_WIDTH 
FLAGS_WIDTHPARAM 
FLAGS_PREC 
FLAGS_PRECPARAM 
FLAGS_CHAR 
FLAGS_FLOATE 
FLAGS_FLOATG 

Definition at line 131 of file mprintf.c.

enum FormatType
Enumerator:
FORMAT_UNKNOWN 
FORMAT_STRING 
FORMAT_PTR 
FORMAT_INT 
FORMAT_INTPTR 
FORMAT_LONG 
FORMAT_LONGLONG 
FORMAT_DOUBLE 
FORMAT_LONGDOUBLE 
FORMAT_WIDTH 

Definition at line 117 of file mprintf.c.


Function Documentation

static int addbyter ( int  output,
FILE *  data 
) [static]

Definition at line 990 of file mprintf.c.

static int alloc_addbyter ( int  output,
FILE *  data 
) [static]

Definition at line 1038 of file mprintf.c.

char* curl_maprintf ( const char *  format,
  ... 
)

Definition at line 1075 of file mprintf.c.

int curl_mfprintf ( FILE *  whereto,
const char *  format,
  ... 
)

Definition at line 1158 of file mprintf.c.

int curl_mprintf ( const char *  format,
  ... 
)

Definition at line 1147 of file mprintf.c.

int curl_msnprintf ( char *  buffer,
size_t  maxlength,
const char *  format,
  ... 
)

Definition at line 1027 of file mprintf.c.

int curl_msprintf ( char *  buffer,
const char *  format,
  ... 
)

Definition at line 1136 of file mprintf.c.

char* curl_mvaprintf ( const char *  format,
va_list  ap_save 
)

Definition at line 1102 of file mprintf.c.

int curl_mvfprintf ( FILE *  whereto,
const char *  format,
va_list  ap_save 
)

Definition at line 1181 of file mprintf.c.

int curl_mvprintf ( const char *  format,
va_list  ap_save 
)

Definition at line 1176 of file mprintf.c.

int curl_mvsnprintf ( char *  buffer,
size_t  maxlength,
const char *  format,
va_list  ap_save 
)

Definition at line 1005 of file mprintf.c.

int curl_mvsprintf ( char *  buffer,
const char *  format,
va_list  ap_save 
)

Definition at line 1168 of file mprintf.c.

static long dprintf_DollarString ( char *  input,
char **  end 
) [static]

Definition at line 185 of file mprintf.c.

static int dprintf_formatf ( void *  data,
int(*)(int, FILE *)  stream,
const char *  format,
va_list  ap_save 
) [static]

Definition at line 561 of file mprintf.c.

static bool dprintf_IsQualifierNoDollar ( const char *  fmt) [static]

Definition at line 200 of file mprintf.c.

static int dprintf_Pass1 ( const char *  format,
va_stack_t vto,
char **  endpos,
va_list  arglist 
) [static]

Definition at line 234 of file mprintf.c.

static int storebuffer ( int  output,
FILE *  data 
) [static]

Definition at line 1127 of file mprintf.c.


Variable Documentation

const char lower_digits[] = "0123456789abcdefghijklmnopqrstuvwxyz" [static]

Definition at line 103 of file mprintf.c.

const char upper_digits[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" [static]

Definition at line 106 of file mprintf.c.



rc_visard_driver
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Ruess
autogenerated on Thu Jun 6 2019 20:43:09