1/*
2 * RCS keyword table and match operation
3 */
4
5/* Copyright (C) 1982, 1988, 1989 Walter Tichy
6 Copyright 1990, 1991 by Paul Eggert
7 Distributed under license by the Free Software Foundation, Inc.
8
--- 17 unchanged lines hidden (view full) ---
26
27 rcs-bugs@cs.purdue.edu
28
29*/
30
31
32
33/* $Log: rcskeys.c,v $
34 * Revision 1.2 1994/05/14 07:00:23 rgrimes
35 * Add new option -K from David Dawes that allows you to turn on and off
36 * specific keyword substitution during a rcs co command.
37 * Add the new keyword FreeBSD that is IDENTICAL in operation to $Id$.
38 *
39 * Revision 1.1.1.1 1993/06/18 04:22:12 jkh
40 * Updated GNU utilities
41 *
42 * Revision 5.2 1991/08/19 03:13:55 eggert
43 * Say `T const' instead of `const T'; it's less confusing for pointer types.
44 * (This change was made in other source files too.)
45 *
--- 17 unchanged lines hidden (view full) ---
63 * Revision 4.1 83/05/04 10:06:53 wft
64 * Initial revision.
65 *
66 */
67
68
69#include "rcsbase.h"
70
71libId(keysId, "$Id: rcskeys.c,v 1.2 1994/05/14 07:00:23 rgrimes Exp $")
72
73
74char const *const Keyword[] = {
75 /* This must be in the same order as rcsbase.h's enum markers type. */
76 nil,
77 AUTHOR, DATE, HEADER, IDH,
78 LOCKER, LOG, RCSFILE, REVISION, SOURCE, STATE,
79 FREEBSD
80};
81
82
83/* Expand all keywords by default */
84
85static int ExpandKeyword[] = {
86 nil,
87 true, true, true, true,
88 true, true, true, true, true, true, true,
89 false
90};
91
92 enum markers
93trymatch(string)
94 char const *string;
95/* function: Checks whether string starts with a keyword followed
96 * by a KDELIM or a VDELIM.
--- 57 unchanged lines hidden ---
2 * RCS keyword table and match operation
3 */
4
5/* Copyright (C) 1982, 1988, 1989 Walter Tichy
6 Copyright 1990, 1991 by Paul Eggert
7 Distributed under license by the Free Software Foundation, Inc.
8
--- 17 unchanged lines hidden (view full) ---
26
27 rcs-bugs@cs.purdue.edu
28
29*/
30
31
32
33/* $Log: rcskeys.c,v $
34 * Revision 1.2 1994/05/14 07:00:23 rgrimes
35 * Add new option -K from David Dawes that allows you to turn on and off
36 * specific keyword substitution during a rcs co command.
37 * Add the new keyword FreeBSD that is IDENTICAL in operation to $Id$.
38 *
39 * Revision 1.1.1.1 1993/06/18 04:22:12 jkh
40 * Updated GNU utilities
41 *
42 * Revision 5.2 1991/08/19 03:13:55 eggert
43 * Say `T const' instead of `const T'; it's less confusing for pointer types.
44 * (This change was made in other source files too.)
45 *
--- 17 unchanged lines hidden (view full) ---
63 * Revision 4.1 83/05/04 10:06:53 wft
64 * Initial revision.
65 *
66 */
67
68
69#include "rcsbase.h"
70
71libId(keysId, "$Id: rcskeys.c,v 1.2 1994/05/14 07:00:23 rgrimes Exp $")
72
73
74char const *const Keyword[] = {
75 /* This must be in the same order as rcsbase.h's enum markers type. */
76 nil,
77 AUTHOR, DATE, HEADER, IDH,
78 LOCKER, LOG, RCSFILE, REVISION, SOURCE, STATE,
79 FREEBSD
80};
81
82
83/* Expand all keywords by default */
84
85static int ExpandKeyword[] = {
86 nil,
87 true, true, true, true,
88 true, true, true, true, true, true, true,
89 false
90};
91
92 enum markers
93trymatch(string)
94 char const *string;
95/* function: Checks whether string starts with a keyword followed
96 * by a KDELIM or a VDELIM.
--- 57 unchanged lines hidden ---