home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 May / macformat-024.iso / Shareware City / Developers / nshellmegasource1.50 / mega src / lib / walk_utl.h < prev    next >
Encoding:
Text File  |  1994-11-21  |  1.1 KB  |  50 lines  |  [TEXT/KAHL]

  1. /* ========================================
  2.  
  3.     walk_utl.proto.h
  4.     
  5.     Copyright (c) 1994 Newport Software Development
  6.     
  7.     You may distribute unmodified copies of this file for
  8.     noncommercial purposes.  You may use this file as a
  9.     reference when writing your own programs.
  10.     
  11.     All other rights are reserved.
  12.     
  13.    ======================================== */
  14.  
  15. /* ======================================== */
  16.  
  17. // Constant Definitions
  18.  
  19. #define    MAX_WALK_LEVELS    50
  20.  
  21. // Note: Since levels 0 and 1 in the t_walk_data structure
  22. // contain the same thing, this is really 49 folders total.
  23.  
  24. /* ======================================== */
  25.  
  26. // Type Definitions
  27.  
  28. // This structure defines the data for one level of a directory search
  29.  
  30. typedef struct {
  31.  
  32.     FSSpec    fss;            // fsspec of this level
  33.     
  34.     short    index;            // the item we are looking at within this level
  35.  
  36. } t_level_data;
  37.  
  38. // This structure defines the control data for a whole search
  39.  
  40. typedef struct {
  41.  
  42.     t_level_data    levels[MAX_WALK_LEVELS];    // data for each level
  43.     
  44.     short            level;        // the level we are looking at
  45.  
  46. } t_walk_data;
  47.  
  48. typedef    t_walk_data    **t_walk_hndl;
  49.  
  50.