Deleted Added
full compact
rcsedit.c (10) rcsedit.c (1494)
1/*
2 * RCS stream editor
3 */
4/**********************************************************************************
5 * edits the input file according to a
6 * script from stdin, generated by diff -n
7 * performs keyword expansion
8 **********************************************************************************

--- 22 unchanged lines hidden (view full) ---

31Report problems and direct all questions to:
32
33 rcs-bugs@cs.purdue.edu
34
35*/
36
37
38/* $Log: rcsedit.c,v $
1/*
2 * RCS stream editor
3 */
4/**********************************************************************************
5 * edits the input file according to a
6 * script from stdin, generated by diff -n
7 * performs keyword expansion
8 **********************************************************************************

--- 22 unchanged lines hidden (view full) ---

31Report problems and direct all questions to:
32
33 rcs-bugs@cs.purdue.edu
34
35*/
36
37
38/* $Log: rcsedit.c,v $
39 * Revision 1.1.1.1 1993/06/18 04:22:12 jkh
40 * Updated GNU utilities
41 *
39 * Revision 5.11 1991/11/03 01:11:44 eggert
40 * Move the warning about link breaking to where they're actually being broken.
41 *
42 * Revision 5.10 1991/10/07 17:32:46 eggert
43 * Support piece tables even if !has_mmap. Fix rare NFS bugs.
44 *
45 * Revision 5.9 1991/09/17 19:07:40 eggert
46 * SGI readlink() yields ENXIO, not EINVAL, for nonlinks.

--- 102 unchanged lines hidden (view full) ---

149 * changed type of result of getc() from char to int.
150 * made keyword expansion loop in expandline() portable to machines
151 * without sign-extension.
152 */
153
154
155#include "rcsbase.h"
156
42 * Revision 5.11 1991/11/03 01:11:44 eggert
43 * Move the warning about link breaking to where they're actually being broken.
44 *
45 * Revision 5.10 1991/10/07 17:32:46 eggert
46 * Support piece tables even if !has_mmap. Fix rare NFS bugs.
47 *
48 * Revision 5.9 1991/09/17 19:07:40 eggert
49 * SGI readlink() yields ENXIO, not EINVAL, for nonlinks.

--- 102 unchanged lines hidden (view full) ---

152 * changed type of result of getc() from char to int.
153 * made keyword expansion loop in expandline() portable to machines
154 * without sign-extension.
155 */
156
157
158#include "rcsbase.h"
159
157libId(editId, "$Id: rcsedit.c,v 5.11 1991/11/03 01:11:44 eggert Exp $")
160libId(editId, "$Id: rcsedit.c,v 1.1.1.1 1993/06/18 04:22:12 jkh Exp $")
158
159static void keyreplace P((enum markers,struct hshentry const*,FILE*));
160
161
162FILE *fcopy; /* result file descriptor */
163char const *resultfile; /* result file name */
164int locker_expansion; /* should the locker name be appended to Id val? */
165#if !large_memory

--- 788 unchanged lines hidden (view full) ---

954
955 switch (marker) {
956 case Author:
957 aputs(delta->author, out);
958 break;
959 case Date:
960 aputs(date2str(date,datebuf), out);
961 break;
161
162static void keyreplace P((enum markers,struct hshentry const*,FILE*));
163
164
165FILE *fcopy; /* result file descriptor */
166char const *resultfile; /* result file name */
167int locker_expansion; /* should the locker name be appended to Id val? */
168#if !large_memory

--- 788 unchanged lines hidden (view full) ---

957
958 switch (marker) {
959 case Author:
960 aputs(delta->author, out);
961 break;
962 case Date:
963 aputs(date2str(date,datebuf), out);
964 break;
965 /*
966 * The FreeBSD keyword is identical to Id.
967 */
968 case FreeBSD:
962 case Id:
963 case Header:
964 aprintf(out, "%s %s %s %s %s",
969 case Id:
970 case Header:
971 aprintf(out, "%s %s %s %s %s",
965 marker==Id || RCSv972 marker==Id || marker==FreeBSD || RCSv<VERSION(4)
966 ? basename(RCSfilename)
967 : getfullRCSname(),
968 delta->num,
969 date2str(date, datebuf),
970 delta->author,
971 RCSv==VERSION(3) && delta->lockedby ? "Locked"
972 : delta->state
973 );

--- 683 unchanged lines hidden ---
973 ? basename(RCSfilename)
974 : getfullRCSname(),
975 delta->num,
976 date2str(date, datebuf),
977 delta->author,
978 RCSv==VERSION(3) && delta->lockedby ? "Locked"
979 : delta->state
980 );

--- 683 unchanged lines hidden ---