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: rcsedit.c,v 1.8 1997/02/22 15:47:35 peter Exp $") |
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 Id: |
1052 case LocalId: |
1053 case Header: |
1054 if (marker == Id || RCSv < VERSION(4) || 1055 (marker == LocalId && LocalIdMode == Id)) 1056 escape_string(out, basefilename(RCSname)); 1057 else if (marker == CVSHeader || 1058 (marker == LocalId && LocalIdMode == CVSHeader)) 1059 escape_string(out, getfullCVSname()); 1060 else 1061 escape_string(out, getfullRCSname()); |
1062 aprintf(out, " %s %s %s %s", 1063 delta->num, 1064 date2str(date, datebuf), 1065 delta->author, 1066 RCSv==VERSION(3) && delta->lockedby ? "Locked" 1067 : delta->state 1068 ); 1069 if (delta->lockedby) --- 883 unchanged lines hidden --- |