26 #ifndef MICROPY_INCLUDED_PY_MPPRINT_H 27 #define MICROPY_INCLUDED_PY_MPPRINT_H 31 #define PF_FLAG_LEFT_ADJUST (0x001) 32 #define PF_FLAG_SHOW_SIGN (0x002) 33 #define PF_FLAG_SPACE_SIGN (0x004) 34 #define PF_FLAG_NO_TRAILZ (0x008) 35 #define PF_FLAG_SHOW_PREFIX (0x010) 36 #define PF_FLAG_SHOW_COMMA (0x020) 37 #define PF_FLAG_PAD_AFTER_SIGN (0x040) 38 #define PF_FLAG_CENTER_ADJUST (0x080) 39 #define PF_FLAG_ADD_PERCENT (0x100) 40 #define PF_FLAG_SHOW_OCTAL_LETTER (0x200) 42 #if MICROPY_PY_IO && MICROPY_PY_SYS_STDFILES 43 # define MP_PYTHON_PRINTER &mp_sys_stdout_print 45 # define MP_PYTHON_PRINTER &mp_plat_print 58 #if MICROPY_PY_IO && MICROPY_PY_SYS_STDFILES 65 #if MICROPY_PY_BUILTINS_FLOAT 66 int mp_print_float(
const mp_print_t *print, mp_float_t f,
char fmt,
int flags,
char fill,
int width,
int prec);
74 #endif // MICROPY_INCLUDED_PY_MPPRINT_H struct _mp_print_t mp_print_t
const mp_print_t mp_plat_print
mp_print_strn_t print_strn
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,...)
int mp_print_str(const mp_print_t *print, const char *str)
void(* mp_print_strn_t)(void *data, const char *str, size_t len)
__builtin_va_list va_list
int mp_vprintf(const mp_print_t *print, const char *fmt, va_list args)