summaryrefslogtreecommitdiff
path: root/misc/window/files/patch-main.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/window/files/patch-main.c')
-rw-r--r--misc/window/files/patch-main.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/misc/window/files/patch-main.c b/misc/window/files/patch-main.c
new file mode 100644
index 000000000000..6bd3f0963caa
--- /dev/null
+++ b/misc/window/files/patch-main.c
@@ -0,0 +1,33 @@
+--- main.c.orig 2008-07-12 06:05:22 UTC
++++ main.c
+@@ -57,6 +57,30 @@ static char rcsid[] =
+
+ #define next(a) (*++*(a) ? *(a) : (*++(a) ? *(a) : (char *)(uintptr_t)usage()))
+
++struct ww *window[NWINDOW]; /* the windows */
++struct ww *selwin; /* the selected window */
++struct ww *lastselwin; /* the last selected window */
++struct ww *cmdwin; /* the command window */
++struct ww *framewin; /* the window for framing */
++struct ww *boxwin; /* the window for the box */
++struct ww *fgwin; /* the last foreground window */
++
++struct var *alias_head;
++struct var *var_head;
++
++char *default_shell[128]; /* default shell argv */
++char *default_shellfile; /* default shell program */
++int default_nline; /* default buffer size for new windows */
++int default_smooth; /* default "smooth" parameter */
++char escapec; /* the escape character */
++
++struct timeval starttime;
++
++char quit; /* quit command issued */
++char terse; /* terse mode */
++char debug; /* debug mode */
++char incmd; /* in command mode */
++
+ /*ARGSUSED*/
+ main(argc, argv)
+ char **argv;