aboutsummaryrefslogtreecommitdiffstats
path: root/ihe.c
diff options
context:
space:
mode:
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) );