move some buffer to local

This commit is contained in:
funshine 2015-01-06 19:01:34 +08:00
parent 7e51c5d67e
commit 729603fae7
8 changed files with 4 additions and 4 deletions

View File

@ -13,7 +13,7 @@ bbs: [中文论坛Chinese bbs](http://bbs.nodemcu.com)<br />
Tencent QQ group QQ群: 309957875<br />
# Change log
2015-01-05<br />
2015-01-06<br />
update sdk to 0.9.5.<br />
pre_build bin now compiled by gcc toolchain.<br />
memory/heap usage optimized.<br />

View File

@ -7,7 +7,7 @@
#define NODE_VERSION_INTERNAL 0U
#define NODE_VERSION "NodeMcu 0.9.5"
#define BUILD_DATE "build 20150105"
#define BUILD_DATE "build 20150106"
// #define FLASH_512K
// #define FLASH_1M

View File

@ -1,7 +1,6 @@
#include "c_stdio.h"
// #include "driver/uart.h"
unsigned char __print_buf[BUFSIZ];
int c_stdin = 999;
int c_stdout = 1000;
int c_stderr = 1001;

View File

@ -49,12 +49,13 @@ extern int c_stderr;
extern void output_redirect(const char *str);
#define c_puts output_redirect
extern unsigned char __print_buf[BUFSIZ];
// #define c_printf os_printf
// int c_printf(const char *c, ...);
#define c_sprintf os_sprintf
// #define c_vsprintf ets_vsprintf
#define c_printf(...) do { \
unsigned char __print_buf[BUFSIZ]; \
c_sprintf(__print_buf, __VA_ARGS__); \
c_puts(__print_buf); \
} while(0)

Binary file not shown.

Binary file not shown.