home *** CD-ROM | disk | FTP | other *** search
/ Jason Aller Floppy Collection / 125.img / PRO-C4.ZIP / BENCH1.ZIP / HELP / HELPFUNC.C < prev    next >
Encoding:
C/C++ Source or Header  |  1990-05-28  |  1.2 KB  |  55 lines

  1. /* ==( bench/help.c )== */
  2. /* ----------------------------------------------- */
  3. /* Pro-C  Copyright (C) 1988 - 1990 Vestronix Inc. */
  4. /* Modification to this source is not supported    */
  5. /* by Vestronix Inc.                               */
  6. /*            All Rights Reserved                  */
  7. /* ----------------------------------------------- */
  8. /* Written   Nig   1-Jan-87                        */
  9. /* Modified  Geo  11-Dec-89  See comments below    */
  10. /* ----------------------------------------------- */
  11. /* %W%  (%H% %T%) */
  12.  
  13. /*
  14.  *  Modifications
  15.  *
  16.  *  11-Dec-89  Geo - V2 version
  17.  *  25-Oct-89  Geo - 1.32 Merge
  18. */
  19.  
  20. # include <stdio.h>
  21. # include <bench.h>
  22.  
  23. # include "help.h"
  24.  
  25. #ifdef ANSI
  26. extern void (*help_func)(int);
  27. void do_helpmsg(int);
  28. void setup_help(void);
  29. #else
  30. extern void (*help_func)();
  31. void do_helpmsg();
  32. void setup_help();
  33. #endif
  34.  
  35. extern char _helpfile_path[];
  36.  
  37. void setup_help()
  38. {
  39.     help_func = do_helpmsg;
  40. }
  41.  
  42. void do_helpmsg(hnum)
  43. int hnum;
  44. {
  45.     int curstate;
  46.  
  47.     if (!*_helpfile_path)  /* No help if no file */
  48.         return;
  49.  
  50.     curstate = cursor(OFF);
  51.     call_help(_helpfile_path, hnum);
  52.     cursor(curstate);
  53. }  
  54.  
  55.