Deleted Added
sdiff udiff text old ( 22996 ) new ( 25699 )
full compact
1/* RCS stream editor */
2
3/******************************************************************************
4 * edits the input file according to a
5 * script from stdin, generated by diff -n
6 * performs keyword expansion
7 ******************************************************************************
8 */

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

196 * changed type of result of getc() from char to int.
197 * made keyword expansion loop in expandline() portable to machines
198 * without sign-extension.
199 */
200
201
202#include "rcsbase.h"
203
204libId(editId, "$Id$")
205
206static void editEndsPrematurely P((void)) exiting;
207static void editLineNumberOverflow P((void)) exiting;
208static void escape_string P((FILE*,char const*));
209static void keyreplace P((enum markers,struct hshentry const*,int,RILE*,FILE*,int));
210
211FILE *fcopy; /* result file descriptor */
212char const *resultname; /* result pathname */

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

1043
1044 switch (marker) {
1045 case Author:
1046 aputs(delta->author, out);
1047 break;
1048 case Date:
1049 aputs(date2str(date,datebuf), out);
1050 break;
1051 case FreeBSD:
1052 case Id:
1053 case Header:
1054 escape_string(out,
1055 marker==Id || marker==FreeBSD || RCSv<VERSION(4)
1056 ? basefilename(RCSname)
1057 : getfullRCSname()
1058 );
1059 aprintf(out, " %s %s %s %s",
1060 delta->num,
1061 date2str(date, datebuf),
1062 delta->author,
1063 RCSv==VERSION(3) && delta->lockedby ? "Locked"
1064 : delta->state
1065 );
1066 if (delta->lockedby)

--- 883 unchanged lines hidden ---