summaryrefslogtreecommitdiff
path: root/bootblocks/help.c
diff options
context:
space:
mode:
authorRobert de Bath <rdebath@poboxes.com>1999-01-23 13:29:22 +0100
committerLubomir Rintel <lkundrak@v3.sk>2013-10-23 23:40:39 +0200
commite62b35169cdcd13632ae353b1e5ffde7dec44201 (patch)
tree2646548ca84edb365354a6e68459f92943532cee /bootblocks/help.c
parent2233d47f9d89c107b6c425626d6eb2669363b055 (diff)
downloaddev86-e62b35169cdcd13632ae353b1e5ffde7dec44201.tar.gz
Import Dev86src-0.14.7.tar.gzv0.14.7
Diffstat (limited to 'bootblocks/help.c')
-rw-r--r--bootblocks/help.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/bootblocks/help.c b/bootblocks/help.c
index 3d53fad..049aa3d 100644
--- a/bootblocks/help.c
+++ b/bootblocks/help.c
@@ -7,6 +7,8 @@
#include "monitor.h"
+#ifndef NOCOMMAND
+
struct keys {
int key;
int rel;
@@ -33,12 +35,19 @@ struct keys {
cmd_help(ptr)
char * ptr;
{
-static int lastpage = 0;
int helpkey = 1;
- int i;
getnum(&ptr, &helpkey);
+ return help_key(helpkey);
+}
+
+help_key(helpkey)
+int helpkey;
+{
+static int lastpage = 0;
+ int i;
+
for(i=0; keys[i].key; i++)
if( keys[i].key == helpkey || i == helpkey )
break;
@@ -90,3 +99,4 @@ int page;
return 0;
}
+#endif