home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume25 / setd / types.h < prev   
Encoding:
C/C++ Source or Header  |  1992-01-11  |  1.2 KB  |  66 lines

  1. /*
  2.  *  types.h
  3.  *
  4.  *  Types File for both Mark and Set Directory
  5.  *
  6.  *  Sunil William Savkar
  7.  *  sunil@hal.com
  8.  *  Copyright (c) 1991
  9.  *  All Rights Reserved
  10.  *
  11.  *  DISCLOSURE
  12.  *
  13.  *  This source may be modified or copied freely.  The intent
  14.  *  is the free distribution of a useful utility used for moving
  15.  *  between directories.  Any modifications and additions, along
  16.  *  with bug reports should be sent to the author, so all might
  17.  *  benefit!
  18.  *
  19.  *  DESCRIPTION
  20.  * 
  21.  *  This module contains all typed structures used by both
  22.  *  setd and mark for changing directories or adding and/or
  23.  *  deleting marks.
  24.  */
  25.  
  26. /*
  27.  *  typedef int boolean
  28.  *
  29.  *  Type booleans to just be integers (TRUE or FALSE).
  30.  */
  31.  
  32. typedef int boolean;
  33.  
  34. /*
  35.  *  typedef struct COMMAND_NODE
  36.  *
  37.  *  Structure used to store a string command and its enumerated
  38.  *  equivalent.  The enumerated equivalents can be found in enum.h
  39.  */
  40.  
  41. typedef struct COMMAND_NODE {
  42.  
  43.   T_COMM type;
  44.   char   *text;
  45. } COMMAND_NODE;
  46.  
  47. /*
  48.  *  typedef struct LIST_NODE
  49.  *
  50.  *  This structure stores the list of marks, with the original
  51.  *  mark, the path expansion for the mark, and a pointer to the
  52.  *  next mark.
  53.  */
  54.  
  55. typedef struct LIST_NODE {
  56.  
  57.   int unset_flag;
  58.   char *mark;
  59.   char *path;
  60.   struct LIST_NODE *next;
  61. } LIST_NODE;
  62.  
  63.  
  64.  
  65.  
  66.