diff options
author | FreeArtMan <dos21h@gmail.com> | 2019-08-17 13:48:50 +0100 |
---|---|---|
committer | FreeArtMan <dos21h@gmail.com> | 2019-08-17 13:48:50 +0100 |
commit | 333addeac3d296a6a24802c329ef75c96263d61e (patch) | |
tree | d4714f964964d2c9fbb7e13cbae9f18737a99960 /ihe.c | |
parent | 700b5bc2b24bf9fd8e69f0586739c692be0dc2cb (diff) | |
download | ihe-333addeac3d296a6a24802c329ef75c96263d61e.tar.gz ihe-333addeac3d296a6a24802c329ef75c96263d61e.zip |
Disabled space token generation
Diffstat (limited to 'ihe.c')
-rw-r--r-- | ihe.c | 30 |
1 files changed, 24 insertions, 6 deletions
@@ -282,13 +282,31 @@ int c_quit( cmd_arg_t *arg ) } -int c_help( cmd_arg_t *arg ) +int c_help( cmd_arg_t *args ) { - int i = 0; - printf("Command list\n"); - while ( tab[i].cmd != NULL ) + int i; + cmd_table_t *iter = &tab[0]; + //printf("0\n"); + i = 0; + while(iter[i].cmd != NULL) { - printf("%s - \n", tab[i].cmd); + + printf("%s ", iter[i].cmd); + if (iter[i].clb) + { + //printf("CLB "); + } + if (iter[i].pre) + { + //printf("PRE "); + } + if (iter[i].hlp) + { + //printf("HLP "); + iter[i].hlp(NULL); + } + + printf("\n"); i++; } return 0; @@ -396,7 +414,7 @@ cmd_table_t tab[] = { //{"quit", c_quit}, {"help", c_help, NULL, NULL, NULL}, {"?", c_help, NULL, NULL, NULL}, - {"open", c_open, NULL, NULL, NULL}, + {"open", c_open, h_open, NULL, NULL}, {"close", c_close, NULL, NULL, NULL}, {"info", c_info, NULL, NULL, NULL}, {"seek", c_seek, NULL, NULL, NULL}, |