summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-05-20 21:46:00 +0200
committerBram Moolenaar <Bram@vim.org>2010-05-20 21:46:00 +0200
commit218116c1d0bacf1bceb93699258c23308617b43c (patch)
tree971357927080ba2d1cc08500f0069b3619af5ecb /src
parentfa7584cb8627e3e4226b26ef1bff42f82b8eee1e (diff)
Various smaller changes. Updated proto files. Updated dependencies.
Diffstat (limited to 'src')
-rw-r--r--src/Make_mvc.mak3
-rwxr-xr-xsrc/auto/configure14
-rw-r--r--src/config.mk.in1
-rw-r--r--src/configure.in13
-rw-r--r--src/if_ruby.c5
-rw-r--r--src/main.aap2
-rw-r--r--src/po/it.po15
-rw-r--r--src/proto/ex_getln.pro4
-rw-r--r--src/proto/ui.pro2
9 files changed, 40 insertions, 19 deletions
diff --git a/src/Make_mvc.mak b/src/Make_mvc.mak
index f101e59fb7..8a4e5adc0e 100644
--- a/src/Make_mvc.mak
+++ b/src/Make_mvc.mak
@@ -364,6 +364,9 @@ MSVCVER = 10.0
!if "$(_NMAKE_VER)" == "10.00.30128.01"
MSVCVER = 10.0
!endif
+!if "$(_NMAKE_VER)" == "10.00.30319.01"
+MSVCVER = 10.0
+!endif
!endif
# Abort bulding VIM if version of VC is unrecognised.
diff --git a/src/auto/configure b/src/auto/configure
index cc7d2a17e2..34de4f3c50 100755
--- a/src/auto/configure
+++ b/src/auto/configure
@@ -644,6 +644,7 @@ TCL_SRC
vi_cv_path_tcl
PYTHON_OBJ
PYTHON_SRC
+PYTHON_NOPROTO
PYTHON_CFLAGS
PYTHON_GETPATH_CFLAGS
PYTHON_LIBS
@@ -4903,7 +4904,7 @@ else
tmp_mkf="$pwd/config-PyMake$$"
cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
__:
- @echo "python_MODLIBS='$(MODLIBS)'"
+ @echo "python_BASEMODLIBS='$(BASEMODLIBS)'"
@echo "python_LIBS='$(LIBS)'"
@echo "python_SYSLIBS='$(SYSLIBS)'"
@echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
@@ -4919,7 +4920,7 @@ eof
else
vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
fi
- vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
+ vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_BASEMODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
fi
@@ -4932,6 +4933,7 @@ fi
else
PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version} -I${vi_cv_path_python_epfx}/include/python${vi_cv_var_python_version}"
fi
+ PYTHON_NOPROTO=
PYTHON_SRC="if_python.c"
if test "x$MACOSX" = "xyes"; then
PYTHON_OBJ="objects/if_python.o"
@@ -4943,7 +4945,7 @@ fi
fi
PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5
$as_echo_n "checking if -pthread should be used... " >&6; }
threadsafe_flag=
thread_lib=
@@ -4972,7 +4974,7 @@ main ()
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-$as_echo "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
+$as_echo "yes" >&6; }; PYTHON_NOPROTO="$threadsafe_flag"
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }; LIBS=$libs_save_old
@@ -4990,7 +4992,7 @@ $as_echo "no" >&6; }
$as_echo_n "checking if compile and link flags for Python are sane... " >&6; }
cflags_save=$CFLAGS
libs_save=$LIBS
- CFLAGS="$CFLAGS $PYTHON_CFLAGS"
+ CFLAGS="$CFLAGS $PYTHON_CFLAGS $PYTHON_NOPROTO"
LIBS="$LIBS $PYTHON_LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
@@ -5023,6 +5025,7 @@ rm -f core conftest.err conftest.$ac_objext \
PYTHON_OBJ=
PYTHON_LIBS=
PYTHON_CFLAGS=
+ PYTHON_NOPROTO=
fi
fi
@@ -5039,6 +5042,7 @@ fi
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-tclinterp argument" >&5
$as_echo_n "checking --enable-tclinterp argument... " >&6; }
# Check whether --enable-tclinterp was given.
diff --git a/src/config.mk.in b/src/config.mk.in
index f36e676c19..a950413a6a 100644
--- a/src/config.mk.in
+++ b/src/config.mk.in
@@ -56,6 +56,7 @@ PERL_CFLAGS = @PERL_CFLAGS@
PYTHON_SRC = @PYTHON_SRC@
PYTHON_OBJ = @PYTHON_OBJ@
PYTHON_CFLAGS = @PYTHON_CFLAGS@
+PYTHON_NOPROTO = @PYTHON_NOPROTO@
PYTHON_LIBS = @PYTHON_LIBS@
PYTHON_CONFDIR = @PYTHON_CONFDIR@
PYTHON_GETPATH_CFLAGS = @PYTHON_GETPATH_CFLAGS@
diff --git a/src/configure.in b/src/configure.in
index 0068d34fa0..1d8cb09e1b 100644
--- a/src/configure.in
+++ b/src/configure.in
@@ -725,7 +725,7 @@ if test "$enable_pythoninterp" = "yes"; then
tmp_mkf="$pwd/config-PyMake$$"
cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
__:
- @echo "python_MODLIBS='$(MODLIBS)'"
+ @echo "python_BASEMODLIBS='$(BASEMODLIBS)'"
@echo "python_LIBS='$(LIBS)'"
@echo "python_SYSLIBS='$(SYSLIBS)'"
@echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
@@ -742,7 +742,7 @@ eof
else
vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
fi
- vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
+ vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_BASEMODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
dnl remove -ltermcap, it can conflict with an earlier -lncurses
vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
fi
@@ -754,6 +754,7 @@ eof
else
PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version} -I${vi_cv_path_python_epfx}/include/python${vi_cv_var_python_version}"
fi
+ PYTHON_NOPROTO=
PYTHON_SRC="if_python.c"
dnl For Mac OSX 10.2 config.o is included in the Python library.
if test "x$MACOSX" = "xyes"; then
@@ -773,6 +774,8 @@ eof
dnl Otherwise, when using GCC, try adding -pthread to $CFLAGS. GCC
dnl will then define target-specific defines, e.g., -D_REENTRANT.
dnl Don't do this for Mac OSX, -pthread will generate a warning.
+ dnl Need to put -pthread in PYTHON_NOPROTO, because it cannot be used
+ dnl for cproto.
AC_MSG_CHECKING([if -pthread should be used])
threadsafe_flag=
thread_lib=
@@ -790,7 +793,7 @@ eof
CFLAGS="$CFLAGS $threadsafe_flag"
LIBS="$LIBS $thread_lib"
AC_TRY_LINK(,[ ],
- AC_MSG_RESULT(yes); PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag",
+ AC_MSG_RESULT(yes); PYTHON_NOPROTO="$threadsafe_flag",
AC_MSG_RESULT(no); LIBS=$libs_save_old
)
CFLAGS=$cflags_save
@@ -803,7 +806,7 @@ eof
AC_MSG_CHECKING([if compile and link flags for Python are sane])
cflags_save=$CFLAGS
libs_save=$LIBS
- CFLAGS="$CFLAGS $PYTHON_CFLAGS"
+ CFLAGS="$CFLAGS $PYTHON_CFLAGS $PYTHON_NOPROTO"
LIBS="$LIBS $PYTHON_LIBS"
AC_TRY_LINK(,[ ],
AC_MSG_RESULT(yes); python_ok=yes,
@@ -818,6 +821,7 @@ eof
PYTHON_OBJ=
PYTHON_LIBS=
PYTHON_CFLAGS=
+ PYTHON_NOPROTO=
fi
fi
@@ -830,6 +834,7 @@ AC_SUBST(PYTHON_CONFDIR)
AC_SUBST(PYTHON_LIBS)
AC_SUBST(PYTHON_GETPATH_CFLAGS)
AC_SUBST(PYTHON_CFLAGS)
+AC_SUBST(PYTHON_NOPROTO)
AC_SUBST(PYTHON_SRC)
AC_SUBST(PYTHON_OBJ)
diff --git a/src/if_ruby.c b/src/if_ruby.c
index 2ee329bcfc..8003d4c88c 100644
--- a/src/if_ruby.c
+++ b/src/if_ruby.c
@@ -170,7 +170,10 @@ static void ruby_vim_init(void);
#define rb_str_cat dll_rb_str_cat
#define rb_str_concat dll_rb_str_concat
#define rb_str_new dll_rb_str_new
-#define rb_str_new2 dll_rb_str_new2
+/* Ruby may also define rb_str_new2. */
+#ifndef rb_str_new2
+# define rb_str_new2 dll_rb_str_new2
+#endif
#if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 18
# define rb_string_value_ptr dll_rb_string_value_ptr
# define rb_float_new dll_rb_float_new
diff --git a/src/main.aap b/src/main.aap
index b36fc3662a..e6ca2e0f36 100644
--- a/src/main.aap
+++ b/src/main.aap
@@ -290,6 +290,7 @@ testclean {virtual}:
# Some are optional and depend on configure.
# "version.c" is missing, it's always compiled (see below).
Source =
+ blowfish.c
buffer.c
charset.c
diff.c
@@ -328,6 +329,7 @@ Source =
regexp.c
screen.c
search.c
+ sha256.c
spell.c
syntax.c
tag.c
diff --git a/src/po/it.po b/src/po/it.po
index 54b78221ea..449085a62d 100644
--- a/src/po/it.po
+++ b/src/po/it.po
@@ -12,8 +12,8 @@
msgid ""
msgstr ""
"Project-Id-Version: vim 7.2\n"
-"POT-Creation-Date: 2010-03-01 13:21+0100\n"
-"PO-Revision-Date: 2009-03-01 13:21+0100\n"
+"POT-Creation-Date: 2010-05-17 10:05+0200\n"
+"PO-Revision-Date: 2009-05-17 10:05+0200\n"
"Last-Translator: Vlad Sandrini <vlad.gently@gmail.com>\n"
"Language-Team: Italian"
" Antonio Colombo <azc100@gmail.com>"
@@ -1266,6 +1266,9 @@ msgid "E467: Custom completion requires a function argument"
msgstr ""
"E467: Il completamento personalizzato richiede un argomento di funzione"
+msgid "unknown"
+msgstr "sconosciuto"
+
#, c-format
msgid "E185: Cannot find color scheme %s"
msgstr "E185: Non riesco a trovare schema colore %s"
@@ -2428,13 +2431,13 @@ msgid "E567: no cscope connections"
msgstr "E567: nessuna connessione cscope"
#, c-format
-msgid "E259: no matches found for cscope query %s of %s"
-msgstr "E259: nessuna corrispondenza trovata per la richiesta cscope %s di %s"
-
-#, c-format
msgid "E469: invalid cscopequickfix flag %c for %c"
msgstr "E469: flag cscopequickfix %c non valido per %c"
+#, c-format
+msgid "E259: no matches found for cscope query %s of %s"
+msgstr "E259: nessuna corrispondenza trovata per la richiesta cscope %s di %s"
+
msgid "cscope commands:\n"
msgstr "comandi cscope:\n"
diff --git a/src/proto/ex_getln.pro b/src/proto/ex_getln.pro
index 2750542fcf..cdc49a838f 100644
--- a/src/proto/ex_getln.pro
+++ b/src/proto/ex_getln.pro
@@ -5,8 +5,8 @@ int text_locked __ARGS((void));
void text_locked_msg __ARGS((void));
int curbuf_locked __ARGS((void));
int allbuf_locked __ARGS((void));
-char_u *getexline __ARGS((int c, void *dummy, int indent));
-char_u *getexmodeline __ARGS((int promptc, void *dummy, int indent));
+char_u *getexline __ARGS((int c, void *cookie, int indent));
+char_u *getexmodeline __ARGS((int promptc, void *cookie, int indent));
int cmdline_overstrike __ARGS((void));
int cmdline_at_end __ARGS((void));
colnr_T cmdline_getvcol_cursor __ARGS((void));
diff --git a/src/proto/ui.pro b/src/proto/ui.pro
index 2bc0c31ec9..87cee8b92c 100644
--- a/src/proto/ui.pro
+++ b/src/proto/ui.pro
@@ -48,10 +48,10 @@ int check_row __ARGS((int row));
void open_app_context __ARGS((void));
void x11_setup_atoms __ARGS((Display *dpy));
void clip_x11_request_selection __ARGS((Widget myShell, Display *dpy, VimClipboard *cbd));
-void yank_cut_buffer0 __ARGS((Display *dpy, VimClipboard *cbd));
void clip_x11_lose_selection __ARGS((Widget myShell, VimClipboard *cbd));
int clip_x11_own_selection __ARGS((Widget myShell, VimClipboard *cbd));
void clip_x11_set_selection __ARGS((VimClipboard *cbd));
+void yank_cut_buffer0 __ARGS((Display *dpy, VimClipboard *cbd));
int jump_to_mouse __ARGS((int flags, int *inclusive, int which_button));
int mouse_comp_pos __ARGS((win_T *win, int *rowp, int *colp, linenr_T *lnump));
win_T *mouse_find_win __ARGS((int *rowp, int *colp));