Numworks Epsilon  1.4.1
Graphing Calculator Operating System
mpprint.h File Reference
#include "py/mpconfig.h"

Go to the source code of this file.

Classes

struct  _mp_print_t
 

Macros

#define PF_FLAG_LEFT_ADJUST   (0x001)
 
#define PF_FLAG_SHOW_SIGN   (0x002)
 
#define PF_FLAG_SPACE_SIGN   (0x004)
 
#define PF_FLAG_NO_TRAILZ   (0x008)
 
#define PF_FLAG_SHOW_PREFIX   (0x010)
 
#define PF_FLAG_SHOW_COMMA   (0x020)
 
#define PF_FLAG_PAD_AFTER_SIGN   (0x040)
 
#define PF_FLAG_CENTER_ADJUST   (0x080)
 
#define PF_FLAG_ADD_PERCENT   (0x100)
 
#define PF_FLAG_SHOW_OCTAL_LETTER   (0x200)
 
#define MP_PYTHON_PRINTER   &mp_plat_print
 

Typedefs

typedef void(* mp_print_strn_t) (void *data, const char *str, size_t len)
 
typedef struct _mp_print_t mp_print_t
 

Functions

int mp_print_str (const mp_print_t *print, const char *str)
 
int mp_print_strn (const mp_print_t *print, const char *str, size_t len, int flags, char fill, int width)
 
int mp_printf (const mp_print_t *print, const char *fmt,...)
 

Variables

const mp_print_t mp_plat_print
 

Macro Definition Documentation

◆ MP_PYTHON_PRINTER

#define MP_PYTHON_PRINTER   &mp_plat_print

Definition at line 45 of file mpprint.h.

◆ PF_FLAG_ADD_PERCENT

#define PF_FLAG_ADD_PERCENT   (0x100)

Definition at line 39 of file mpprint.h.

◆ PF_FLAG_CENTER_ADJUST

#define PF_FLAG_CENTER_ADJUST   (0x080)

Definition at line 38 of file mpprint.h.

◆ PF_FLAG_LEFT_ADJUST

#define PF_FLAG_LEFT_ADJUST   (0x001)

Definition at line 31 of file mpprint.h.

◆ PF_FLAG_NO_TRAILZ

#define PF_FLAG_NO_TRAILZ   (0x008)

Definition at line 34 of file mpprint.h.

◆ PF_FLAG_PAD_AFTER_SIGN

#define PF_FLAG_PAD_AFTER_SIGN   (0x040)

Definition at line 37 of file mpprint.h.

◆ PF_FLAG_SHOW_COMMA

#define PF_FLAG_SHOW_COMMA   (0x020)

Definition at line 36 of file mpprint.h.

◆ PF_FLAG_SHOW_OCTAL_LETTER

#define PF_FLAG_SHOW_OCTAL_LETTER   (0x200)

Definition at line 40 of file mpprint.h.

◆ PF_FLAG_SHOW_PREFIX

#define PF_FLAG_SHOW_PREFIX   (0x010)

Definition at line 35 of file mpprint.h.

◆ PF_FLAG_SHOW_SIGN

#define PF_FLAG_SHOW_SIGN   (0x002)

Definition at line 32 of file mpprint.h.

◆ PF_FLAG_SPACE_SIGN

#define PF_FLAG_SPACE_SIGN   (0x004)

Definition at line 33 of file mpprint.h.

Typedef Documentation

◆ mp_print_strn_t

typedef void(* mp_print_strn_t) (void *data, const char *str, size_t len)

Definition at line 48 of file mpprint.h.

◆ mp_print_t

typedef struct _mp_print_t mp_print_t

Function Documentation

◆ mp_print_str()

int mp_print_str ( const mp_print_t print,
const char *  str 
)

Definition at line 53 of file mpprint.c.

◆ mp_print_strn()

int mp_print_strn ( const mp_print_t print,
const char *  str,
size_t  len,
int  flags,
char  fill,
int  width 
)

Definition at line 61 of file mpprint.c.

◆ mp_printf()

int mp_printf ( const mp_print_t print,
const char *  fmt,
  ... 
)

Definition at line 380 of file mpprint.c.

Variable Documentation

◆ mp_plat_print

const mp_print_t mp_plat_print

Definition at line 51 of file mpprint.c.