1 /*- 2 * Copyright (c) 1992 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Rodney Ruddock of the University of Guelph. 7 * 8 * %sccs.include.redist.c% 9 */ 10 11 #ifndef lint 12 static char sccsid[] = "@(#)a.c 5.2 (Berkeley) 01/23/93"; 13 #endif /* not lint */ 14 15 #include <sys/types.h> 16 17 #include <db.h> 18 #include <regex.h> 19 #include <setjmp.h> 20 #include <stdio.h> 21 22 #include "ed.h" 23 #include "extern.h" 24 25 /* 26 * This sets things up for the central input routine to place the text 27 * at the proper location for an append. 28 */ 29 void 30 a(inputt, errnum) 31 FILE *inputt; 32 int *errnum; 33 { 34 if (rol(inputt, errnum)) 35 return; 36 37 if (g_flag == 0) 38 u_clr_stk(); 39 if (sigint_flag) 40 SIGINT_ACTION; 41 add_flag = 1; 42 input_lines(inputt, errnum); 43 add_flag = 0; 44 } 45