home *** CD-ROM | disk | FTP | other *** search
- /* ==( bench/help.c )== */
- /* ----------------------------------------------- */
- /* Pro-C Copyright (C) 1988 - 1990 Vestronix Inc. */
- /* Modification to this source is not supported */
- /* by Vestronix Inc. */
- /* All Rights Reserved */
- /* ----------------------------------------------- */
- /* Written Nig 1-Jan-87 */
- /* Modified Geo 11-Dec-89 See comments below */
- /* ----------------------------------------------- */
- /* %W% (%H% %T%) */
-
- /*
- * Modifications
- *
- * 11-Dec-89 Geo - V2 version
- * 25-Oct-89 Geo - 1.32 Merge
- */
-
- # include <stdio.h>
- # include <bench.h>
-
- # include "help.h"
-
- #ifdef ANSI
- extern void (*help_func)(int);
- void do_helpmsg(int);
- void setup_help(void);
- #else
- extern void (*help_func)();
- void do_helpmsg();
- void setup_help();
- #endif
-
- extern char _helpfile_path[];
-
- void setup_help()
- {
- help_func = do_helpmsg;
- }
-
- void do_helpmsg(hnum)
- int hnum;
- {
- int curstate;
-
- if (!*_helpfile_path) /* No help if no file */
- return;
-
- curstate = cursor(OFF);
- call_help(_helpfile_path, hnum);
- cursor(curstate);
- }
-
-