summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-01-17 15:45:25 +0100
committerBram Moolenaar <Bram@vim.org>2019-01-17 15:45:25 +0100
commitbb1969b6ab28120c93b77817e7b6075e1aecf663 (patch)
treeaaf6408f1b42e6edae706eaa69b009138c14ad74 /src
parente40742526e6ea272c64ca393d7364e4023f4122c (diff)
patch 8.1.0763: nobody is using the Sun Workshop supportv8.1.0763
Problem: Nobody is using the Sun Workshop support. Solution: Remove the Workshop support.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile42
-rwxr-xr-xsrc/auto/configure27
-rw-r--r--src/beval.c4
-rw-r--r--src/buffer.c5
-rw-r--r--src/config.h.in3
-rw-r--r--src/config.mk.in3
-rw-r--r--src/configure.ac16
-rw-r--r--src/evalfunc.c3
-rw-r--r--src/ex_cmdidxs.h10
-rw-r--r--src/ex_cmds.c14
-rw-r--r--src/ex_cmds.h3
-rw-r--r--src/ex_docmd.c3
-rw-r--r--src/feature.h32
-rw-r--r--src/fileio.c5
-rw-r--r--src/globals.h11
-rw-r--r--src/gui.c21
-rw-r--r--src/gui_beval.c5
-rw-r--r--src/gui_motif.c3
-rw-r--r--src/gui_x11.c51
-rw-r--r--src/integration.c1112
-rw-r--r--src/integration.h452
-rw-r--r--src/main.c8
-rw-r--r--src/misc2.c2
-rw-r--r--src/nbdebug.c2
-rw-r--r--src/netbeans.c2
-rw-r--r--src/proto.h3
-rw-r--r--src/proto/workshop.pro49
-rw-r--r--src/ui.c5
-rw-r--r--src/version.c6
-rw-r--r--src/vim.h12
-rw-r--r--src/workshop.c1830
-rw-r--r--src/workshop.h28
-rw-r--r--src/wsdebug.c184
-rw-r--r--src/wsdebug.h81
34 files changed, 37 insertions, 4000 deletions
diff --git a/src/Makefile b/src/Makefile
index cf409bd49a..23f01c38bc 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -317,7 +317,7 @@ CClink = $(CC)
# You can give a lot of options to configure.
# Change this to your desire and do 'make config' afterwards
-# examples:
+# examples you can uncomment:
#CONF_ARGS1 = --exec-prefix=/usr
#CONF_ARGS2 = --with-vim-name=vim8 --with-ex-name=ex8 --with-view-name=view8
#CONF_ARGS3 = --with-global-runtime=/etc/vim,/usr/share/vim
@@ -781,7 +781,7 @@ SANITIZER_LIBS = $(SANITIZER_CFLAGS)
#CC = /usr/ucb/cc
#EXTRA_LIBS = -R/usr/ucblib
-### Solaris with Forte Developer and FEAT_SUN_WORKSHOP
+### Solaris with Forte Developer and NetBeans.
# The Xpm library is available from http://koala.ilog.fr/ftp/pub/xpm.
#CC = cc
#XPM_DIR = /usr/local/xpm/xpm-3.4k-solaris
@@ -791,10 +791,6 @@ SANITIZER_LIBS = $(SANITIZER_CFLAGS)
#EXTRA_IPATHS = $(XPM_IPATH)
#EXTRA_DEFS = -xCC -DHAVE_X11_XPM_H
-### Solaris with workshop compilers: Vim is unstable when compiled with
-# "-fast". Use this instead. (Shea Martin)
-#CFLAGS = -x02 -xtarget=ultra
-
### (R) for Solaris 2.5 (or 2.5.1) with gcc > 2.5.6 you might need this:
#LDFLAGS = -lw -ldl -lXmu
#GUI_LIB_LOC = -L/usr/local/lib
@@ -1651,14 +1647,11 @@ SRC = $(BASIC_SRC) \
$(PERL_SRC) \
$(PYTHON_SRC) $(PYTHON3_SRC) \
$(TCL_SRC) \
- $(RUBY_SRC) \
- $(WORKSHOP_SRC) \
- $(WSDEBUG_SRC)
+ $(RUBY_SRC)
EXTRA_SRC = hangulin.c if_lua.c if_mzsch.c auto/if_perl.c if_perlsfio.c \
if_python.c if_python3.c if_tcl.c if_ruby.c \
- gui_beval.c workshop.c wsdebug.c integration.c \
- netbeans.c channel.c \
+ gui_beval.c netbeans.c channel.c \
$(GRESOURCE_SRC)
# Unittest files
@@ -1684,7 +1677,6 @@ ALL_SRC = $(BASIC_SRC) $(ALL_GUI_SRC) $(UNITTEST_SRC) \
# The perl sources also don't work well with lint.
LINT_SRC = $(BASIC_SRC) $(GUI_SRC) $(HANGULIN_SRC) \
$(PYTHON_SRC) $(PYTHON3_SRC) $(TCL_SRC) \
- $(WORKSHOP_SRC) $(WSDEBUG_SRC) \
$(NETBEANS_SRC) $(CHANNEL_SRC) $(TERM_SRC)
#LINT_SRC = $(SRC)
#LINT_SRC = $(ALL_SRC)
@@ -1761,11 +1753,9 @@ OBJ_COMMON = \
$(TCL_OBJ) \
$(RUBY_OBJ) \
$(OS_EXTRA_OBJ) \
- $(WORKSHOP_OBJ) \
$(NETBEANS_OBJ) \
$(CHANNEL_OBJ) \
- $(XDIFF_OBJS) \
- $(WSDEBUG_OBJ)
+ $(XDIFF_OBJS)
# The files included by tests are not in OBJ_COMMON.
OBJ_MAIN = \
@@ -1889,7 +1879,6 @@ PRO_AUTO = \
window.pro \
beval.pro \
gui_beval.pro \
- workshop.pro \
netbeans.pro \
channel.pro \
$(ALL_GUI_PRO) \
@@ -1932,7 +1921,7 @@ config auto/config.mk: auto/configure config.mk.in config.h.in
$(CONF_OPT_PERL) $(CONF_OPT_PYTHON) $(CONF_OPT_PYTHON3) \
$(CONF_OPT_TCL) $(CONF_OPT_RUBY) $(CONF_OPT_NLS) \
$(CONF_OPT_CSCOPE) $(CONF_OPT_MULTIBYTE) $(CONF_OPT_INPUT) \
- $(CONF_OPT_OUTPUT) $(CONF_OPT_GPM) $(CONF_OPT_WORKSHOP) \
+ $(CONF_OPT_OUTPUT) $(CONF_OPT_GPM) \
$(CONF_OPT_FEAT) $(CONF_TERM_LIB) \
$(CONF_OPT_COMPBY) $(CONF_OPT_ACL) $(CONF_OPT_NETBEANS) \
$(CONF_OPT_CHANNEL) $(CONF_OPT_TERMINAL) \
@@ -3098,9 +3087,6 @@ objects/if_ruby.o: if_ruby.c
objects/if_tcl.o: if_tcl.c
$(CCC_NF) $(TCL_CFLAGS) $(ALL_CFLAGS) -o $@ if_tcl.c
-objects/integration.o: integration.c
- $(CCC) -o $@ integration.c
-
objects/json.o: json.c
$(CCC) -o $@ json.c
@@ -3239,12 +3225,6 @@ objects/userfunc.o: userfunc.c
objects/window.o: window.c
$(CCC) -o $@ window.c
-objects/workshop.o: workshop.c
- $(CCC) -o $@ workshop.c
-
-objects/wsdebug.o: wsdebug.c
- $(CCC) -o $@ wsdebug.c
-
objects/netbeans.o: netbeans.c
$(CCC) -o $@ netbeans.c
@@ -3784,16 +3764,6 @@ objects/gui_beval.o: gui_beval.c vim.h protodef.h auto/config.h feature.h \
os_unix.h auto/osdef.h ascii.h keymap.h term.h macros.h option.h beval.h \
proto/gui_beval.pro structs.h regexp.h gui.h alloc.h ex_cmds.h spell.h \
proto.h globals.h farsi.h arabic.h
-objects/workshop.o: workshop.c protodef.h auto/config.h integration.h vim.h \
- feature.h os_unix.h auto/osdef.h ascii.h keymap.h term.h macros.h \
- option.h beval.h proto/gui_beval.pro structs.h regexp.h gui.h alloc.h \
- ex_cmds.h spell.h proto.h globals.h farsi.h arabic.h version.h \
- workshop.h
-objects/wsdebug.o: wsdebug.c
-objects/integration.o: integration.c vim.h protodef.h auto/config.h feature.h \
- os_unix.h auto/osdef.h ascii.h keymap.h term.h macros.h option.h beval.h \
- proto/gui_beval.pro structs.h regexp.h gui.h alloc.h ex_cmds.h spell.h \
- proto.h globals.h farsi.h arabic.h integration.h
objects/netbeans.o: netbeans.c vim.h protodef.h auto/config.h feature.h os_unix.h \
auto/osdef.h ascii.h keymap.h term.h macros.h option.h beval.h \
proto/gui_beval.pro structs.h regexp.h gui.h alloc.h ex_cmds.h spell.h \
diff --git a/src/auto/configure b/src/auto/configure
index 4629b12485..0431addf0f 100755
--- a/src/auto/configure
+++ b/src/auto/configure
@@ -661,8 +661,6 @@ CHANNEL_OBJ
CHANNEL_SRC
NETBEANS_OBJ
NETBEANS_SRC
-WORKSHOP_OBJ
-WORKSHOP_SRC
RUBY_LIBS
RUBY_CFLAGS
RUBY_PRO
@@ -812,7 +810,6 @@ with_tclsh
enable_rubyinterp
with_ruby_command
enable_cscope
-enable_workshop
enable_netbeans
enable_channel
enable_terminal
@@ -1494,7 +1491,6 @@ Optional Features:
--enable-tclinterp=OPTS Include Tcl interpreter. default=no OPTS=no/yes/dynamic
--enable-rubyinterp=OPTS Include Ruby interpreter. default=no OPTS=no/yes/dynamic
--enable-cscope Include cscope interface.
- --enable-workshop Include Sun Visual Workshop support.
--disable-netbeans Disable NetBeans integration support.
--disable-channel Disable process communication support.
--enable-terminal Enable terminal emulation support.
@@ -7665,29 +7661,6 @@ if test "$enable_cscope" = "yes"; then
fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-workshop argument" >&5
-$as_echo_n "checking --enable-workshop argument... " >&6; }
-# Check whether --enable-workshop was given.
-if test "${enable_workshop+set}" = set; then :
- enableval=$enable_workshop;
-else
- enable_workshop="no"
-fi
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_workshop" >&5
-$as_echo "$enable_workshop" >&6; }
-if test "$enable_workshop" = "yes"; then
- $as_echo "#define FEAT_SUN_WORKSHOP 1" >>confdefs.h
-
- WORKSHOP_SRC="workshop.c integration.c"
-
- WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
-
- if test "${enable_gui-xxx}" = xxx; then
- enable_gui=motif
- fi
-fi
-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-netbeans argument" >&5
$as_echo_n "checking --disable-netbeans argument... " >&6; }
# Check whether --enable-netbeans was given.
diff --git a/src/beval.c b/src/beval.c
index 3025b2cc97..c5fa22014f 100644
--- a/src/beval.c
+++ b/src/beval.c
@@ -273,10 +273,6 @@ general_beval_cb(BalloonEval *beval, int state UNUSED)
if (bevalServers & BEVAL_NETBEANS)
netbeans_beval_cb(beval, state);
#endif
-#ifdef FEAT_SUN_WORKSHOP
- if (bevalServers & BEVAL_WORKSHOP)
- workshop_beval_cb(beval, state);
-#endif
recursive = FALSE;
}
diff --git a/src/buffer.c b/src/buffer.c
index 6bacb16384..c22773f7a4 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -658,11 +658,6 @@ aucmd_abort:
*/
if (wipe_buf)
{
-#ifdef FEAT_SUN_WORKSHOP
- if (usingSunWorkShop)
- workshop_file_closed_lineno((char *)buf->b_ffname,
- (int)buf->b_last_cursor.lnum);
-#endif
if (buf->b_sfname != buf->b_ffname)
VIM_CLEAR(buf->b_sfname);
else
diff --git a/src/config.h.in b/src/config.h.in
index 4a5cb099e4..9a7ba51efc 100644
--- a/src/config.h.in
+++ b/src/config.h.in
@@ -441,9 +441,6 @@
/* Define if we have shl_load() */
#undef HAVE_SHL_LOAD
-/* Define if you want to include Sun Visual Workshop support. */
-#undef FEAT_SUN_WORKSHOP
-
/* Define if you want to include NetBeans integration. */
#undef FEAT_NETBEANS_INTG
diff --git a/src/config.mk.in b/src/config.mk.in
index 84c1590928..b5d1ebd9b7 100644
--- a/src/config.mk.in
+++ b/src/config.mk.in
@@ -81,9 +81,6 @@ TCL_LIBS = @TCL_LIBS@
HANGULIN_SRC = @HANGULIN_SRC@
HANGULIN_OBJ = @HANGULIN_OBJ@
-WORKSHOP_SRC = @WORKSHOP_SRC@
-WORKSHOP_OBJ = @WORKSHOP_OBJ@
-
NETBEANS_SRC = @NETBEANS_SRC@
NETBEANS_OBJ = @NETBEANS_OBJ@
CHANNEL_SRC = @CHANNEL_SRC@
diff --git a/src/configure.ac b/src/configure.ac
index 39237b9081..2dcfe46cb3 100644
--- a/src/configure.ac
+++ b/src/configure.ac
@@ -1996,22 +1996,6 @@ if test "$enable_cscope" = "yes"; then
AC_DEFINE(FEAT_CSCOPE)
fi
-AC_MSG_CHECKING(--enable-workshop argument)
-AC_ARG_ENABLE(workshop,
- [ --enable-workshop Include Sun Visual Workshop support.], ,
- [enable_workshop="no"])
-AC_MSG_RESULT($enable_workshop)
-if test "$enable_workshop" = "yes"; then
- AC_DEFINE(FEAT_SUN_WORKSHOP)
- WORKSHOP_SRC="workshop.c integration.c"
- AC_SUBST(WORKSHOP_SRC)
- WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
- AC_SUBST(WORKSHOP_OBJ)
- if test "${enable_gui-xxx}" = xxx; then
- enable_gui=motif
- fi
-fi
-
AC_MSG_CHECKING(--disable-netbeans argument)
AC_ARG_ENABLE(netbeans,
[ --disable-netbeans Disable NetBeans integration support.],
diff --git a/src/evalfunc.c b/src/evalfunc.c
index 830700eaa4..1bdb722635 100644
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -6512,9 +6512,6 @@ f_has(typval_T *argvars, typval_T *rettv)
#ifdef FEAT_STL_OPT
"statusline",
#endif
-#ifdef FEAT_SUN_WORKSHOP
- "sun_workshop",
-#endif
#ifdef FEAT_NETBEANS_INTG
"netbeans_intg",
#endif
diff --git a/src/ex_cmdidxs.h b/src/ex_cmdidxs.h
index 8b7c85c0ce..867047f67a 100644
--- a/src/ex_cmdidxs.h
+++ b/src/ex_cmdidxs.h
@@ -28,9 +28,9 @@ static const unsigned short cmdidxs1[26] =
/* u */ 481,
/* v */ 492,
/* w */ 510,
- /* x */ 525,
- /* y */ 534,
- /* z */ 535
+ /* x */ 524,
+ /* y */ 533,
+ /* z */ 534
};
/*
@@ -63,10 +63,10 @@ static const unsigned char cmdidxs2[26][26] =
/* t */ { 2, 0, 19, 0, 22, 24, 0, 25, 0, 26, 0, 27, 31, 34, 36, 37, 0, 38, 40, 0, 41, 0, 0, 0, 0, 0 },
/* u */ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
/* v */ { 0, 0, 0, 0, 1, 0, 0, 0, 4, 0, 0, 0, 9, 12, 0, 0, 0, 0, 15, 0, 16, 0, 0, 0, 0, 0 },
- /* w */ { 2, 0, 0, 0, 0, 0, 0, 3, 4, 0, 0, 0, 0, 8, 0, 9, 10, 0, 12, 0, 13, 14, 0, 0, 0, 0 },
+ /* w */ { 2, 0, 0, 0, 0, 0, 0, 3, 4, 0, 0, 0, 0, 8, 0, 9, 10, 0, 0, 0, 12, 13, 0, 0, 0, 0 },
/* x */ { 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 5, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0 },
/* y */ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
/* z */ { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
};
-static const int command_count = 548;
+static const int command_count = 547;
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index ddcd6107cd..25322c2bd8 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -3805,9 +3805,6 @@ do_ecmd(
int newcol = -1;
int solcol = -1;
pos_T *pos;
-#ifdef FEAT_SUN_WORKSHOP
- char_u *cp;
-#endif
char_u *command = NULL;
#ifdef FEAT_SPELL
int did_get_winopts = FALSE;
@@ -3881,11 +3878,6 @@ do_ecmd(
if (free_fname != NULL)
ffname = free_fname;
other_file = otherfile(ffname);
-#ifdef FEAT_SUN_WORKSHOP
- if (usingSunWorkShop && p_acd
- && (cp = vim_strrchr(sfname, '/')) != NULL)
- sfname = ++cp;
-#endif
}
}
@@ -4457,13 +4449,9 @@ do_ecmd(
}
#endif
-#if defined(FEAT_SUN_WORKSHOP) || defined(FEAT_NETBEANS_INTG)
+#if defined(FEAT_NETBEANS_INTG)
if (curbuf->b_ffname != NULL)
{
-# ifdef FEAT_SUN_WORKSHOP
- if (gui.in_use && usingSunWorkShop)
- workshop_file_opened((char *)curbuf->b_ffname, curbuf->b_p_ro);
-# endif
# ifdef FEAT_NETBEANS_INTG
if ((flags & ECMD_SET_HELP) != ECMD_SET_HELP)
netbeans_file_opened(curbuf);
diff --git a/src/ex_cmds.h b/src/ex_cmds.h
index a419a0508b..078af19af5 100644
--- a/src/ex_cmds.h
+++ b/src/ex_cmds.h
@@ -1670,9 +1670,6 @@ EX(CMD_wq, "wq", ex_exit,
EX(CMD_wqall, "wqall", do_wqall,
BANG|FILE1|ARGOPT|DFLALL|TRLBAR,
ADDR_LINES),
-EX(CMD_wsverb, "wsverb", ex_wsverb,
- EXTRA|NOTADR|NEEDARG,
- ADDR_LINES),
EX(CMD_wundo, "wundo", ex_wundo,
BANG|NEEDARG|FILE1,
ADDR_LINES),
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index 7dc805ec1e..97976442eb 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -411,9 +411,6 @@ static void ex_folddo(exarg_T *eap);
#ifndef FEAT_SIGNS
# define ex_sign ex_ni
#endif
-#ifndef FEAT_SUN_WORKSHOP
-# define ex_wsverb ex_ni
-#endif
#ifndef FEAT_NETBEANS_INTG
# define ex_nbclose ex_ni
# define ex_nbkey ex_ni
diff --git a/src/feature.h b/src/feature.h
index c2e1dd47e4..d5a6853388 100644
--- a/src/feature.h
+++ b/src/feature.h
@@ -1232,7 +1232,6 @@
* +perl Perl interface: "--enable-perlinterp"
* +python Python interface: "--enable-pythoninterp"
* +tcl TCL interface: "--enable-tclinterp"
- * +sun_workshop Sun Workshop integration
* +netbeans_intg Netbeans integration
* +channel Inter process communication
*/
@@ -1244,13 +1243,6 @@
*/
/*
- * The Sun Workshop features currently only work with Motif.
- */
-#if !defined(FEAT_GUI_MOTIF) && defined(FEAT_SUN_WORKSHOP)
-# undef FEAT_SUN_WORKSHOP
-#endif
-
-/*
* The Netbeans feature requires +eval.
*/
#if !defined(FEAT_EVAL) && defined(FEAT_NETBEANS_INTG)
@@ -1279,8 +1271,7 @@
* +signs Allow signs to be displayed to the left of text lines.
* Adds the ":sign" command.
*/
-#if defined(FEAT_BIG) || defined(FEAT_SUN_WORKSHOP) \
- || defined(FEAT_NETBEANS_INTG)
+#if defined(FEAT_BIG) || defined(FEAT_NETBEANS_INTG)
# define FEAT_SIGNS
# if ((defined(FEAT_GUI_MOTIF) || defined(FEAT_GUI_ATHENA)) \
&& defined(HAVE_X11_XPM_H)) \
@@ -1299,7 +1290,6 @@
|| defined(FEAT_GUI_GTK) || defined(FEAT_GUI_W32)) \
&& ( ((defined(FEAT_TOOLBAR) || defined(FEAT_GUI_TABLINE)) \
&& !defined(FEAT_GUI_GTK) && !defined(FEAT_GUI_W32)) \
- || defined(FEAT_SUN_WORKSHOP) \
|| defined(FEAT_NETBEANS_INTG) || defined(FEAT_EVAL))
# define FEAT_BEVAL_GUI
# if !defined(FEAT_XFONTSET) && !defined(FEAT_GUI_GTK) \
@@ -1329,37 +1319,25 @@
# define FEAT_GUI_X11
#endif
-#if defined(FEAT_SUN_WORKSHOP) || defined(FEAT_NETBEANS_INTG)
-/*
- * The following features are (currently) only used by Sun Visual WorkShop 6
- * and NetBeans. These features could be used with other integrations with
- * debuggers so I've used separate feature defines.
- */
+#if defined(FEAT_NETBEANS_INTG)
+// NetBeans uses menus.
# if !defined(FEAT_MENU)
# define FEAT_MENU
# endif
#endif
-#if defined(FEAT_SUN_WORKSHOP)
-/*
- * Use an alternative method of X input for a secondary
- * command input.
- */
-# define ALT_X_INPUT
-
+#if 0
/*
* +footer Motif only: Add a message area at the bottom of the
* main window area.
*/
# define FEAT_FOOTER
-
#endif
/*
* +autochdir 'autochdir' option.
*/
-#if defined(FEAT_SUN_WORKSHOP) || defined(FEAT_NETBEANS_INTG) \
- || defined(FEAT_BIG)
+#if defined(FEAT_NETBEANS_INTG) || defined(FEAT_BIG)
# define FEAT_AUTOCHDIR
#endif
diff --git a/src/fileio.c b/src/fileio.c
index ae70caf978..0608625a4f 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -5094,11 +5094,6 @@ restore_backup:
if (!p_bk && backup != NULL && mch_remove(backup) != 0)
emsg(_("E207: Can't delete backup file"));
-#ifdef FEAT_SUN_WORKSHOP
- if (usingSunWorkShop)
- workshop_file_saved((char *) ffname);
-#endif
-
goto nofail;
/*
diff --git a/src/globals.h b/src/globals.h
index 4a0c52ce4c..645c93608c 100644
--- a/src/globals.h
+++ b/src/globals.h
@@ -1218,10 +1218,9 @@ EXTERN int no_hlsearch INIT(= FALSE);
#if defined(FEAT_BEVAL) && !defined(NO_X11_INCLUDES)
EXTERN BalloonEval *balloonEval INIT(= NULL);
EXTERN int balloonEvalForTerm INIT(= FALSE);
-# if defined(FEAT_NETBEANS_INTG) || defined(FEAT_SUN_WORKSHOP)
+# if defined(FEAT_NETBEANS_INTG)
EXTERN int bevalServers INIT(= 0);
# define BEVAL_NETBEANS 0x01
-# define BEVAL_WORKSHOP 0x02
# endif
#endif
@@ -1363,14 +1362,6 @@ EXTERN linenr_T spell_redraw_lnum INIT(= 0);
EXTERN int need_cursor_line_redraw INIT(= FALSE);
#endif
-#ifdef ALT_X_INPUT
-/* we need to be able to go into the dispatch loop while processing a command
- * received via alternate input. However, we don't want to process another
- * command until the first is completed.
- */
-EXTERN int suppress_alternate_input INIT(= FALSE);
-#endif
-
#ifdef USE_MCH_ERRMSG
/* Grow array to collect error messages in until they can be displayed. */
EXTERN garray_T error_ga
diff --git a/src/gui.c b/src/gui.c
index ed89985f0e..cf1cee67ff 100644
--- a/src/gui.c
+++ b/src/gui.c
@@ -672,10 +672,6 @@ gui_init(void)
#ifdef FEAT_MENU
gui_create_initial_menus(root_menu);
#endif
-#ifdef FEAT_SUN_WORKSHOP
- if (usingSunWorkShop)
- workshop_init();
-#endif
#ifdef FEAT_SIGN_ICONS
sign_gui_started();
#endif
@@ -1604,19 +1600,8 @@ gui_set_shellsize(
/* Remember the original window position. */
(void)gui_mch_get_winpos(&x, &y);
-#ifdef USE_SUN_WORKSHOP
- if (!mustset && usingSunWorkShop
- && workshop_get_width_height(&width, &height))
- {
- Columns = (width - base_width + gui.char_width - 1) / gui.char_width;
- Rows = (height - base_height + gui.char_height - 1) / gui.char_height;
- }
- else
-#endif
- {
- width = Columns * gui.char_width + base_width;
- height = Rows * gui.char_height + base_height;
- }
+ width = Columns * gui.char_width + base_width;
+ height = Rows * gui.char_height + base_height;
if (fit_to_display)
{
@@ -5128,7 +5113,7 @@ no_console_input(void)
}
#endif
-#if defined(FIND_REPLACE_DIALOG) || defined(FEAT_SUN_WORKSHOP) \
+#if defined(FIND_REPLACE_DIALOG) \
|| defined(NEED_GUI_UPDATE_SCREEN) \
|| defined(PROTO)
/*
diff --git a/src/gui_beval.c b/src/gui_beval.c
index 9af17a9287..3a282181ac 100644
--- a/src/gui_beval.c
+++ b/src/gui_beval.c
@@ -199,8 +199,7 @@ gui_mch_currently_showing_beval(void)
#endif
#endif /* !FEAT_GUI_W32 */
-#if defined(FEAT_SUN_WORKSHOP) || defined(FEAT_NETBEANS_INTG) \
- || defined(FEAT_EVAL) || defined(PROTO)
+#if defined(FEAT_NETBEANS_INTG) || defined(FEAT_EVAL) || defined(PROTO)
# if !defined(FEAT_GUI_W32) || defined(PROTO)
/*
@@ -216,7 +215,7 @@ gui_mch_post_balloon(BalloonEval *beval, char_u *mesg)
undrawBalloon(beval);
}
# endif /* !FEAT_GUI_W32 */
-#endif /* FEAT_SUN_WORKSHOP || FEAT_NETBEANS_INTG || PROTO */
+#endif /* FEAT_NETBEANS_INTG || PROTO */
#if !defined(FEAT_GUI_W32) || defined(PROTO)
#if defined(FEAT_BEVAL_TIP) || defined(PROTO)
diff --git a/src/gui_motif.c b/src/gui_motif.c
index b6c140be38..3f354096c1 100644
--- a/src/gui_motif.c
+++ b/src/gui_motif.c
@@ -698,8 +698,7 @@ manage_centered(Widget dialog_child)
XtVaSetValues(shell, XmNmappedWhenManaged, mappedWhenManaged, NULL);
}
-#if defined(FEAT_MENU) || defined(FEAT_SUN_WORKSHOP) \
- || defined(FEAT_GUI_DIALOG) || defined(PROTO)
+#if defined(FEAT_MENU) || defined(FEAT_GUI_DIALOG) || defined(PROTO)
/*
* Encapsulate the way an XmFontList is created.
diff --git a/src/gui_x11.c b/src/gui_x11.c
index 652bbec28a..9d8ea7e4a6 100644
--- a/src/gui_x11.c
+++ b/src/gui_x11.c
@@ -22,11 +22,11 @@
#include <X11/cursorfont.h>
/*
- * For Workshop XpmP.h is preferred, because it makes the signs drawn with a
- * transparent background instead of black.
+ * XpmP.h is preferred, because it makes the signs drawn with a transparent
+ * background instead of black.
*/
#if defined(HAVE_XM_XPMP_H) && defined(FEAT_GUI_MOTIF) \
- && (!defined(HAVE_X11_XPM_H) || defined(FEAT_SUN_WORKSHOP))
+ && !defined(HAVE_X11_XPM_H)
# include <Xm/XpmP.h>
#else
# ifdef HAVE_X11_XPM_H
@@ -469,7 +469,7 @@ static XtResource vim_resources[] =
XtRString,
DFLT_TOOLTIP_FONT
},
- /* This one isn't really needed, keep for Sun Workshop? */
+ /* This one may not be really needed? */
{
"balloonEvalFontSet",
XtCFontSet,
@@ -636,8 +636,7 @@ gui_x11_expose_cb(
gui_mch_update();
}
-#if ((defined(FEAT_NETBEANS_INTG) || defined(FEAT_SUN_WORKSHOP)) \
- && defined(FEAT_GUI_MOTIF)) || defined(PROTO)
+#if (defined(FEAT_NETBEANS_INTG) && defined(FEAT_GUI_MOTIF)) || defined(PROTO)
/*
* This function fills in the XRectangle object with the current x,y
* coordinates and height, width so that an XtVaSetValues to the same shell of
@@ -701,15 +700,6 @@ gui_x11_resize_window_cb(
#endif
);
}
-#ifdef FEAT_SUN_WORKSHOP
- if (usingSunWorkShop)
- {
- XRectangle rec;
-
- shellRectangle(w, &rec);
- workshop_frame_moved(rec.x, rec.y, rec.width, rec.height);
- }
-#endif
#if defined(FEAT_NETBEANS_INTG) && defined(FEAT_GUI_MOTIF)
if (netbeans_active())
{
@@ -1224,22 +1214,6 @@ gui_mch_prepare(int *argc, char **argv)
argv[*argc] = NULL;
}
else
-#ifdef FEAT_SUN_WORKSHOP
- if (strcmp("-ws", argv[arg]) == 0)
- {
- usingSunWorkShop++;
- p_acd = TRUE;
- gui.dofork = FALSE; /* don't fork() when starting GUI */
- mch_memmove(&argv[arg], &argv[arg + 1],
- (--*argc - arg) * sizeof(char *));
- argv[*argc] = NULL;
-# ifdef WSDEBUG
- wsdebug_wait(WT_ENV | WT_WAIT | WT_STOP, "SPRO_GVIM_WAIT", 20);
- wsdebug_log_init("SPRO_GVIM_DEBUG", "SPRO_GVIM_DLEVEL");
-# endif
- }
- else
-#endif
#ifdef FEAT_NETBEANS_INTG
if (strncmp("-nb", argv[arg], 3) == 0)
{
@@ -1543,11 +1517,6 @@ gui_mch_init(void)
if (gui.color_approx)
emsg(_("Vim E458: Cannot allocate colormap entry, some colors may be incorrect"));
-#ifdef FEAT_SUN_WORKSHOP
- if (usingSunWorkShop)
- workshop_connect(app_context);
-#endif
-
#ifdef FEAT_BEVAL_GUI
gui_init_tooltip_font();
#endif
@@ -1681,9 +1650,6 @@ gui_mch_open(void)
#ifdef FEAT_XIM
xim_init();
#endif
-#ifdef FEAT_SUN_WORKSHOP
- workshop_postinit();
-#endif
return OK;
}
@@ -2748,12 +2714,7 @@ gui_mch_wait_for_chars(long wtime)
#endif
focus = gui.in_focus;
-#ifdef ALT_X_INPUT
- if (suppress_alternate_input)
- desired = (XtIMXEvent | XtIMTimer);
- else
-#endif
- desired = (XtIMAll);
+ desired = (XtIMAll);
while (!timed_out)
{
/* Stop or start blinking when focus changes */
diff --git a/src/integration.c b/src/integration.c
deleted file mode 100644
index eb6ccda0a9..0000000000
--- a/src/integration.c
+++ /dev/null
@@ -1,1112 +0,0 @@
-/* vi:set ts=8 sw=8 noet:
- *
- * VIM - Vi IMproved by Bram Moolenaar
- * Visual Workshop integration by Gordon Prieur
- *
- * Do ":help uganda" in Vim to read copying and usage conditions.
- * Do ":help credits" in Vim to see a list of people who contributed.
- * See README.txt for an overview of the Vim source code.
- */
-
-/*
- * Integration with Sun Workshop.
- *
- * This file should not change much, it's also used by other editors that
- * connect to Workshop. Consider changing workshop.c instead.
- */
-/*
--> consider using MakeSelectionVisible instead of gotoLine hacks
- to show the line properly
- -> consider using glue instead of our own message wrapping functions
- (but can only use glue if we don't have to distribute source)
-*/
-
-#include "vim.h"
-
-#include <stdio.h>
-#include <stdlib.h>
-
-#ifdef INET_SOCKETS
-#include <netdb.h>
-#include <netinet/in.h>
-#else
-#include <sys/un.h>
-#endif
-
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <sys/param.h>
-#ifdef HAVE_LIBGEN_H
-# include <libgen.h>
-#endif
-#include <unistd.h>
-#include <string.h>
-
-#include <X11/Intrinsic.h>
-#include <Xm/Xm.h>
-#include <Xm/AtomMgr.h>
-#include <Xm/PushB.h>
-
-#ifdef HAVE_X11_XPM_H
-# include <X11/xpm.h>
-#else
-# ifdef HAVE_XM_XPMP_H
-# include <Xm/XpmP.h>
-# endif
-#endif
-
-#ifdef HAVE_UTIL_DEBUG_H
-# include <util/debug.h>
-#endif
-#ifdef HAVE_UTIL_MSGI18N_H
-# include <util/msgi18n.h>
-#endif
-
-#include "integration.h" /* <EditPlugin/integration.h> */
-#ifdef HAVE_FRAME_H
-# include <frame.h>
-#endif
-
-#ifndef MAX
-# define MAX(a, b) (a) > (b) ? (a) : (b)
-#endif
-
-#ifndef NOCATGETS
-# define NOCATGETS(x) x
-#endif
-
-/* Functions private to this file */
-static void workshop_disconnect(void);
-static void workshop_sensitivity(int num, char *table);
-static void adjust_sign_name(char *filename);
-static void process_menuItem(char *);
-static void process_toolbarButton(char *);
-static void workshop_set_option_first(char *name, char *value);
-
-static size_t dummy; /* to ignore return value of write() */
-
-#define CMDBUFSIZ 2048
-
-#ifdef DEBUG
-static FILE *dfd;
-static void pldebug(char *, ...);
-static void unrecognised_message(char *);
-
-#define HANDLE_ERRORS(cmd) else unrecognis