diff options
author | FreeArtMan <dos21h@gmail.com> | 2019-09-25 19:17:09 +0100 |
---|---|---|
committer | FreeArtMan <dos21h@gmail.com> | 2019-09-25 19:17:09 +0100 |
commit | 3e187c094f12ef41ea6de2f55d128c3e037b5c12 (patch) | |
tree | f0dbbc5df260532e284ca5264297d0a8044eaeb4 /ihe.c | |
parent | bbd73385a0db271b457c63e4d6bab54f581410f9 (diff) | |
download | ihe-3e187c094f12ef41ea6de2f55d128c3e037b5c12.tar.gz ihe-3e187c094f12ef41ea6de2f55d128c3e037b5c12.zip |
Untested version, recompiled with new buf library and with c+
Diffstat (limited to 'ihe.c')
-rw-r--r-- | ihe.c | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -1,6 +1,8 @@ #include "ihe.h" +#include "__cpp.h" #include "core.h" + /* Global variables */ cmd_mng_t cmd_mng; static int cmd_loop = 1; @@ -239,7 +241,8 @@ int cmd_buf_full( cmd_in_buf_t *buf ) GLOBAL VARIABLES */ file_t *g_file = NULL; -buf_t *g_buf = NULL; +//buf_t *g_buf = NULL; +Buf *g_buf = NULL; int g_flags = FD_RW; @@ -454,12 +457,15 @@ int main( int argc, char **argv ) memset( &tl, 0, sizeof( cmd_tok_t )); //preapre global stuff + g_file = file_init(); //init basic buffer - g_buf = buf_init(); - buf_size( g_buf, DEFAULT_BLK_SIZE ); - buf_zero( g_buf ); + //#warning "replace" + g_buf = new Buf(DEFAULT_BLK_SIZE); + //g_buf = buf_init(); + //buf_size( g_buf, DEFAULT_BLK_SIZE ); + //buf_zero( g_buf ); struct term_screen ts; memset( &ts, 0, sizeof(ts) ); |