summaryrefslogtreecommitdiffstatshomepage
path: root/py/pfenv.h
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-07-13 23:07:42 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-07-19 21:27:22 +0300
commitcb66f41ebc4980f4e6b7543bece19e3b9daac25c (patch)
treef16cd4ce92d787b9ceb0bb9015c9636fbfe58dea /py/pfenv.h
parent04c9fec7d1b8666fc3210f41619dff2465b42227 (diff)
downloadmicropython-cb66f41ebc4980f4e6b7543bece19e3b9daac25c.tar.gz
micropython-cb66f41ebc4980f4e6b7543bece19e3b9daac25c.zip
py: Make print() accept "file" argument, and actually print to stream.
And not system printf(), like it was before. For this, move pfenv_printf() from stmhal port to py/.
Diffstat (limited to 'py/pfenv.h')
-rw-r--r--py/pfenv.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/py/pfenv.h b/py/pfenv.h
index 22b1fc8492..781738f4db 100644
--- a/py/pfenv.h
+++ b/py/pfenv.h
@@ -49,3 +49,6 @@ int pfenv_print_mp_int(const pfenv_t *pfenv, mp_obj_t x, int sgn, int base, int
#if MICROPY_PY_BUILTINS_FLOAT
int pfenv_print_float(const pfenv_t *pfenv, mp_float_t f, char fmt, int flags, char fill, int width, int prec);
#endif
+
+//int pfenv_vprintf(const pfenv_t *pfenv, const char *fmt, va_list args);
+int pfenv_printf(const pfenv_t *pfenv, const char *fmt, ...);