# 2.11BSD#431 - /usr/src/new/rcs/src/rcsbase.h

##### Macros

    ACCENT            X
    AMPER             X
    AT                X
    AUTHOR            X
    BACKSL            X
    BAR               X
    BYTESIZ           X
    COMMA             X
    DATE              X
    DATEFORM          X
    DEFAULTSTATE      X
    DELETE            X
    DELNUMFORM        X
    DIFFILE           X
    DIVIDE            X
    DOLLAR            X
    DQUOTE            X
    EQUAL             X
    EXCLA             X
    GETC              X
    GREAT             X
    HASH              X
    HEADER            X
    IDH               X
    INSERT            X
    JOINFIL2          X
    JOINFIL3          X
    KDELIM            X
    LBRACE            X
    LBRACK            X
    LESS              X
    LOCKER            X
    LOG               X
    LPARN             X
    MINUS             X
    NCPFN             X
    NCPPN             X
    NEWRCSFILE        X
    PERCNT            X
    PLUS              X
    PRINTDATE         X
    PRINTTIME         X
    QUEST             X
    RBRACE            X
    RBRACK            X
    RCSBASE           X
    RCSDIR            X
    RCSFILE           X
    RCSSEP            X
    RCSSUF            X
    REVISION          X
    RPARN             X
    SDELIM            X
    SOURCE            X
    SQUOTE            X
    STATE             X
    TILDE             X
    TIMES             X
    TMPFILE1          X
    TMPFILE2          X
    TMPFILE3          X
    UNDER             X
    UPARR             X
    VDELIM            X
    VOID              X
    WORKMODE          X
    ctab              X
    datelength        X
    elif              X
    elsif             X
    false             X
    hshsize           X
    joinlength        X
    keylength         X
    keyvallength      X
    logsize           X
    nil               X
    putc              X
    revlength         X
    rindex            X
    strtsize          X
    true              X

##### struct's

    access            X
    assoc             X
    branchhead        X
    hshentry          X
    lock              X

##### enums's

    markers           X
    tokens            X

       1:
       2: /*
       3:  *                     RCS common definitions and data structures
       4:  */
       5: #define RCSBASE "$Id: rcsbase.h,v 4.5 87/12/18 17:06:41 narten Exp $"
       6: /*****************************************************************************
       7:  * INSTRUCTIONS:
       8:  * =============
       9:  * The following should be handled in the Makefile:
      10:  *     For USG Unix, define USG; for BSD Unix, don't (see ifdef USG).
      11:  *     For 4.2 bsd, define V4_2BSD; this will replace the routines
      12:  *     getwd() and rename() with the corresponding ones in the C-library.
      13:  *     V4_2BSD also selects different definitions for the macros NCPFN and NCPPN
      14:  *     (max. number of characters per filename, number of characters per path name).
      15:  *     Define STRICT_LOCKING appropriately (see STRICT_LOCKING).
      16:  * The following need be changed for porting to a different machine:
      17:  *     Define SMALLOG for a machine with small memory (like the PDP11).
      18:  *     SMALLOG conserves space for log messages.
      19:  *     Change BYTESIZ if necessary.
      20:  * If you need to change the comment leaders, update the table comtable[]
      21:  * in rcsfnms.c. (This can wait until you know what a comment leader is.)
      22:  *****************************************************************************
      23:  *
      24:  * Copyright (C) 1982 by Walter F. Tichy
      25:  *                       Purdue University
      26:  *                       Computer Science Department
      27:  *                       West Lafayette, IN 47907
      28:  *
      29:  * All rights reserved. No part of this software may be sold or distributed
      30:  * in any form or by any means without the prior written permission of the
      31:  * author.
      32:  * Report problems and direct all inquiries to Tichy@purdue (ARPA net).
      33:  */
      34:
      35:
      36: /* $Log:	rcsbase.h,v $
      37:  * Revision 4.5  87/12/18  17:06:41  narten
      38:  * made removed BSD ifdef, now uses V4_2BSD
      39:  *
      40:  * Revision 4.4  87/10/18  10:29:49  narten
      41:  * Updating version numbers
      42:  * Changes relative to 1.1 are actually relative to 4.2
      43:  *
      44:  * Revision 1.3  87/09/24  14:02:25  narten
      45:  * changes for lint
      46:  *
      47:  * Revision 1.2  87/03/27  14:22:02  jenkins
      48:  * Port to suns
      49:  *
      50:  * Revision 1.1  84/01/23  14:50:14  kcs
      51:  * Initial revision
      52:  *
      53:  * Revision 4.2  83/12/20  16:04:20  wft
      54:  * merged 3.6.1.1 and 4.1 (SMALLOG, logsize).
      55:  * moved setting of STRICT_LOCKING to Makefile.
      56:  * changed DOLLAR to UNKN (conflict with KDELIM).
      57:  *
      58:  * Revision 4.1  83/05/04  09:12:41  wft
      59:  * Added markers Id and RCSfile.
      60:  * Added Dbranch for default branches.
      61:  *
      62:  * Revision 3.6.1.1  83/12/02  21:56:22  wft
      63:  * Increased logsize, added macro SMALLOG.
      64:  *
      65:  * Revision 3.6  83/01/15  16:43:28  wft
      66:  * 4.2 prerelease
      67:  *
      68:  * Revision 3.6  83/01/15  16:43:28  wft
      69:  * Replaced dbm.h with BYTESIZ, fixed definition of rindex().
      70:  * Added variants of NCPFN and NCPPN for bsd 4.2, selected by defining V4_2BSD.
      71:  * Added macro DELNUMFORM to have uniform format for printing delta text nodes.
      72:  * Added macro DELETE to mark deleted deltas.
      73:  *
      74:  * Revision 3.5  82/12/10  12:16:56  wft
      75:  * Added two forms of DATEFORM, one using %02d, the other %.2d.
      76:  *
      77:  * Revision 3.4  82/12/04  20:01:25  wft
      78:  * added LOCKER, Locker, and USG (redefinition of rindex).
      79:  *
      80:  * Revision 3.3  82/12/03  12:22:04  wft
      81:  * Added dbm.h, stdio.h, RCSBASE, RCSSEP, RCSSUF, WORKMODE, TMPFILE3,
      82:  * PRINTDATE, PRINTTIME, map, and ctab; removed Suffix. Redefined keyvallength
      83:  * using NCPPN. Changed putc() to abort on write error.
      84:  *
      85:  * Revision 3.2  82/10/18  15:03:52  wft
      86:  * added macro STRICT_LOCKING, removed RCSUMASK.
      87:  * renamed JOINFILE[1,2] to JOINFIL[1,2].
      88:  *
      89:  * Revision 3.1  82/10/11  19:41:17  wft
      90:  * removed NBPW, NBPC, NCPW.
      91:  * added typdef int void to aid compiling
      92:  */
      93:
      94:
      95:
      96: #include <stdio.h>
      97: #undef putc         /* will be redefined */
      98:
      99:
     100: #ifdef USG
     101: #       define rindex    strrchr
     102: #       define DATEFORM  "%.2d.%.2d.%.2d.%.2d.%.2d.%.2d"
     103: #else
     104: #       define DATEFORM  "%02d.%02d.%02d.%02d.%02d.%02d"
     105: #endif
     106: /* Make sure one of %02d or %.2d prints a number with a field width 2, with
     107:  * leading zeroes. For example, 0, 1, and 22 must be printed as 00, 01, and
     108:  * 22. Otherwise, there will be problems with the dates.
     109:  */
     110:
     111: #define PRINTDATE(file,date) fprintf(file,"%.2s/%.2s/%.2s",date,date+3,date+6)
     112: #define PRINTTIME(file,date) fprintf(file,"%.2s:%.2s:%.2s",date+9,date+12,date+15)
     113: /* print RCS format date and time in nice format from a string              */
     114:
     115: /*
     116:  * Parameters
     117:  */
     118: #define BYTESIZ             8 /* number of bits in a byte                   */
     119:
     120: /*#define STRICT_LOCKING    0 /* 0 sets the default locking to non-strict;  */
     121:                               /* used in experimental environments.         */
     122:                               /* 1 sets the default locking to strict;      */
     123:                               /* used in production environments.           */
     124:                   /* STRICT_LOCKING is set in the Makefile!     */
     125: #define hshsize           239 /* hashtable size; MUST be prime and -1 mod 4 */
     126:                               /* other choices: 547 or 719                  */
     127: #define strtsize (hshsize * 50) /* string table size                        */
     128: #ifdef SMALLOG
     129: #  define logsize         1024 /* max. size of log message for pdp11        */
     130: #else
     131: #  define logsize         4096 /* max. size of log message for others       */
     132: #endif
     133: #define revlength          30 /* max. length of revision numbers            */
     134: #define datelength         20 /* length of a date in RCS format             */
     135: #define joinlength         20 /* number of joined revisions permitted       */
     136: #define RCSDIR         "RCS/" /* subdirectory for RCS files                 */
     137: #define RCSSUF            'v' /* suffix for RCS files                       */
     138: #define RCSSEP            ',' /* separator for RCSSUF                       */
     139: #define KDELIM            '$' /* delimiter for keywords                     */
     140: #define VDELIM            ':' /* separates keywords from values             */
     141: #define DEFAULTSTATE    "Exp" /* default state of revisions                 */
     142: #ifdef V4_2BSD
     143: #  define NCPFN           256 /* number of characters per filename          */
     144: #  define NCPPN          1024 /* number of characters per pathname          */
     145: #else
     146: #  define NCPFN            14 /* number of characters per filename          */
     147: #  define NCPPN       6*NCPFN /* number of characters per pathname          */
     148: #endif
     149: #define keylength          20 /* buffer length for expansion keywords       */
     150: #define keyvallength NCPPN+revlength+datelength+60
     151:                               /* buffer length for keyword expansion        */
     152:
     153:
     154:
     155: #define true     1
     156: #define false    0
     157: #define nil      0
     158: #define elsif    else if
     159: #define elif     else if
     160:
     161:
     162: /* temporary file names */
     163:
     164: #define NEWRCSFILE  ",RCSnewXXXXXX"
     165: #define DIFFILE     ",RCSciXXXXXX"
     166: #define TMPFILE1    ",RCSt1XXXXXX"
     167: #define TMPFILE2    ",RCSt2XXXXXX"
     168: #define TMPFILE3    ",RCSt3XXXXXX"
     169: #define JOINFIL2    ",RCSj2XXXXXX"
     170: #define JOINFIL3    ",RCSj3XXXXXX"
     171:
     172:
     173: #define putc(x,p) (--(p)->_cnt>=0? ((int)(*(p)->_ptr++=(unsigned)(x))):fflsbuf((unsigned)(x),p))
     174: /* This version of putc prints a char, but aborts on write error            */
     175:
     176: #define GETC(in,out,echo) (echo?putc(getc(in),out):getc(in))
     177: /* GETC writes a del-character (octal 177) on end of file                   */
     178:
     179: #define WORKMODE(RCSmode) (RCSmode&~0222)|((lockflag||!StrictLocks)?0600:0000)
     180: /* computes mode of working file: same as RCSmode, but write permission     */
     181: /* determined by lockflag and StrictLocks.                                  */
     182:
     183:
     184: /* character classes and token codes */
     185: enum tokens {
     186: /* char classes*/  DIGIT, IDCHAR, NEWLN, LETTER, PERIOD, SBEGIN, SPACE, UNKN,
     187: /* tokens */       COLON, DATE, EOFILE, ID, KEYW, NUM, SEMI, STRING,
     188: };
     189:
     190: #define AT      SBEGIN  /* class SBEGIN (string begin) is returned by lex. anal. */
     191: #define SDELIM  '@'     /* the actual character is needed for string handling*/
     192: /* these must be changed consistently, for instance to:
     193:  * #define DQUOTE       SBEGIN
     194:  * #define SDELIM       '"'
     195:  * #define AT           IDCHAR
     196:  * there should be no overlap among SDELIM, KDELIM, and VDELIM
     197:  */
     198:
     199: /* other characters */
     200:
     201: #define ACCENT   IDCHAR
     202: #define AMPER    IDCHAR
     203: #define BACKSL   IDCHAR
     204: #define BAR      IDCHAR
     205: #define COMMA    UNKN
     206: #define DIVIDE   IDCHAR
     207: #define DOLLAR   UNKN                /* overlap with KDELIM */
     208: #define DQUOTE   IDCHAR
     209: #define EQUAL    IDCHAR
     210: #define EXCLA    IDCHAR
     211: #define GREAT    IDCHAR
     212: #define HASH     IDCHAR
     213: #define INSERT   UNKN
     214: #define LBRACE   IDCHAR
     215: #define LBRACK   IDCHAR
     216: #define LESS     IDCHAR
     217: #define LPARN    IDCHAR
     218: #define MINUS    IDCHAR
     219: #define PERCNT   IDCHAR
     220: #define PLUS     IDCHAR
     221: #define QUEST    IDCHAR
     222: #define RBRACE   IDCHAR
     223: #define RBRACK   IDCHAR
     224: #define RPARN    IDCHAR
     225: #define SQUOTE   IDCHAR
     226: #define TILDE    IDCHAR
     227: #define TIMES    IDCHAR
     228: #define UNDER    IDCHAR
     229: #define UPARR    IDCHAR
     230:
     231:
     232:
     233:
     234: /***************************************
     235:  * Data structures for the symbol table
     236:  ***************************************/
     237:
     238:
     239: /* Hash table entry */
     240: struct hshentry {
     241:         char              * num;      /* pointer to revision number (ASCIZ) */
     242:         char              * date;     /* pointer to date of checking        */
     243:         char              * author;   /* login of person checking in        */
     244:         char              * lockedby; /* who locks the revision             */
     245:         char              * log;      /* log message requested at checkin   */
     246:         char              * state;    /* state of revision (Exp by default) */
     247:         struct branchhead * branches; /* list of first revisions on branches*/
     248:         struct hshentry   * next;     /* next revision on same branch       */
     249:         int                 insertlns;/* lines inserted (computed by rlog)  */
     250:         int                 deletelns;/* lines deleted  (computed by rlog)  */
     251:         char                selector; /* marks entry for selection/deletion */
     252: };
     253:
     254: /* list element for branch lists */
     255: struct branchhead {
     256:         struct hshentry   * hsh;
     257:         struct branchhead * nextbranch;
     258: };
     259:
     260: /* accesslist element */
     261: struct access {
     262:         char              * login;
     263:         struct access     * nextaccess;
     264: };
     265:
     266: /* list element for locks  */
     267: struct lock {
     268:         char              * login;
     269:         struct hshentry   * delta;
     270:         struct lock       * nextlock;
     271: };
     272:
     273: /* list element for symbolic names */
     274: struct assoc {
     275:         char              * symbol;
     276:         struct hshentry   * delta;
     277:         struct assoc      * nextassoc;
     278: };
     279:
     280:
     281: /* common variables (getadmin and getdelta())*/
     282: extern char            * Comment;
     283: extern struct access   * AccessList;
     284: extern struct assoc    * Symbols;
     285: extern struct lock     * Locks;
     286: extern struct hshentry * Head;
     287: extern struct hshentry * Dbranch;
     288: extern int               StrictLocks;
     289: extern int               TotalDeltas;
     290: #ifndef lint
     291: static char copyright[]="Copyright (C) 1982 by Walter F. Tichy";
     292: #endif
     293:
     294: /* common variables (lexical analyzer)*/
     295: extern enum tokens map[];
     296: #define ctab (&map[1])
     297: extern struct hshentry   hshtab[];
     298: extern struct hshentry * nexthsh;
     299: extern enum tokens       nexttok;
     300: extern int               hshenter;
     301: extern char            * NextString;
     302: extern char            * cmdid;
     303:
     304: #if defined(USG) || defined(V4_2BSD)
     305: #define VOID    (void)
     306: #else
     307: typedef int void;
     308: #define VOID
     309: #endif
     310:
     311: /* common routines */
     312: extern int serror();
     313: extern int faterror();
     314: extern int fatserror();
     315: extern void ignoreints();
     316: extern void catchints();
     317: extern void restoreints();
     318:
     319: extern char *strcpy();
     320: extern char *strcat();
     321: extern char *strncpy();
     322:
     323: /*
     324:  * Markers for keyword expansion (used in co and ident)
     325:  */
     326: #define AUTHOR          "Author"
     327: #define DATE            "Date"
     328: #define HEADER          "Header"
     329: #define IDH             "Id"
     330: #define LOCKER          "Locker"
     331: #define LOG             "Log"
     332: #define RCSFILE         "RCSfile"
     333: #define REVISION        "Revision"
     334: #define SOURCE          "Source"
     335: #define STATE           "State"
     336:
     337: enum markers { Nomatch, Author, Date, Header, Id,
     338:            Locker, Log, RCSfile, Revision, Source, State };
     339:
     340: #define DELNUMFORM      "\n\n%s\n%s\n"
     341: /* used by putdtext and scanlogtext */
     342: #define DELETE          'D'
     343: /* set by rcs -o and used by puttree() in rcssyn */

#### Defined variables

copyright defined in line 291; never used

#### Defined struct's

access defined in line 261; used 56 times

- in line 263(2), 283(2)
- in /usr/src/new/rcs/src/rcs.c line 160-161(4), 208-212(4), 631(2), 638(2), 651(4), 712(2), 739(4), 860-864(4), 904-910(6), 938-942(4)
- in /usr/src/new/rcs/src/rcssyn.c line 125-126(4), 145(2), 185(4), 379(2)
- in /usr/src/new/rcs/src/rcsutil.c line 230(2)
- in /usr/src/new/rcs/src/rlog.c line 167(2)

assoc defined in line 274; used 28 times

- in line 277(2), 284(2)
- in /usr/src/new/rcs/src/rcs.c line 1298(2)
- in /usr/src/new/rcs/src/rcsrev.c line 557(2)
- in /usr/src/new/rcs/src/rcssyn.c line 127-128(4), 146(2), 203(4), 377(2)
- in /usr/src/new/rcs/src/rcsutil.c line 197(2), 212(4)
- in /usr/src/new/rcs/src/rlog.c line 166(2)

branchhead defined in line 255; used 31 times

- in line 247, 257(2)
- in /usr/src/new/rcs/src/ci.c line 172(2), 652(2)
- in /usr/src/new/rcs/src/rcs.c line 1497(2)
- in /usr/src/new/rcs/src/rcsrev.c line 458(2)
- in /usr/src/new/rcs/src/rcssyn.c line 260(2), 283(4), 426(2), 457(2)
- in /usr/src/new/rcs/src/rlog.c line 397(2), 437(2), 576(2), 730(2), 758(2)

hshentry defined in line 240; used 250 times

- in line 248(2), 256(2), 269(2), 276(2), 286-287(4), 297-298(4)
- in /usr/src/new/rcs/src/ci.c line 120(2), 134-135(4), 165-171(6), 642(2), 719-720(4), 786(2), 807(2)
- in /usr/src/new/rcs/src/co.c line 106(2), 114(2), 137-138(4), 438(2), 512-517(8), 529(2), 540(2)
- in /usr/src/new/rcs/src/rcs.c line 117(2), 127-129(6), 162(2), 192-194(4), 549(2), 809(2), 817(2), 848(2), 1028-1029(4), 1074-1077(4), 1096(2), 1103(2), 1146(2), 1299(2), 1320(4), 1338(2), 1402(2), 1424(2), 1443(2), 1463(2), 1471(2), 1484(2), 1496(2)
- in /usr/src/new/rcs/src/rcsclean.c line 45(2), 64-65(4)
- in /usr/src/new/rcs/src/rcsdiff.c line 80(2), 101-102(4)
- in /usr/src/new/rcs/src/rcsedit.c line 156(2), 177(2), 186(2), 202(2), 244(2), 339(2), 419(2)
- in /usr/src/new/rcs/src/rcsfcmp.c line 60(2), 191(2)
- in /usr/src/new/rcs/src/rcsgen.c line 81-90(6), 111(2), 155-160(4), 172(2), 179(2), 205(2)
- in /usr/src/new/rcs/src/rcslex.c line 103(2), 135(2), 386(2), 393(2)
- in /usr/src/new/rcs/src/rcsmerge.c line 59(2), 75-76(4)
- in /usr/src/new/rcs/src/rcsrev.c line 68(2), 74(2), 331-333(4), 342(2), 443-447(6), 457(2), 647-648(4)
- in /usr/src/new/rcs/src/rcssyn.c line 91(2), 132-133(4), 148(2), 259(2), 422(2), 453(2)
- in /usr/src/new/rcs/src/rcsutil.c line 112(2), 148(2), 191(2), 329(2)
- in /usr/src/new/rcs/src/rlog.c line 91(2), 103(2), 364(2), 381(2), 413(2), 430-431(4), 491(2), 513(2), 572(2), 723(2), 753(2), 797(2)

lock defined in line 267; used 58 times

- in line 270(2), 285(2)
- in /usr/src/new/rcs/src/ci.c line 132(2), 729-731(4)
- in /usr/src/new/rcs/src/co.c line 115(2), 444-446(4)
- in /usr/src/new/rcs/src/rcs.c line 118(2), 1036-1038(4), 1104(2), 1401(2)
- in /usr/src/new/rcs/src/rcssyn.c line 129-130(4), 147(2), 227(4), 312(2), 378(2)
- in /usr/src/new/rcs/src/rcsutil.c line 119-120(4), 147(2), 156(2), 180(4)
- in /usr/src/new/rcs/src/rlog.c line 168(2), 700(2), 803(2)

#### Defined enum's

markers defined in line 337; used 20 times

- in /usr/src/new/rcs/src/ident.c line 65(2)
- in /usr/src/new/rcs/src/rcsedit.c line 107(2), 352(2), 419(2)
- in /usr/src/new/rcs/src/rcsfcmp.c line 56(2), 78(2)
- in /usr/src/new/rcs/src/rcskeep.c line 63(2), 92(2)
- in /usr/src/new/rcs/src/rcskeys.c line 44(2), 59(2)

tokens defined in line 185; used 18 times

- in line 295-299(4)
- in /usr/src/new/rcs/src/rcslex.c line 80(2), 105(2), 250(2), 333(2), 514(2)
- in /usr/src/new/rcs/src/rcsrev.c line 577(2)
- in /usr/src/new/rcs/src/rcssyn.c line 342(2)

#### Defined macros

ACCENT defined in line 201; used 1 times

- in /usr/src/new/rcs/src/rcslex.c line 94

AMPER defined in line 202; used 1 times

- in /usr/src/new/rcs/src/rcslex.c line 86

AT defined in line 190; used 1 times

- in /usr/src/new/rcs/src/rcslex.c line 90

AUTHOR defined in line 326; used 1 times

- in /usr/src/new/rcs/src/rcskeys.c line 45

BACKSL defined in line 203; used 1 times

- in /usr/src/new/rcs/src/rcslex.c line 93

BAR defined in line 204; used 1 times

- in /usr/src/new/rcs/src/rcslex.c line 97

BYTESIZ defined in line 118; used 5 times

- in /usr/src/new/rcs/src/ci.c line 455, 471
- in /usr/src/new/rcs/src/rcs.c line 1477
- in /usr/src/new/rcs/src/rcsdiff.c line 232, 243

COMMA defined in line 205; used 1 times

- in /usr/src/new/rcs/src/rcslex.c line 87

DATE defined in line 327; used 2 times

- in line 187
- in /usr/src/new/rcs/src/rcskeys.c line 46

DATEFORM defined in line 104; used 7 times

- in /usr/src/new/rcs/src/ci.c line 297, 777
- in /usr/src/new/rcs/src/co.c line 209
- in /usr/src/new/rcs/src/rcsutil.c line 347
- in /usr/src/new/rcs/src/rlog.c line 335, 884, 930

DEFAULTSTATE defined in line 141; used 1 times

- in /usr/src/new/rcs/src/ci.c line 406

DELETE defined in line 342; used 4 times

- in /usr/src/new/rcs/src/rcs.c line 827, 1128, 1449
- in /usr/src/new/rcs/src/rcssyn.c line 461

DELNUMFORM defined in line 340; used 2 times

- in /usr/src/new/rcs/src/rcs.c line 829
- in /usr/src/new/rcs/src/rcssyn.c line 488

DIFFILE defined in line 165; used 1 times

- in /usr/src/new/rcs/src/ci.c line 443

DIVIDE defined in line 206; used 1 times

- in /usr/src/new/rcs/src/rcslex.c line 87

DOLLAR defined in line 207; used 1 times

- in /usr/src/new/rcs/src/rcslex.c line 86

DQUOTE defined in line 208; used 1 times

- in /usr/src/new/rcs/src/rcslex.c line 86

EQUAL defined in line 209; used 1 times

- in /usr/src/new/rcs/src/rcslex.c line 89

EXCLA defined in line 210; used 1 times

- in /usr/src/new/rcs/src/rcslex.c line 86

GETC defined in line 176; used 28 times

- in /usr/src/new/rcs/src/rcsedit.c line 226-227(2), 267-272(2), 278-281(2), 287-290(2), 312-318(3), 329, 354, 365, 379, 393-397(2), 412
- in /usr/src/new/rcs/src/rcslex.c line 225, 263, 274, 285, 305, 326, 473-476(2), 488-489(2)

GREAT defined in line 211; used 1 times

- in /usr/src/new/rcs/src/rcslex.c line 89

HASH defined in line 212; used 1 times

- in /usr/src/new/rcs/src/rcslex.c line 86

HEADER defined in line 328; used 1 times

- in /usr/src/new/rcs/src/rcskeys.c line 47

IDH defined in line 329; used 1 times

- in /usr/src/new/rcs/src/rcskeys.c line 48

INSERT defined in line 213; used 1 times

- in /usr/src/new/rcs/src/rcslex.c line 82

JOINFIL2 defined in line 169; used 1 times

- in /usr/src/new/rcs/src/co.c line 582

JOINFIL3 defined in line 170; used 1 times

- in /usr/src/new/rcs/src/co.c line 583

KDELIM defined in line 139; used 32 times

- in /usr/src/new/rcs/src/ident.c line 119, 135
- in /usr/src/new/rcs/src/rcsedit.c line 375-380(2), 394, 402, 431-436(2), 449-457(3), 466-478(5)
- in /usr/src/new/rcs/src/rcsfcmp.c line 91, 98, 104, 127, 134, 140
- in /usr/src/new/rcs/src/rcsfnms.c line 392-394(2)
- in /usr/src/new/rcs/src/rcskeep.c line 102-109(3), 171-172(2), 201, 207
- in /usr/src/new/rcs/src/rcskeys.c line 76

LBRACE defined in line 214; used 1 times

- in /usr/src/new/rcs/src/rcslex.c line 97

LBRACK defined in line 215; used 1 times

- in /usr/src/new/rcs/src/rcslex.c line 93

LESS defined in line 216; used 1 times

- in /usr/src/new/rcs/src/rcslex.c line 89

LOCKER defined in line 330; used 1 times

- in /usr/src/new/rcs/src/rcskeys.c line 49

LOG defined in line 331; used 1 times

- in /usr/src/new/rcs/src/rcskeys.c line 50

LPARN defined in line 217; used 1 times

- in /usr/src/new/rcs/src/rcslex.c line 87

MINUS defined in line 218; used 1 times

- in /usr/src/new/rcs/src/rcslex.c line 87

NCPFN defined in line 146; used 7 times

- in line 147
- in /usr/src/new/rcs/src/rcsfnms.c line 112, 410, 424
- in /usr/src/new/rcs/src/rcskeep.c line 69, 129, 152

NCPPN defined in line 147; used 20 times

- in line 150
- in /usr/src/new/rcs/src/ci.c line 181
- in /usr/src/new/rcs/src/co.c line 577
- in /usr/src/new/rcs/src/curdir.c line 42
- in /usr/src/new/rcs/src/rcsclean.c line 60
- in /usr/src/new/rcs/src/rcsdiff.c line 96
- in /usr/src/new/rcs/src/rcsfnms.c line 113-115(3), 282, 389, 524-525(2), 589
- in /usr/src/new/rcs/src/rcskeep.c line 71, 127, 149, 162
- in /usr/src/new/rcs/src/rcsmerge.c line 70
- in /usr/src/new/rcs/src/snoop.c line 70

NEWRCSFILE defined in line 164; used 3 times

- in /usr/src/new/rcs/src/ci.c line 426
- in /usr/src/new/rcs/src/co.c line 309
- in /usr/src/new/rcs/src/rcs.c line 527

PERCNT defined in line 219; used 1 times

- in /usr/src/new/rcs/src/rcslex.c line 86

PLUS defined in line 220; used 1 times

- in /usr/src/new/rcs/src/rcslex.c line 87

PRINTDATE defined in line 111; used 4 times

- in /usr/src/new/rcs/src/rcsedit.c line 435, 445, 458
- in /usr/src/new/rcs/src/rlog.c line 450

PRINTTIME defined in line 112; used 4 times

- in /usr/src/new/rcs/src/rcsedit.c line 436, 445, 458
- in /usr/src/new/rcs/src/rlog.c line 451

QUEST defined in line 221; used 1 times

- in /usr/src/new/rcs/src/rcslex.c line 89

RBRACE defined in line 222; used 1 times

- in /usr/src/new/rcs/src/rcslex.c line 97

RBRACK defined in line 223; used 1 times

- in /usr/src/new/rcs/src/rcslex.c line 93

RCSBASE defined in line 5; used 8 times

- in /usr/src/new/rcs/src/ci.c line 112
- in /usr/src/new/rcs/src/co.c line 99
- in /usr/src/new/rcs/src/ident.c line 62
- in /usr/src/new/rcs/src/rcs.c line 111
- in /usr/src/new/rcs/src/rcsclean.c line 40
- in /usr/src/new/rcs/src/rcsdiff.c line 74
- in /usr/src/new/rcs/src/rcsmerge.c line 54
- in /usr/src/new/rcs/src/rlog.c line 83

RCSDIR defined in line 136; used 1 times

- in /usr/src/new/rcs/src/rcsfnms.c line 467

RCSFILE defined in line 332; used 1 times

- in /usr/src/new/rcs/src/rcskeys.c line 51

RCSSEP defined in line 138; used 3 times

- in /usr/src/new/rcs/src/rcsfnms.c line 208, 401, 420

RCSSUF defined in line 137; used 2 times

- in /usr/src/new/rcs/src/rcsfnms.c line 402, 420

REVISION defined in line 333; used 1 times

- in /usr/src/new/rcs/src/rcskeys.c line 52

RPARN defined in line 224; used 1 times

- in /usr/src/new/rcs/src/rcslex.c line 87

SDELIM defined in line 191; used 39 times

- in /usr/src/new/rcs/src/rcsedit.c line 227(2), 269, 314(2), 364-365(2), 380, 396
- in /usr/src/new/rcs/src/rcsgen.c line 244, 250, 256, 300, 306
- in /usr/src/new/rcs/src/rcslex.c line 410-411(2), 421-422(2), 442-443(2), 475-476(2), 489(2), 496-501(2)
- in /usr/src/new/rcs/src/rcssyn.c line 411-415(4), 490-495(5), 501-504(3)
- in /usr/src/new/rcs/src/rlog.c line 527

SOURCE defined in line 334; used 1 times

- in /usr/src/new/rcs/src/rcskeys.c line 53

SQUOTE defined in line 225; used 1 times

- in /usr/src/new/rcs/src/rcslex.c line 86

STATE defined in line 335; used 1 times

- in /usr/src/new/rcs/src/rcskeys.c line 54

TILDE defined in line 226; used 1 times

- in /usr/src/new/rcs/src/rcslex.c line 97

TIMES defined in line 227; used 1 times

- in /usr/src/new/rcs/src/rcslex.c line 87

TMPFILE1 defined in line 166; used 4 times

- in /usr/src/new/rcs/src/rcsclean.c line 127
- in /usr/src/new/rcs/src/rcsdiff.c line 207
- in /usr/src/new/rcs/src/rcsedit.c line 126
- in /usr/src/new/rcs/src/rcsmerge.c line 134

TMPFILE2 defined in line 167; used 3 times

- in /usr/src/new/rcs/src/rcsdiff.c line 219
- in /usr/src/new/rcs/src/rcsedit.c line 127
- in /usr/src/new/rcs/src/rcsmerge.c line 135

TMPFILE3 defined in line 168; used 1 times

- in /usr/src/new/rcs/src/ci.c line 794

UNDER defined in line 228; used 1 times

- in /usr/src/new/rcs/src/rcslex.c line 93

UPARR defined in line 229; used 1 times

- in /usr/src/new/rcs/src/rcslex.c line 93

VDELIM defined in line 140; used 19 times

- in /usr/src/new/rcs/src/rcsedit.c line 380, 390, 404, 431-434(2), 440, 452-457(2), 466-475(4)
- in /usr/src/new/rcs/src/rcsfcmp.c line 98, 104, 126, 133
- in /usr/src/new/rcs/src/rcskeep.c line 106-110(2)
- in /usr/src/new/rcs/src/rcskeys.c line 76

VOID defined in line 308; used 362 times

- in /usr/src/new/rcs/src/ci.c line 241, 272, 297, 306, 433, 452, 468, 486, 502, 546-550(3), 592, 607, 662-665(3), 675, 693, 777, 831, 844, 884, 892, 904, 917, 932-938(3)
- in /usr/src/new/rcs/src/co.c line 209, 271, 279-281(2), 316, 350, 396, 431, 589-602(5)
- in /usr/src/new/rcs/src/ident.c line 87, 93-100(4), 143-147(2)
- in /usr/src/new/rcs/src/maketime.c line 74
- in /usr/src/new/rcs/src/rcs.c line 431, 520, 530-538(3), 561, 721, 829-834(2), 974-975(2), 986-990(5), 996-997(2), 1003-1005(2), 1011-1022(5), 1322, 1464, 1475, 1517
- in /usr/src/new/rcs/src/rcsclean.c line 178-181(4)
- in /usr/src/new/rcs/src/rcsdiff.c line 209, 221, 229, 255-258(4)
- in /usr/src/new/rcs/src/rcsedit.c line 167, 192, 232, 310, 316, 371, 381, 404-405(2), 431-478(31)
- in /usr/src/new/rcs/src/rcsfcmp.c line 113, 123, 168, 175(2), 197-198(2)
- in /usr/src/new/rcs/src/rcsfnms.c line 222, 258-261(3), 465-469(5), 574-575(2), 625, 675, 689, 702, 752
- in /usr/src/new/rcs/src/rcsgen.c line 189, 235, 244, 250-257(6), 267-268(2), 279-293(5), 299-306(5)
- in /usr/src/new/rcs/src/rcskeep.c line 109-114(2), 141-152(5), 162, 181-186(2), 204, 218-222(2), 242-243(2), 277-279(2)
- in /usr/src/new/rcs/src/rcslex.c line 175, 269, 449, 545-547(3), 555-557(3), 565-568(4), 577-580(4), 589-591(3), 601-602(2), 650, 675, 687-717(10)
- in /usr/src/new/rcs/src/rcsmerge.c line 138, 144, 153, 161
- in /usr/src/new/rcs/src/rcsrev.c line 107, 262, 310-313(4), 653, 669-680(9), 686-690(2)
- in /usr/src/new/rcs/src/rcssyn.c line 246, 382-415(19), 430-445(10), 488-495(5), 501-505(5), 519
- in /usr/src/new/rcs/src/rcsutil.c line 243, 252-254(2), 271-278(6), 285-287(5), 302, 347, 358-361(2)
- in /usr/src/new/rcs/src/rlog.c line 265-310(18), 335-342(4), 351-353(2), 443-477(17), 498, 736, 884, 929-930(2)
- in /usr/src/new/rcs/src/snoop.c line 84-87(2), 94-105(8)

WORKMODE defined in line 179; used 2 times

- in /usr/src/new/rcs/src/ci.c line 515
- in /usr/src/new/rcs/src/co.c line 363

ctab defined in line 296; used 10 times

- in /usr/src/new/rcs/src/rcskeep.c line 259
- in /usr/src/new/rcs/src/rcslex.c line 257, 285, 305, 519-520(2)
- in /usr/src/new/rcs/src/rcsrev.c line 586, 593, 603-606(2)

datelength defined in line 134; used 8 times

- in line 150
- in /usr/src/new/rcs/src/ci.c line 164, 774
- in /usr/src/new/rcs/src/co.c line 130
- in /usr/src/new/rcs/src/rcskeep.c line 68
- in /usr/src/new/rcs/src/rcsutil.c line 339
- in /usr/src/new/rcs/src/rlog.c line 145-146(2)

elif defined in line 159; used 2 times

- in /usr/src/new/rcs/src/rcsdiff.c line 122
- in /usr/src/new/rcs/src/rcsmerge.c line 92

elsif defined in line 158; used 23 times

- in /usr/src/new/rcs/src/ci.c line 399-409(3), 550-551(2), 573, 664-668(2)
- in /usr/src/new/rcs/src/co.c line 278-280(2)
- in /usr/src/new/rcs/src/rcs.c line 569, 729, 833, 1383
- in /usr/src/new/rcs/src/rcsclean.c line 107
- in /usr/src/new/rcs/src/rcsedit.c line 149
- in /usr/src/new/rcs/src/rcsfnms.c line 327
- in /usr/src/new/rcs/src/rcsgen.c line 188
- in /usr/src/new/rcs/src/rcskeep.c line 259
- in /usr/src/new/rcs/src/rcsrev.c line 603
- in /usr/src/new/rcs/src/rcssyn.c line 176
- in /usr/src/new/rcs/src/rlog.c line 916, 1058

false defined in line 156; used 170 times

- in /usr/src/new/rcs/src/ci.c line 192-193(2), 201, 213, 249, 327-335(4), 342, 446-448(2), 464, 553, 567, 581, 587-589(2), 612-615(3), 629-634(3), 698-705(3), 756, 800(2), 828, 836, 869, 947
- in /usr/src/new/rcs/src/co.c line 157, 178, 186, 245, 278, 321, 402-406(2), 412, 425-429(2), 497, 525-531(4), 538-546(4), 556-559(2), 565, 594-599(2), 606
- in /usr/src/new/rcs/src/ident.c line 79
- in /usr/src/new/rcs/src/rcs.c line 217-223(5), 231, 274, 299, 356, 364, 422-427(3), 436, 539, 820, 915, 922, 978, 1109, 1149, 1243, 1270, 1465
- in /usr/src/new/rcs/src/rcsclean.c line 88, 101(2), 112
- in /usr/src/new/rcs/src/rcsdiff.c line 176, 184
- in /usr/src/new/rcs/src/rcsedit.c line 164(2), 186, 192(2), 361, 368, 385
- in /usr/src/new/rcs/src/rcsfcmp.c line 82-84(2), 109-110(2)
- in /usr/src/new/rcs/src/rcsfnms.c line 212-220(3), 235-238(2), 598, 610, 720
- in /usr/src/new/rcs/src/rcsgen.c line 236, 242(2), 261
- in /usr/src/new/rcs/src/rcskeep.c line 99, 131-139(4), 186, 205-210(2), 238(2), 247, 259-262(2)
- in /usr/src/new/rcs/src/rcslex.c line 122, 198, 343, 365, 682
- in /usr/src/new/rcs/src/rcsmerge.c line 81, 110, 118
- in /usr/src/new/rcs/src/rcsrev.c line 300, 316, 322, 601, 613, 623-628(2), 664
- in /usr/src/new/rcs/src/rcssyn.c line 131, 240, 262, 268-272(3), 498
- in /usr/src/new/rcs/src/rcsutil.c line 167, 173, 207, 247
- in /usr/src/new/rcs/src/rlog.c line 174-180(3), 228-232(2), 248-252(2), 259, 422, 494, 911, 1062, 1084-1089(2), 1125

hshsize defined in line 125; used 13 times

- in line 127
- in /usr/src/new/rcs/src/ci.c line 167
- in /usr/src/new/rcs/src/co.c line 137, 517
- in /usr/src/new/rcs/src/rcs.c line 162
- in /usr/src/new/rcs/src/rcsclean.c line 64
- in /usr/src/new/rcs/src/rcsdiff.c line 101
- in /usr/src/new/rcs/src/rcslex.c line 135, 164-168(2), 218
- in /usr/src/new/rcs/src/rcsmerge.c line 75
- in /usr/src/new/rcs/src/rcsrev.c line 647

joinlength defined in line 135; used 2 times

- in /usr/src/new/rcs/src/co.c line 140, 523

keylength defined in line 149; used 8 times

- in /usr/src/new/rcs/src/rcsedit.c line 350, 379
- in /usr/src/new/rcs/src/rcsfcmp.c line 73(2), 97, 103
- in /usr/src/new/rcs/src/rcskeep.c line 90, 105

keyvallength defined in line 150; used 8 times

- in /usr/src/new/rcs/src/ident.c line 130, 137
- in /usr/src/new/rcs/src/rcsedit.c line 351, 394
- in /usr/src/new/rcs/src/rcsfcmp.c line 74(2), 128, 135

logsize defined in line 131; used 15 times

- in /usr/src/new/rcs/src/ci.c line 173, 233-237(4), 926-932(5)
- in /usr/src/new/rcs/src/rcs.c line 834
- in /usr/src/new/rcs/src/rcsgen.c line 102, 189
- in /usr/src/new/rcs/src/rlog.c line 497-498(2)

nil defined in line 157; used 382 times

- in /usr/src/new/rcs/src/ci.c line 191-194(2), 203, 230, 251, 261, 270, 279, 304, 320(2), 326-330(3), 342, 367, 373-375(2), 393-402(5), 414, 545, 555-557(2), 567(3), 573-576(2), 615(3), 628(3), 658, 666, 676, 682-687(2), 697(3), 708-713(2), 737, 744-758(4), 798, 878
- in /usr/src/new/rcs/src/co.c line 156, 165, 200, 216, 223, 229, 247, 266, 274-280(3), 324(2), 452, 464-468(2), 529-530(4), 540-541(4)
- in /usr/src/new/rcs/src/rcs.c line 219-220(3), 227-230(4), 262, 276-282(3), 296, 317, 332, 395, 468-472(2), 478, 491, 502-503(2), 516-521(4), 549, 612-620(3), 645-648(2), 697, 737-741(2), 773, 783, 794, 837, 848, 1044-1045(2), 1053, 1059-1068(3), 1087, 1151(3), 1167, 1191, 1214-1217(4), 1235(3), 1283, 1304, 1345, 1362(3), 1405-1406(3), 1427-1428(3), 1463, 1471, 1484, 1516
- in /usr/src/new/rcs/src/rcsclean.c line 117-125(5)
- in /usr/src/new/rcs/src/rcsdiff.c line 189-202(8)
- in /usr/src/new/rcs/src/rcsedit.c line 111-112(2), 128, 162-163(2), 186, 309, 447, 453
- in /usr/src/new/rcs/src/rcsfnms.c line 118(10), 170, 281-283(2), 317(4), 324, 349-352(2), 391, 738
- in /usr/src/new/rcs/src/rcsgen.c line 132, 148, 155-163(4), 205
- in /usr/src/new/rcs/src/rcskeep.c line 255
- in /usr/src/new/rcs/src/rcskeys.c line 55, 69
- in /usr/src/new/rcs/src/rcslex.c line 120, 132, 170, 219-223(2), 382, 398, 527, 535
- in /usr/src/new/rcs/src/rcsmerge.c line 112, 122-131(8)
- in /usr/src/new/rcs/src/rcsrev.c line 85, 131-132(2), 216-217(2), 347-349(2), 357, 364-375(7), 382-392(6), 398, 406-412(3), 422-435(8), 466-493(16), 504, 513, 519, 525-539(8), 545, 559-564(2), 580, 610, 681-685(5)
- in /usr/src/new/rcs/src/rcssyn.c line 125-133(8), 151-154(4), 187-188(2), 206-207(2), 230-231(2), 277, 285-286(2), 301, 362, 390, 398, 405, 412, 428-436(3), 444, 459
- in /usr/src/new/rcs/src/rcsutil.c line 104, 124-129(2), 135-138(2), 159, 199, 233, 241, 352
- in /usr/src/new/rcs/src/rlog.c line 176-181(5), 249, 262, 273-274(2), 284, 306, 366, 386, 401, 418, 440, 578, 605, 640, 702-712(6), 732, 761, 772, 780, 812-814(2), 821-823(2), 832, 840, 854, 876-881(2), 927, 954, 989, 1058, 1122-1124(3)

putc defined in line 173; used 2 times

- in line 97, 176

revlength defined in line 133; used 27 times

- in line 150
- in /usr/src/new/rcs/src/ci.c line 168-170(2), 653
- in /usr/src/new/rcs/src/co.c line 136, 515(2), 527, 538, 554, 578
- in /usr/src/new/rcs/src/rcs.c line 193
- in /usr/src/new/rcs/src/rcsclean.c line 60-62(2)
- in /usr/src/new/rcs/src/rcsdiff.c line 96-99(2)
- in /usr/src/new/rcs/src/rcskeep.c line 70, 131, 155
- in /usr/src/new/rcs/src/rcsmerge.c line 70-74(2)
- in /usr/src/new/rcs/src/rcsrev.c line 294(2), 345, 460, 642-643(2)

rindex defined in line 101; used 7 times

- in /usr/src/new/rcs/src/rcsfnms.c line 98, 197, 208, 283, 392, 401, 591

strtsize defined in line 127; used 4 times

- in /usr/src/new/rcs/src/rcs.c line 153
- in /usr/src/new/rcs/src/rcslex.c line 129, 290, 310

true defined in line 155; used 149 times

- in /usr/src/new/rcs/src/ci.c line 209-225(5), 259, 277, 335, 362, 462, 558-562(2), 583, 636, 709-714(2), 818-820(2), 950
- in /usr/src/new/rcs/src/co.c line 171-175(2), 183, 191-195(2), 249, 317, 324, 392, 414, 432, 566, 610
- in /usr/src/new/rcs/src/ident.c line 81, 142
- in /usr/src/new/rcs/src/rcs.c line 238-243(2), 249, 274, 287, 312, 327, 347, 372, 393, 401, 436, 454, 484, 684, 828, 1023, 1112, 1119, 1153, 1241, 1268, 1341-1344(2), 1380
- in /usr/src/new/rcs/src/rcsclean.c line 75
- in /usr/src/new/rcs/src/rcsdiff.c line 137, 176
- in /usr/src/new/rcs/src/rcsedit.c line 211, 310, 373
- in /usr/src/new/rcs/src/rcsfcmp.c line 88
- in /usr/src/new/rcs/src/rcsfnms.c line 223-225(2), 241, 595, 607, 726-730(3)
- in /usr/src/new/rcs/src/rcsgen.c line 135, 236-237(2), 258, 307
- in /usr/src/new/rcs/src/rcskeep.c line 116-129(5), 141-155(6), 162-165(2), 182, 223, 249, 255, 263
- in /usr/src/new/rcs/src/rcslex.c line 108, 165, 222, 296, 342, 362, 691
- in /usr/src/new/rcs/src/rcsmerge.c line 86, 110
- in /usr/src/new/rcs/src/rcsrev.c line 582, 595, 618, 632, 689
- in /usr/src/new/rcs/src/rcssyn.c line 242, 270-274(2), 304, 506, 532
- in /usr/src/new/rcs/src/rcsutil.c line 203, 217, 234-244(3)
- in /usr/src/new/rcs/src/rlog.c line 173, 188-222(10), 234, 252, 371-375(2), 507, 919, 925, 994, 1001, 1011, 1026-1033(3), 1054, 1092, 1127

#### Usage of this include

rcsbase.h used 21 times

- in /usr/src/new/rcs/src/ci.c line 110
- in /usr/src/new/rcs/src/co.c line 93
- in /usr/src/new/rcs/src/curdir.c line 34
- in /usr/src/new/rcs/src/ident.c line 58
- in /usr/src/new/rcs/src/maketime.c line 57
- in /usr/src/new/rcs/src/rcs.c line 109
- in /usr/src/new/rcs/src/rcsclean.c line 38
- in /usr/src/new/rcs/src/rcsdiff.c line 71
- in /usr/src/new/rcs/src/rcsedit.c line 95
- in /usr/src/new/rcs/src/rcsfcmp.c line 54
- in /usr/src/new/rcs/src/rcsfnms.c line 93
- in /usr/src/new/rcs/src/rcsgen.c line 79
- in /usr/src/new/rcs/src/rcskeep.c line 59
- in /usr/src/new/rcs/src/rcskeys.c line 40
- in /usr/src/new/rcs/src/rcslex.c line 74
- in /usr/src/new/rcs/src/rcsmerge.c line 52
- in /usr/src/new/rcs/src/rcsrev.c line 64
- in /usr/src/new/rcs/src/rcssyn.c line 88
- in /usr/src/new/rcs/src/rcsutil.c line 83
- in /usr/src/new/rcs/src/rlog.c line 81
- in /usr/src/new/rcs/src/snoop.c line 66

Last modified: 1988-02-18 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 1546 |