mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 7.4.2285
Problem: Generated files are outdated. Solution: Generate the files. Avoid errors when generating prototypes.
This commit is contained in:
21
src/Makefile
21
src/Makefile
@@ -335,9 +335,13 @@ CClink = $(CC)
|
|||||||
|
|
||||||
# Uncomment one of these lines if you have that GUI but don't want to use it.
|
# Uncomment one of these lines if you have that GUI but don't want to use it.
|
||||||
# The automatic check will use another one that can be found.
|
# The automatic check will use another one that can be found.
|
||||||
# Gnome is disabled by default, it may cause trouble.
|
# Gnome is disabled by default, because it may cause trouble.
|
||||||
|
#
|
||||||
|
# When both GTK+ 2 and GTK+ 3 are possible then GTK+ 2 will be selected.
|
||||||
|
# To use GTK+ 3 instead use --enable-gui=gtk3 (see below).
|
||||||
#CONF_OPT_GUI = --disable-gtk2-check
|
#CONF_OPT_GUI = --disable-gtk2-check
|
||||||
#CONF_OPT_GUI = --enable-gnome2-check
|
#CONF_OPT_GUI = --enable-gnome2-check
|
||||||
|
#CONF_OPT_GUI = --disable-gtk3-check
|
||||||
#CONF_OPT_GUI = --disable-motif-check
|
#CONF_OPT_GUI = --disable-motif-check
|
||||||
#CONF_OPT_GUI = --disable-athena-check
|
#CONF_OPT_GUI = --disable-athena-check
|
||||||
#CONF_OPT_GUI = --disable-nextaw-check
|
#CONF_OPT_GUI = --disable-nextaw-check
|
||||||
@@ -348,18 +352,24 @@ CClink = $(CC)
|
|||||||
#
|
#
|
||||||
# GTK versions that are known not to work 100% are rejected.
|
# GTK versions that are known not to work 100% are rejected.
|
||||||
# Use "--disable-gtktest" to accept them anyway.
|
# Use "--disable-gtktest" to accept them anyway.
|
||||||
# Only GTK 2 is supported, for GTK 1 use Vim 7.2.
|
# For GTK 1 use Vim 7.2.
|
||||||
#
|
#
|
||||||
# GNOME means GTK with Gnome support. If using GTK and --enable-gnome-check
|
# GNOME means GTK with Gnome support. If using GTK and --enable-gnome-check
|
||||||
# is used then GNOME will automatically be used if it is found. If you have
|
# is used then GNOME will automatically be used if it is found. If you have
|
||||||
# GNOME, but do not want to use it (e.g., want a GTK-only version), then use
|
# GNOME, but do not want to use it (e.g., want a GTK-only version), then use
|
||||||
# --enable-gui=gtk or leave out --enable-gnome-check.
|
# --enable-gui=gtk or leave out --enable-gnome-check.
|
||||||
#
|
#
|
||||||
|
# GNOME makes sense only for GTK+ 2. Avoid use of --enable-gnome-check with
|
||||||
|
# GTK+ 3 build, as the functionality of GNOME is already incooperated into
|
||||||
|
# GTK+ 3.
|
||||||
|
#
|
||||||
# If the selected GUI isn't found, the GUI is disabled automatically
|
# If the selected GUI isn't found, the GUI is disabled automatically
|
||||||
#CONF_OPT_GUI = --enable-gui=gtk2
|
#CONF_OPT_GUI = --enable-gui=gtk2
|
||||||
#CONF_OPT_GUI = --enable-gui=gtk2 --disable-gtktest
|
#CONF_OPT_GUI = --enable-gui=gtk2 --disable-gtktest
|
||||||
#CONF_OPT_GUI = --enable-gui=gnome2
|
#CONF_OPT_GUI = --enable-gui=gnome2
|
||||||
#CONF_OPT_GUI = --enable-gui=gnome2 --disable-gtktest
|
#CONF_OPT_GUI = --enable-gui=gnome2 --disable-gtktest
|
||||||
|
#CONF_OPT_GUI = --enable-gui=gtk3
|
||||||
|
#CONF_OPT_GUI = --enable-gui=gtk3 --disable-gtktest
|
||||||
#CONF_OPT_GUI = --enable-gui=motif
|
#CONF_OPT_GUI = --enable-gui=motif
|
||||||
#CONF_OPT_GUI = --enable-gui=motif --with-motif-lib="-static -lXm -shared"
|
#CONF_OPT_GUI = --enable-gui=motif --with-motif-lib="-static -lXm -shared"
|
||||||
#CONF_OPT_GUI = --enable-gui=athena
|
#CONF_OPT_GUI = --enable-gui=athena
|
||||||
@@ -368,7 +378,7 @@ CClink = $(CC)
|
|||||||
# Carbon GUI for Mac OS X
|
# Carbon GUI for Mac OS X
|
||||||
#CONF_OPT_GUI = --enable-gui=carbon
|
#CONF_OPT_GUI = --enable-gui=carbon
|
||||||
|
|
||||||
# Uncomment this line to run an indivisual test with gvim.
|
# Uncomment this line to run an individual test with gvim.
|
||||||
#GUI_TESTARG = GUI_FLAG=-g
|
#GUI_TESTARG = GUI_FLAG=-g
|
||||||
|
|
||||||
# DARWIN - detecting Mac OS X
|
# DARWIN - detecting Mac OS X
|
||||||
@@ -402,6 +412,7 @@ CClink = $(CC)
|
|||||||
|
|
||||||
# MZSCHEME
|
# MZSCHEME
|
||||||
# Uncomment this when you want to include the MzScheme interface.
|
# Uncomment this when you want to include the MzScheme interface.
|
||||||
|
# NOTE: does not work well together with valgrind.
|
||||||
#CONF_OPT_MZSCHEME = --enable-mzschemeinterp
|
#CONF_OPT_MZSCHEME = --enable-mzschemeinterp
|
||||||
# PLT/mrscheme/drscheme Home dir; the PLTHOME environment variable also works
|
# PLT/mrscheme/drscheme Home dir; the PLTHOME environment variable also works
|
||||||
#CONF_OPT_PLTHOME = --with-plthome=/usr/local/plt
|
#CONF_OPT_PLTHOME = --with-plthome=/usr/local/plt
|
||||||
@@ -3371,7 +3382,7 @@ objects/option.o: option.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h
|
|||||||
objects/os_unix.o: os_unix.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
|
objects/os_unix.o: os_unix.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h \
|
||||||
ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
|
ascii.h keymap.h term.h macros.h option.h structs.h regexp.h gui.h \
|
||||||
gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h spell.h proto.h \
|
gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h spell.h proto.h \
|
||||||
globals.h farsi.h arabic.h os_unixx.h
|
globals.h farsi.h arabic.h if_mzsch.h os_unixx.h
|
||||||
objects/pathdef.o: auto/pathdef.c vim.h auto/config.h feature.h os_unix.h \
|
objects/pathdef.o: auto/pathdef.c vim.h auto/config.h feature.h os_unix.h \
|
||||||
auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
|
auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
|
||||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h spell.h \
|
regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h spell.h \
|
||||||
@@ -3545,7 +3556,7 @@ objects/if_lua.o: if_lua.c vim.h auto/config.h feature.h os_unix.h auto/osdef.h
|
|||||||
objects/if_mzsch.o: if_mzsch.c vim.h auto/config.h feature.h os_unix.h \
|
objects/if_mzsch.o: if_mzsch.c vim.h auto/config.h feature.h os_unix.h \
|
||||||
auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
|
auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
|
||||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h spell.h \
|
regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h spell.h \
|
||||||
proto.h globals.h farsi.h arabic.h if_mzsch.h
|
proto.h globals.h farsi.h arabic.h if_mzsch.h mzscheme_base.c
|
||||||
objects/if_perl.o: auto/if_perl.c vim.h auto/config.h feature.h os_unix.h \
|
objects/if_perl.o: auto/if_perl.c vim.h auto/config.h feature.h os_unix.h \
|
||||||
auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
|
auto/osdef.h ascii.h keymap.h term.h macros.h option.h structs.h \
|
||||||
regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h spell.h \
|
regexp.h gui.h gui_beval.h proto/gui_beval.pro alloc.h ex_cmds.h spell.h \
|
||||||
|
@@ -398,14 +398,15 @@ lua_link_init(char *libname, int verbose)
|
|||||||
}
|
}
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
#endif /* DYNAMIC_LUA */
|
||||||
|
|
||||||
|
#if defined(DYNAMIC_LUA) || defined(PROTO)
|
||||||
int
|
int
|
||||||
lua_enabled(int verbose)
|
lua_enabled(int verbose)
|
||||||
{
|
{
|
||||||
return lua_link_init((char *)p_luadll, verbose) == OK;
|
return lua_link_init((char *)p_luadll, verbose) == OK;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
#endif /* DYNAMIC_LUA */
|
|
||||||
|
|
||||||
#if LUA_VERSION_NUM > 501
|
#if LUA_VERSION_NUM > 501
|
||||||
static int
|
static int
|
||||||
|
@@ -10,6 +10,11 @@
|
|||||||
# include <stdint.h>
|
# include <stdint.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef PROTO
|
||||||
|
/* avoid syntax error for defining Thread_Local_Variables. */
|
||||||
|
# define __thread /* empty */
|
||||||
|
#endif
|
||||||
|
|
||||||
/* #ifdef needed for "make depend" */
|
/* #ifdef needed for "make depend" */
|
||||||
#ifdef FEAT_MZSCHEME
|
#ifdef FEAT_MZSCHEME
|
||||||
# include <schvers.h>
|
# include <schvers.h>
|
||||||
|
@@ -343,7 +343,7 @@ EXTERN unsigned bo_flags;
|
|||||||
static char *(p_bo_values[]) = {"all", "backspace", "cursor", "complete",
|
static char *(p_bo_values[]) = {"all", "backspace", "cursor", "complete",
|
||||||
"copy", "ctrlg", "error", "esc", "ex",
|
"copy", "ctrlg", "error", "esc", "ex",
|
||||||
"hangul", "insertmode", "lang", "mess",
|
"hangul", "insertmode", "lang", "mess",
|
||||||
"showmatch", "operator", "register", "shell",
|
"showmatch", "operator", "register", "shell",
|
||||||
"spell", "wildmode", NULL};
|
"spell", "wildmode", NULL};
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
@@ -1123,7 +1123,7 @@ out_num(long n)
|
|||||||
dos_packet(
|
dos_packet(
|
||||||
struct MsgPort *pid, /* process identifier ... (handlers message port) */
|
struct MsgPort *pid, /* process identifier ... (handlers message port) */
|
||||||
long action, /* packet type ... (what you want handler to do) */
|
long action, /* packet type ... (what you want handler to do) */
|
||||||
arg) /* single argument */
|
long arg) /* single argument */
|
||||||
{
|
{
|
||||||
# ifdef FEAT_ARP
|
# ifdef FEAT_ARP
|
||||||
struct MsgPort *replyport;
|
struct MsgPort *replyport;
|
||||||
|
@@ -14,7 +14,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#define NO_X11_INCLUDES
|
#define NO_X11_INCLUDES
|
||||||
#define BalloonEval int /* used in header files */
|
typedef int BalloonEval; /* used in header files */
|
||||||
|
|
||||||
#include "vim.h"
|
#include "vim.h"
|
||||||
|
|
||||||
|
@@ -137,6 +137,8 @@ typedef int PSNSECINFO;
|
|||||||
typedef int PSNSECINFOW;
|
typedef int PSNSECINFOW;
|
||||||
typedef int STARTUPINFO;
|
typedef int STARTUPINFO;
|
||||||
typedef int PROCESS_INFORMATION;
|
typedef int PROCESS_INFORMATION;
|
||||||
|
typedef int LPSECURITY_ATTRIBUTES;
|
||||||
|
# define __stdcall /* empty */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef FEAT_GUI_W32
|
#ifndef FEAT_GUI_W32
|
||||||
|
@@ -10,7 +10,6 @@ int latin_char2len(int c);
|
|||||||
int latin_char2bytes(int c, char_u *buf);
|
int latin_char2bytes(int c, char_u *buf);
|
||||||
int latin_ptr2len(char_u *p);
|
int latin_ptr2len(char_u *p);
|
||||||
int latin_ptr2len_len(char_u *p, int size);
|
int latin_ptr2len_len(char_u *p, int size);
|
||||||
int utf_ambiguous_width(int c);
|
|
||||||
int utf_char2cells(int c);
|
int utf_char2cells(int c);
|
||||||
int latin_ptr2cells(char_u *p);
|
int latin_ptr2cells(char_u *p);
|
||||||
int utf_ptr2cells(char_u *p);
|
int utf_ptr2cells(char_u *p);
|
||||||
@@ -41,6 +40,7 @@ int utf_char2bytes(int c, char_u *buf);
|
|||||||
int utf_iscomposing(int c);
|
int utf_iscomposing(int c);
|
||||||
int utf_printable(int c);
|
int utf_printable(int c);
|
||||||
int utf_class(int c);
|
int utf_class(int c);
|
||||||
|
int utf_ambiguous_width(int c);
|
||||||
int utf_fold(int a);
|
int utf_fold(int a);
|
||||||
int utf_toupper(int a);
|
int utf_toupper(int a);
|
||||||
int utf_islower(int a);
|
int utf_islower(int a);
|
||||||
|
@@ -1127,8 +1127,13 @@ typedef long_u hash_T; /* Type for hi_hash */
|
|||||||
#ifdef FEAT_NUM64
|
#ifdef FEAT_NUM64
|
||||||
/* Use 64-bit Number. */
|
/* Use 64-bit Number. */
|
||||||
# ifdef WIN3264
|
# ifdef WIN3264
|
||||||
|
# ifdef PROTO
|
||||||
|
typedef long varnumber_T;
|
||||||
|
typedef unsigned long uvarnumber_T;
|
||||||
|
# else
|
||||||
typedef __int64 varnumber_T;
|
typedef __int64 varnumber_T;
|
||||||
typedef unsigned __int64 uvarnumber_T;
|
typedef unsigned __int64 uvarnumber_T;
|
||||||
|
# endif
|
||||||
# elif defined(HAVE_STDINT_H)
|
# elif defined(HAVE_STDINT_H)
|
||||||
typedef int64_t varnumber_T;
|
typedef int64_t varnumber_T;
|
||||||
typedef uint64_t uvarnumber_T;
|
typedef uint64_t uvarnumber_T;
|
||||||
|
@@ -763,6 +763,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2285,
|
||||||
/**/
|
/**/
|
||||||
2284,
|
2284,
|
||||||
/**/
|
/**/
|
||||||
|
12
src/vim.h
12
src/vim.h
@@ -410,7 +410,11 @@ typedef __int64 off_T;
|
|||||||
# define vim_ftell _ftelli64
|
# define vim_ftell _ftelli64
|
||||||
# endif
|
# endif
|
||||||
#else
|
#else
|
||||||
|
# ifdef PROTO
|
||||||
|
typedef long off_T;
|
||||||
|
# else
|
||||||
typedef off_t off_T;
|
typedef off_t off_T;
|
||||||
|
# endif
|
||||||
# ifdef HAVE_FSEEKO
|
# ifdef HAVE_FSEEKO
|
||||||
# define vim_lseek lseek
|
# define vim_lseek lseek
|
||||||
# define vim_ftell ftello
|
# define vim_ftell ftello
|
||||||
@@ -1809,10 +1813,14 @@ typedef int proftime_T; /* dummy for function prototypes */
|
|||||||
* bits elsewhere. That causes memory corruption. Define time_T and use it
|
* bits elsewhere. That causes memory corruption. Define time_T and use it
|
||||||
* for global variables to avoid that.
|
* for global variables to avoid that.
|
||||||
*/
|
*/
|
||||||
#ifdef WIN3264
|
#ifdef PROTO
|
||||||
typedef __time64_t time_T;
|
typedef long time_T;
|
||||||
#else
|
#else
|
||||||
|
# ifdef WIN3264
|
||||||
|
typedef __time64_t time_T;
|
||||||
|
# else
|
||||||
typedef time_t time_T;
|
typedef time_t time_T;
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _WIN64
|
#ifdef _WIN64
|
||||||
|
Reference in New Issue
Block a user