]>
git.saurik.com Git - apple/shell_cmds.git/blob - window/defs.h
1 /* $NetBSD: defs.h,v 1.4 1997/11/21 08:35:59 lukem Exp $ */
4 * Copyright (c) 1983, 1993
5 * The Regents of the University of California. All rights reserved.
7 * This code is derived from software contributed to Berkeley by
8 * Edward Wang at The University of California, Berkeley.
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in the
17 * documentation and/or other materials provided with the distribution.
18 * 3. All advertising materials mentioning features or use of this software
19 * must display the following acknowledgement:
20 * This product includes software developed by the University of
21 * California, Berkeley and its contributors.
22 * 4. Neither the name of the University nor the names of its contributors
23 * may be used to endorse or promote products derived from this software
24 * without specific prior written permission.
26 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
27 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
30 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
38 * @(#)defs.h 8.1 (Berkeley) 6/6/93
51 EXTERN
struct timeval starttime
;
53 EXTERN
struct ww
*window
[NWINDOW
]; /* the windows */
54 EXTERN
struct ww
*selwin
; /* the selected window */
55 EXTERN
struct ww
*lastselwin
; /* the last selected window */
56 EXTERN
struct ww
*cmdwin
; /* the command window */
57 EXTERN
struct ww
*framewin
; /* the window for framing */
58 EXTERN
struct ww
*boxwin
; /* the window for the box */
59 EXTERN
struct ww
*fgwin
; /* the last foreground window */
61 #define isfg(w) ((w)->ww_order <= fgwin->ww_order)
63 EXTERN
char *default_shell
[128]; /* default shell argv */
64 EXTERN
char *default_shellfile
; /* default shell program */
65 EXTERN
int default_nline
; /* default buffer size for new windows */
66 EXTERN
int default_smooth
; /* default "smooth" parameter */
67 EXTERN
char escapec
; /* the escape character */
70 EXTERN
char quit
; /* quit command issued */
71 EXTERN
char terse
; /* terse mode */
72 EXTERN
char debug
; /* debug mode */
73 EXTERN
char incmd
; /* in command mode */
75 void addwin
__P((struct ww
*, char));
76 int ccinit
__P((void));
77 void ccend
__P((void));
78 void ccflush
__P((void));
79 void ccreset
__P((void));
80 void ccstart
__P((void));
81 void c_colon
__P((void));
82 void c_debug
__P((void));
83 void c_help
__P((void));
84 void c_move
__P((struct ww
*));
85 void c_put
__P((void));
86 void c_quit
__P((void));
87 void c_size
__P((struct ww
*));
88 void c_window
__P((void));
89 void c_yank
__P((void));
90 void closeiwin
__P((struct ww
*));
91 void closewin
__P((struct ww
*));
92 void closewin1
__P((struct ww
*));
93 int cx_beginbuf
__P((char *, struct value
*, int));
94 int cx_beginfile
__P((char *));
95 void cx_end
__P((void));
96 void deletewin
__P((struct ww
*));
97 void docmd
__P((void));
98 int doconfig
__P((void));
99 void dodefault
__P((void));
100 int dolongcmd
__P((char *, struct value
*, int));
101 int dosource
__P((char *));
102 void error
__P((const char *, ...));
103 void err_end
__P((void));
104 int findid
__P((void));
105 struct ww
*findselwin
__P((void));
106 void front
__P((struct ww
*, char));
107 int getpos
__P((int *, int *, int, int, int, int));
108 struct ww
*getwin
__P((void));
109 void labelwin
__P((struct ww
*));
110 void mloop
__P((void));
111 int more
__P((struct ww
*, char));
112 void movewin
__P((struct ww
*, int, int));
113 struct ww
*openwin
__P((int, int, int, int, int, int, char *, int, int,
115 struct ww
*openiwin
__P((int, char *));
116 void p_memerror
__P((void));
117 void p_start
__P((void));
118 void reframe
__P((void));
119 void setcmd
__P((char));
120 void setescape
__P((char *));
121 int setlabel
__P((struct ww
*, char *));
122 void setselwin
__P((struct ww
*));
123 void setterse
__P((char));
124 void setvars
__P((void));
125 void sizewin
__P((struct ww
*, int, int));
126 void startwin
__P((struct ww
*));
127 void stopwin
__P((struct ww
*));
128 int s_gettok
__P((void));
129 void verror
__P((const char *, va_list));
130 void waitnl
__P((struct ww
*));
131 int waitnl1
__P((struct ww
*, char *));