xref: /original-bsd/contrib/ed/a.c (revision abb91716)
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.1 (Berkeley) 01/23/93";
13 #endif /* not lint */
14 
15 #include "ed.h"
16 
17 /*
18  * This sets things up for the central input routine to place the text
19  * at the proper location for an append.
20  */
21 
22 void
23 a(inputt, errnum)
24 
25 FILE *inputt;
26 int *errnum;
27 
28 {
29   if (rol(inputt, errnum))
30     return;
31 
32   if (g_flag == 0)
33     u_clr_stk();
34   if (sigint_flag)
35     SIGINT_ACTION;
36   add_flag = 1;
37   input_lines(inputt, errnum);
38   add_flag = 0;
39 } /* end-a */
40