1: /* $Header: path.h,v 1.1 85/03/14 15:33:11 nicklin Exp $ */
   2: 
   3: /*
   4:  * Pathname definitions
   5:  *
   6:  * Author: Peter J. Nicklin
   7:  */
   8: 
   9: /*
  10:  * Buffer sizes
  11:  */
  12: #define ALIASSIZE   30      /* project directory alias size */
  13: #define TYPESIZE    30      /* project directory type label size */
  14: #define DIRDESCSIZE 128     /* project directory description size */
  15: #define P_BUFSIZE   1024        /* pathname buffer size */
  16: #define PATHSIZE    256     /* maximum pathname length */
  17: #define PPATHSIZE   128     /* maximum project pathname length */
  18: #define TYPBUFSIZE  256     /* directory type labels buffer */
  19: 
  20: /*
  21:  * Nomenclature (WARNING: Check definition usage BEFORE changing)
  22:  */
  23: #define _CDIRC      '.'     /* current directory character */
  24: #define _HDIRC      '~'     /* home directory character */
  25: #define _PDIRC      '^'     /* project root directory character */
  26: #define _PDTSC      '/'     /* project dir type labels sep char */
  27: #define _PPSC       '^'     /* project path separator character */
  28: #define _PSC        '/'     /* pathname separator character */
  29: #define _RDIRC      '/'     /* root directory character */
  30: #define CURDIR      "."     /* current directory */
  31: #define PARENTDIR   ".."        /* parent directory */
  32: #define PATHSEP     "/"     /* pathname separator */
  33: #define PPATHSEP    "^"     /* project pathname separator */
  34: #define ROOTDIR     "/"     /* root directory */
  35: #define ROOTPROJECT "^"     /* root project */
  36: #define USERPROJECT "~"     /* user's root project */
  37: 
  38: /*
  39:  * Pathname types
  40:  */
  41: #define P_IFMT      0xf0000     /* project pathname mask */
  42: #define P_IFNEW     0x00000     /* new directory or file */
  43: #define P_IFREG     0x10000     /* regular directory or file */
  44: #define P_IFHOME    0x20000     /* root project root directory */
  45: #define P_IFPDIR    0x30000     /* project directory */
  46: #define P_IFPROOT   0x40000     /* project root directory */
  47: 
  48: /*
  49:  * Pathname struct
  50:  */
  51: typedef struct _path
  52:     {
  53:     unsigned long p_mode;       /* type of pathname */
  54:     char *p_alias;          /* pathname alias */
  55:     char *p_path;           /* pathname */
  56:     char *p_type;           /* project directory type labels */
  57:     char *p_desc;           /* project directory description */
  58:     char p_buf[P_BUFSIZE];      /* pathname buffer */
  59:     char p_project[PATHSIZE];   /* pathname's project */
  60:     } PATH;

Defined struct's

_path defined in line 51; never used

Defined typedef's

PATH defined in line 60; never used

Defined macros

ALIASSIZE defined in line 12; never used
CURDIR defined in line 30; used 1 times
DIRDESCSIZE defined in line 14; never used
PARENTDIR defined in line 31; used 1 times
PATHSEP defined in line 32; used 2 times
PPATHSEP defined in line 33; never used
PPATHSIZE defined in line 17; never used
P_BUFSIZE defined in line 15; used 1 times
  • in line 58
P_IFHOME defined in line 44; never used
P_IFMT defined in line 41; never used
P_IFNEW defined in line 42; never used
P_IFPDIR defined in line 45; never used
P_IFPROOT defined in line 46; never used
P_IFREG defined in line 43; never used
ROOTDIR defined in line 34; never used
ROOTPROJECT defined in line 35; never used
TYPBUFSIZE defined in line 18; never used
TYPESIZE defined in line 13; never used
USERPROJECT defined in line 36; never used
_CDIRC defined in line 23; used 3 times
_HDIRC defined in line 24; never used
_PDIRC defined in line 25; never used
_PDTSC defined in line 26; never used
_PPSC defined in line 27; never used
_RDIRC defined in line 29; used 4 times

Usage of this include

Last modified: 1985-07-03
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 1170
Valid CSS Valid XHTML 1.0 Strict