HPCToolkit
fmt.h File Reference
#include <stdarg.h>
#include <stdio.h>
Include dependency graph for fmt.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  va_list_box
 

Macros

#define va_list_box_start(box, arg)   va_start(box.ap, arg)
 
#define va_list_box_end(box)   va_end(box.ap)
 
#define va_list_boxp_start(box, arg)   va_start(box->ap, arg)
 
#define va_list_boxp_end(box)   va_end(box->ap)
 
#define T   Fmt_T
 

Typedefs

typedef struct va_list_box va_list_box
 
typedef void(* T) (int code, va_list_box *box, int put(int c, void *cl), void *cl, unsigned char flags[256], int width, int precision)
 

Functions

void hpcrun_msg_fmt (int put(int c, void *cl), void *cl, const char *fmt,...)
 
void hpcrun_msg_vfmt (int put(int c, void *cl), void *cl, const char *fmt, va_list_box *box)
 
int hpcrun_msg_ns (char *buf, size_t len, const char *fmt,...)
 
int hpcrun_msg_vns (char *buf, size_t len, const char *fmt, va_list_box *box)
 
T hpcrun_msg_register (int code, T cvt)
 
void hpcrun_msg_putd (const char *str, int len, int put(int c, void *cl), void *cl, unsigned char flags[256], int width, int precision)
 
void hpcrun_msg_puts (const char *str, int len, int put(int c, void *cl), void *cl, unsigned char flags[256], int width, int precision)
 

Macro Definition Documentation

◆ T

#define T   Fmt_T

Definition at line 61 of file fmt.h.

◆ va_list_box_end

#define va_list_box_end (   box)    va_end(box.ap)

Definition at line 57 of file fmt.h.

◆ va_list_box_start

#define va_list_box_start (   box,
  arg 
)    va_start(box.ap, arg)

Definition at line 56 of file fmt.h.

◆ va_list_boxp_end

#define va_list_boxp_end (   box)    va_end(box->ap)

Definition at line 59 of file fmt.h.

◆ va_list_boxp_start

#define va_list_boxp_start (   box,
  arg 
)    va_start(box->ap, arg)

Definition at line 58 of file fmt.h.

Typedef Documentation

◆ T

typedef void(* T) (int code, va_list_box *box, int put(int c, void *cl), void *cl, unsigned char flags[256], int width, int precision)

Definition at line 62 of file fmt.h.

◆ va_list_box

typedef struct va_list_box va_list_box

Function Documentation

◆ hpcrun_msg_fmt()

void hpcrun_msg_fmt ( int   putint c, void *cl,
void *  cl,
const char *  fmt,
  ... 
)

◆ hpcrun_msg_ns()

int hpcrun_msg_ns ( char *  buf,
size_t  len,
const char *  fmt,
  ... 
)

Definition at line 466 of file fmt.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hpcrun_msg_putd()

void hpcrun_msg_putd ( const char *  str,
int  len,
int   putint c, void *cl,
void *  cl,
unsigned char  flags[256],
int  width,
int  precision 
)

◆ hpcrun_msg_puts()

void hpcrun_msg_puts ( const char *  str,
int  len,
int   putint c, void *cl,
void *  cl,
unsigned char  flags[256],
int  width,
int  precision 
)

◆ hpcrun_msg_register()

T hpcrun_msg_register ( int  code,
T  cvt 
)

Definition at line 544 of file fmt.c.

◆ hpcrun_msg_vfmt()

void hpcrun_msg_vfmt ( int   putint c, void *cl,
void *  cl,
const char *  fmt,
va_list_box box 
)

Definition at line 491 of file fmt.c.

Here is the caller graph for this function:

◆ hpcrun_msg_vns()

int hpcrun_msg_vns ( char *  buf,
size_t  len,
const char *  fmt,
va_list_box box 
)

Definition at line 477 of file fmt.c.

Here is the call graph for this function:
Here is the caller graph for this function: