rework initial error handling -- since we check for any screens on
[nvi.git] / ex / ex_source.c
blob232cc30f730ab6f2414a1a27f54a10becf6594e8
1 /*-
2 * Copyright (c) 1992, 1993
3 * The Regents of the University of California. All rights reserved.
5 * %sccs.include.redist.c%
6 */
8 #ifndef lint
9 static char sccsid[] = "$Id: ex_source.c,v 8.3 1993/12/02 10:53:22 bostic Exp $ (Berkeley) $Date: 1993/12/02 10:53:22 $";
10 #endif /* not lint */
12 #include <sys/types.h>
14 #include "vi.h"
15 #include "excmd.h"
18 * ex_source -- :source file
19 * Execute ex commands from a file.
21 int
22 ex_source(sp, ep, cmdp)
23 SCR *sp;
24 EXF *ep;
25 EXCMDARG *cmdp;
27 return (ex_cfile(sp, ep, cmdp->argv[0]->bp));