patch 7.4.1169
Problem: The socket I/O is intertwined with the netbeans code.
Solution: Start refactoring the netbeans communication to split off the
socket I/O. Add the +channel feature.
diff --git a/src/vim.h b/src/vim.h
index 90a5353..e7a5f58 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -1929,8 +1929,8 @@
# ifdef FEAT_OLE
# define WM_OLE (WM_APP+0)
# endif
-# ifdef FEAT_NETBEANS_INTG
- /* message for Netbeans socket event */
+# ifdef FEAT_CHANNEL
+ /* message for channel socket event */
# define WM_NETBEANS (WM_APP+1)
# endif
# endif
@@ -1979,6 +1979,14 @@
# define stat(a,b) (access(a,0) ? -1 : stat(a,b))
#endif
+#ifdef FEAT_CHANNEL
+# ifdef WIN64
+typedef __int64 sock_T;
+# else
+typedef int sock_T;
+# endif
+#endif
+
#include "ex_cmds.h" /* Ex command defines */
#include "proto.h" /* function prototypes */
@@ -2312,4 +2320,10 @@
# define SET_NO_HLSEARCH(flag) no_hlsearch = (flag)
#endif
+#ifdef FEAT_CHANNEL
+# define MAX_OPEN_CHANNELS 10
+#else
+# define MAX_OPEN_CHANNELS 0
+#endif
+
#endif /* VIM__H */