aboutsummaryrefslogtreecommitdiffstats
path: root/ihe.c
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2019-08-17 13:48:50 +0100
committerFreeArtMan <dos21h@gmail.com>2019-08-17 13:48:50 +0100
commit333addeac3d296a6a24802c329ef75c96263d61e (patch)
treed4714f964964d2c9fbb7e13cbae9f18737a99960 /ihe.c
parent700b5bc2b24bf9fd8e69f0586739c692be0dc2cb (diff)
downloadihe-333addeac3d296a6a24802c329ef75c96263d61e.tar.gz
ihe-333addeac3d296a6a24802c329ef75c96263d61e.zip
Disabled space token generation
Diffstat (limited to 'ihe.c')
-rw-r--r--ihe.c30
1 files changed, 24 insertions, 6 deletions
diff --git a/ihe.c b/ihe.c
index 14d64ff..9dcf124 100644
--- a/ihe.c
+++ b/ihe.c
@@ -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},