home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / database / datamage.zip / CODE.ZIP / HCWP_LIB.H < prev    next >
C/C++ Source or Header  |  1991-07-21  |  4KB  |  158 lines

  1. typedef char           SBYTE;
  2. typedef unsigned char  BYTE;
  3.  
  4. typedef short          SWORD;
  5. typedef unsigned short WORD;
  6.  
  7. typedef long           SDWORD;
  8. typedef unsigned long  DWORD;
  9.  
  10. #include <dos.h>
  11. #include <stdio.h>
  12.  
  13. extern BYTE
  14.  
  15.      attr,              /*  stores attribute, see get_vs function  */
  16.     color_enable,      /*  0 = no color, 1 = can diaplay color  */
  17.     ctrl_val,          /*  global byte, 1 of 2  */
  18.     nrml_val,          /*  global byte, 2 of 2  */
  19.     lptr,              /*  holds number of active printer  */
  20.     cga_sw,            /*  1=comand line NO direct screen writes */
  21.  
  22.     user_enty [255],    /*  string to point the inpt routine at
  23.                        or, is that, at which to point?  */
  24.  
  25.      org_str [81],      /*  holds original path  */
  26.  
  27.      pgm_str [81],      /*  path holding program  */
  28.  
  29.     prompts [] [40],   /*  string space for get_v_choice  */
  30.  
  31.     c_s [] [255],      /*  string space for cntrstrp
  32.                        and decoder functions  */
  33.  
  34.     gp_str [] [255];   /*  provides 20 general-purpose global strings  */
  35.  
  36. union REGS regs;
  37.  
  38. typedef struct
  39.     {
  40.     BYTE ulr;
  41.     BYTE ulc;
  42.     BYTE lrr;
  43.     BYTE lrc;
  44.  
  45.     BYTE attr;
  46.  
  47.     BYTE far * save;
  48.     } window_array;
  49.  
  50. extern window_array w_a [];
  51.  
  52. /* FUNCTIONS IN HCWP_LIB  */
  53.  
  54.     void         far range_msg             ();
  55.     void         far despacer             (BYTE);
  56.  
  57.     void           far get_vs              ();
  58.  
  59.     void           far cls                 ();
  60.     void           far clw                 (BYTE);
  61.     void           far c_clw               (BYTE, BYTE);
  62.  
  63.     void           far beep                ();
  64.  
  65.     BYTE           far set_window          (BYTE, BYTE, BYTE ,
  66.                                      BYTE, BYTE, BYTE, BYTE);
  67.  
  68.     void           far window_border       (BYTE);
  69.     void           far scroll_window       (BYTE, BYTE, BYTE);
  70.     BYTE           far save_window         (BYTE);
  71.     void           far repl_window         (BYTE);
  72.  
  73.     void           far _fastcall tele_out      (BYTE);
  74.  
  75.     BYTE           far s_read_char         ();
  76.     BYTE         far s_read_attr         ();
  77.  
  78.     void           far _fastcall crt_out       (BYTE);
  79.     void         far _fastcall c_crt_out     (BYTE, BYTE);
  80.  
  81.     void           far prnt                (BYTE *);
  82.     void           far f_prnt              (BYTE far *);
  83.  
  84.     void           far clr_prnt            (BYTE *, BYTE);
  85.     void           far f_clr_prnt          (BYTE far *, BYTE);
  86.  
  87.     void           far _fastcall line_out      (BYTE, BYTE);
  88.  
  89.     DWORD          far get_timer           ();
  90.     void           far wait                (BYTE);
  91.  
  92.     void           far _fastcall locate        (BYTE, BYTE);
  93.     void           far nrml_cursor         ();
  94.     void           far no_cursor           ();
  95.     void           far full_cursor         ();
  96.     void           far find_cursor         (BYTE *, BYTE *);
  97.  
  98.     void           far lpt_char            (BYTE);
  99.     void           far lpt_spaces          (BYTE);
  100.     void           far lpt_string          (BYTE *);
  101.     void           far lpt_f_string        (BYTE far *);
  102.     void           far lpt_tab             (WORD);
  103.  
  104.     void           far lpt_eol             ();
  105.     void           far lpt_blanks          (BYTE);
  106.  
  107.     void           far lpt_line            (BYTE, BYTE);
  108.  
  109.     void         far get_kybd_type         ();
  110.     void           far _fastcall get_one    (BYTE *, BYTE *);
  111.     BYTE         far check_shift         ();
  112.  
  113.     BYTE           far get_choice          (BYTE);
  114.  
  115.     void         far y_n                 ();
  116.     void         far n_y                 ();
  117.  
  118.     BYTE         far get_v_choice        (BYTE, BYTE, BYTE *);
  119.  
  120.     void           far flush_kybd          ();
  121.     BYTE         far check_kybd         ();
  122.  
  123.     void           far see_screen          ();
  124.  
  125.     void           far rtrim               (BYTE *);
  126.     BYTE           far cntrstrp            ();
  127.  
  128.     void           far output_fail         ();
  129.     void           far mem_fail            ();
  130.  
  131.     void           far write_eol           (FILE *);
  132.     void           far eol_strip           (BYTE *);
  133.  
  134.     void           far show_help           (BYTE * helpfile);
  135.  
  136.     void           far set_far             (BYTE far *, BYTE *, WORD);
  137.     void           far set_farst           (BYTE far *, BYTE *);
  138.  
  139.     void           far get_far             (BYTE *, BYTE far *, WORD);
  140.     void           far get_farst           (BYTE *, BYTE far *);
  141.  
  142.     BYTE           far dlr_format          (BYTE, BYTE);
  143.  
  144.     void           far hard_err            (BYTE, BYTE, BYTE far *);
  145.  
  146.     BYTE         far parse_date         (BYTE *, BYTE *, BYTE *,
  147.                                           BYTE *, WORD *, double *);
  148.  
  149.     void         far ipt_box             (BYTE, BYTE, BYTE, BYTE,
  150.                                           BYTE, BYTE, BYTE *);
  151.  
  152.     // BYTE         far inpt                 (BYTE, BYTE, BYTE, BYTE,
  153.     //                                   BYTE, BYTE, BYTE *);
  154.  
  155.     // void           far check_heap          ();
  156.  
  157.  
  158.