aboutsummaryrefslogtreecommitdiffstats
path: root/ihe.c
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2019-09-25 19:17:09 +0100
committerFreeArtMan <dos21h@gmail.com>2019-09-25 19:17:09 +0100
commit3e187c094f12ef41ea6de2f55d128c3e037b5c12 (patch)
treef0dbbc5df260532e284ca5264297d0a8044eaeb4 /ihe.c
parentbbd73385a0db271b457c63e4d6bab54f581410f9 (diff)
downloadihe-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.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/ihe.c b/ihe.c
index 641b09b..4390586 100644
--- a/ihe.c
+++ b/ihe.c
@@ -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) );