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.3 1994/05/15 22:15:14 rgrimes
35 * To truely have the OLD behavior of RCS by default make the expansion
36 * of $FreeBSD: head/gnu/usr.bin/rcs/lib/rcskeys.c 1764 1994-06-22 00:51:42Z rgrimes $ false by default. This should keep them out
37 * of the pre 2.x repository. (Or at least make them useless in it).
38 *
39 * Revision 1.2 1994/05/14 07:00:23 rgrimes
40 * Add new option -K from David Dawes that allows you to turn on and off
41 * specific keyword substitution during a rcs co command.
42 * Add the new keyword FreeBSD that is IDENTICAL in operation to $Id: rcskeys.c,v 1.3 1994/05/15 22:15:14 rgrimes Exp $.
43 *
44 * Revision 1.1.1.1 1993/06/18 04:22:12 jkh
45 * Updated GNU utilities
46 *
47 * Revision 5.2 1991/08/19 03:13:55 eggert
48 * Say `T const' instead of `const T'; it's less confusing for pointer types.
49 * (This change was made in other source files too.)
50 *
--- 17 unchanged lines hidden (view full) ---
68 * Revision 4.1 83/05/04 10:06:53 wft
69 * Initial revision.
70 *
71 */
72
73
74#include "rcsbase.h"
75
76libId(keysId, "$Id: rcskeys.c,v 1.3 1994/05/15 22:15:14 rgrimes Exp $")
77
78
79char const *const Keyword[] = {
80 /* This must be in the same order as rcsbase.h's enum markers type. */
81 nil,
82 AUTHOR, DATE, HEADER, IDH,
83 LOCKER, LOG, RCSFILE, REVISION, SOURCE, STATE,
84 FREEBSD
85};
86
87
88/* Expand all keywords by default */
89
90static int ExpandKeyword[] = {
91 nil,
92 true, true, true, true,
93 true, true, true, true, true, true,
94 false
95};
96
97 enum markers
98trymatch(string)
99 char const *string;
100/* function: Checks whether string starts with a keyword followed
101 * 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.3 1994/05/15 22:15:14 rgrimes
35 * To truely have the OLD behavior of RCS by default make the expansion
36 * of $FreeBSD: head/gnu/usr.bin/rcs/lib/rcskeys.c 1764 1994-06-22 00:51:42Z rgrimes $ false by default. This should keep them out
37 * of the pre 2.x repository. (Or at least make them useless in it).
38 *
39 * Revision 1.2 1994/05/14 07:00:23 rgrimes
40 * Add new option -K from David Dawes that allows you to turn on and off
41 * specific keyword substitution during a rcs co command.
42 * Add the new keyword FreeBSD that is IDENTICAL in operation to $Id: rcskeys.c,v 1.3 1994/05/15 22:15:14 rgrimes Exp $.
43 *
44 * Revision 1.1.1.1 1993/06/18 04:22:12 jkh
45 * Updated GNU utilities
46 *
47 * Revision 5.2 1991/08/19 03:13:55 eggert
48 * Say `T const' instead of `const T'; it's less confusing for pointer types.
49 * (This change was made in other source files too.)
50 *
--- 17 unchanged lines hidden (view full) ---
68 * Revision 4.1 83/05/04 10:06:53 wft
69 * Initial revision.
70 *
71 */
72
73
74#include "rcsbase.h"
75
76libId(keysId, "$Id: rcskeys.c,v 1.3 1994/05/15 22:15:14 rgrimes Exp $")
77
78
79char const *const Keyword[] = {
80 /* This must be in the same order as rcsbase.h's enum markers type. */
81 nil,
82 AUTHOR, DATE, HEADER, IDH,
83 LOCKER, LOG, RCSFILE, REVISION, SOURCE, STATE,
84 FREEBSD
85};
86
87
88/* Expand all keywords by default */
89
90static int ExpandKeyword[] = {
91 nil,
92 true, true, true, true,
93 true, true, true, true, true, true,
94 false
95};
96
97 enum markers
98trymatch(string)
99 char const *string;
100/* function: Checks whether string starts with a keyword followed
101 * by a KDELIM or a VDELIM.
--- 57 unchanged lines hidden ---