2 * Copyright (c) 1992, 1993, 1994
3 * The Regents of the University of California. All rights reserved.
4 * Copyright (c) 1992, 1993, 1994, 1995, 1996
5 * Keith Bostic. All rights reserved.
7 * See the LICENSE file for redistribution information.
12 #include <sys/types.h>
13 #include <sys/queue.h>
16 #include <bitstring.h>
20 #include "../common/common.h"
26 * PUBLIC: int ex_quit(SCR *, EXCMD *);
29 ex_quit(SCR *sp, EXCMD *cmdp)
33 force = FL_ISSET(cmdp->iflags, E_C_FORCE);
35 /* Check for file modifications, or more files to edit. */
36 if (file_m2(sp, force) || ex_ncheck(sp, force))
39 F_SET(sp, force ? SC_EXIT_FORCE : SC_EXIT);