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 */
--- 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 5.19 1995/06/16 06:19:24 eggert
40 * Update FSF address.
41 *
42 * Revision 5.18 1995/06/01 16:23:43 eggert
43 * (dirtpname): No longer external.
44 * (do_link): Simplify logic.
45 * (finisheditline, finishedit): Replace Iseek/Itell with what they stand for.
46 * (fopen_update_truncate): Replace `#if' with `if'.
--- 150 unchanged lines hidden (view full) ---
197 * changed type of result of getc() from char to int.
198 * made keyword expansion loop in expandline() portable to machines
199 * without sign-extension.
200 */
201
202
203#include "rcsbase.h"
204
205libId(editId, "$Id: rcsedit.c,v 5.19 1995/06/16 06:19:24 eggert Exp $")
206
207static void editEndsPrematurely P((void)) exiting;
208static void editLineNumberOverflow P((void)) exiting;
209static void escape_string P((FILE*,char const*));
210static void keyreplace P((enum markers,struct hshentry const*,int,RILE*,FILE*,int));
211
212FILE *fcopy; /* result file descriptor */
213char const *resultname; /* result pathname */
--- 830 unchanged lines hidden (view full) ---
1044
1045 switch (marker) {
1046 case Author:
1047 aputs(delta->author, out);
1048 break;
1049 case Date:
1050 aputs(date2str(date,datebuf), out);
1051 break;
1052 case Id:
1053 case Header:
1054 escape_string(out,
1055 marker==Id || RCSv 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"
--- 886 unchanged lines hidden ---
2
3/******************************************************************************
4 * edits the input file according to a
5 * script from stdin, generated by diff -n
6 * performs keyword expansion
7 ******************************************************************************
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 5.19 1995/06/16 06:19:24 eggert
40 * Update FSF address.
41 *
42 * Revision 5.18 1995/06/01 16:23:43 eggert
43 * (dirtpname): No longer external.
44 * (do_link): Simplify logic.
45 * (finisheditline, finishedit): Replace Iseek/Itell with what they stand for.
46 * (fopen_update_truncate): Replace `#if' with `if'.
--- 150 unchanged lines hidden (view full) ---
197 * changed type of result of getc() from char to int.
198 * made keyword expansion loop in expandline() portable to machines
199 * without sign-extension.
200 */
201
202
203#include "rcsbase.h"
204
205libId(editId, "$Id: rcsedit.c,v 5.19 1995/06/16 06:19:24 eggert Exp $")
206
207static void editEndsPrematurely P((void)) exiting;
208static void editLineNumberOverflow P((void)) exiting;
209static void escape_string P((FILE*,char const*));
210static void keyreplace P((enum markers,struct hshentry const*,int,RILE*,FILE*,int));
211
212FILE *fcopy; /* result file descriptor */
213char const *resultname; /* result pathname */
--- 830 unchanged lines hidden (view full) ---
1044
1045 switch (marker) {
1046 case Author:
1047 aputs(delta->author, out);
1048 break;
1049 case Date:
1050 aputs(date2str(date,datebuf), out);
1051 break;
1052 case Id:
1053 case Header:
1054 escape_string(out,
1055 marker==Id || RCSv
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"
--- 886 unchanged lines hidden ---