home *** CD-ROM | disk | FTP | other *** search
/ vsiftp.vmssoftware.com / VSIPUBLIC@vsiftp.vmssoftware.com.tar / FREEWARE / FREEWARE40.ZIP / flistfrontend / src / cmdstk.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-05-28  |  767 b   |  35 lines

  1. /*
  2.  * Title:    cmdstk.h
  3.  * Author:    Thomas E. Dickey
  4.  * Created:    27 May 1995
  5.  * Last update:
  6.  *
  7.  * Interface of cmdstk.c
  8.  *
  9.  * $Id: cmdstk.h,v 1.2 1995/05/28 11:19:14 tom Exp $
  10.  */
  11.  
  12. #ifndef CMDSTK_H
  13. #define CMDSTK_H
  14.  
  15. #include "crt.h"
  16.  
  17. #define    PAGESIZE    4096
  18. #define    MAXSTK        ((PAGESIZE-4)/(1+CRT_COLS))
  19.  
  20. typedef    struct    {
  21.     char    head;    /* index of queue-head    */
  22.     char    stored;    /* number of items actually in queue        */
  23.     char    depth;    /* current depth back from head (0..(stored-1))    */
  24.     char    text[MAXSTK][CRT_COLS+1];
  25.     } CMDSTK;
  26.  
  27. extern    void    cmdstk_chg (char *string);
  28. extern    void    cmdstk_free (CMDSTK *old_);
  29. extern    int    cmdstk_get (char *string, int dir);
  30. extern    CMDSTK*    cmdstk_init (void);
  31. extern    void    cmdstk_put (char *s_);
  32. extern    void    cmdstk_tos (void);
  33.  
  34. #endif /* CMDSTK_H */
  35.