Skip to content

Commit

Permalink
updated for version 7.2-184
Browse files Browse the repository at this point in the history
  • Loading branch information
vimboss committed May 21, 2009
1 parent b465ee5 commit 1f4d8dd
Show file tree
Hide file tree
Showing 16 changed files with 373 additions and 369 deletions.
77 changes: 76 additions & 1 deletion src/auto/configure
Expand Up @@ -7977,6 +7977,82 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
LDFLAGS="$ac_save_LDFLAGS"
{ $as_echo "$as_me:$LINENO: checking size of wchar_t is 2 bytes" >&5
$as_echo_n "checking size of wchar_t is 2 bytes... " >&6; }
if test "${ac_cv_small_wchar_t+set}" = set; then
$as_echo_n "(cached) " >&6
else
if test "$cross_compiling" = yes; then
{ { $as_echo "$as_me:$LINENO: error: failed to compile test program" >&5
$as_echo "$as_me: error: failed to compile test program" >&2;}
{ (exit 1); exit 1; }; }
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <X11/Xlib.h>
#if STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#endif
main()
{
if (sizeof(wchar_t) <= 2)
exit(1);
exit(0);
}
_ACEOF
rm -f conftest$ac_exeext
if { (ac_try="$ac_link"
case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_link") 2>&5
ac_status=$?
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (case "(($ac_try" in
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
*) ac_try_echo=$ac_try;;
esac
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
(eval "$ac_try") 2>&5
ac_status=$?
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_small_wchar_t="no"
else
$as_echo "$as_me: program exited with status $ac_status" >&5
$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
ac_cv_small_wchar_t="yes"
fi
rm -rf conftest.dSYM
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_small_wchar_t" >&5
$as_echo "$ac_cv_small_wchar_t" >&6; }
if test "x$ac_cv_small_wchar_t" = "xyes" ; then
cat >>confdefs.h <<\_ACEOF
#define SMALL_WCHAR_T 1
_ACEOF
fi
fi
fi
Expand Down Expand Up @@ -15417,7 +15493,6 @@ _ACEOF
bcopy_test_prog='
#include "confdefs.h"
#ifdef HAVE_STRING_H
Expand Down
3 changes: 3 additions & 0 deletions src/config.h.in
Expand Up @@ -39,6 +39,9 @@
/* Defined to the size of an int */
#undef SIZEOF_INT

/* Define when wchar_t is only 2 bytes. */
#undef SMALL_WCHAR_T

/*
* If we cannot trust one of the following from the libraries, we use our
* own safe but probably slower vim_memmove().
Expand Down
23 changes: 22 additions & 1 deletion src/configure.in
Expand Up @@ -1193,6 +1193,28 @@ else

LDFLAGS="$ac_save_LDFLAGS"

AC_MSG_CHECKING(size of wchar_t is 2 bytes)
AC_CACHE_VAL(ac_cv_small_wchar_t,
[AC_TRY_RUN([
#include <X11/Xlib.h>
#if STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#endif
main()
{
if (sizeof(wchar_t) <= 2)
exit(1);
exit(0);
}],
ac_cv_small_wchar_t="no",
ac_cv_small_wchar_t="yes",
AC_MSG_ERROR(failed to compile test program))])
AC_MSG_RESULT($ac_cv_small_wchar_t)
if test "x$ac_cv_small_wchar_t" = "xyes" ; then
AC_DEFINE(SMALL_WCHAR_T)
fi

fi
fi

Expand Down Expand Up @@ -2881,7 +2903,6 @@ main()
AC_MSG_RESULT($ac_cv_sizeof_int)
AC_DEFINE_UNQUOTED(SIZEOF_INT, $ac_cv_sizeof_int)


dnl Check for memmove() before bcopy(), makes memmove() be used when both are
dnl present, fixes problem with incompatibility between Solaris 2.4 and 2.5.

Expand Down
10 changes: 5 additions & 5 deletions src/gui.c
Expand Up @@ -3119,7 +3119,7 @@ static int prev_which_scrollbars[3];
*/
void
gui_init_which_components(oldval)
char_u *oldval;
char_u *oldval UNUSED;
{
#ifdef FEAT_MENU
static int prev_menu_is_active = -1;
Expand Down Expand Up @@ -4668,8 +4668,8 @@ gui_mouse_correct()
*/
static win_T *
xy2win(x, y)
int x;
int y;
int x UNUSED;
int y UNUSED;
{
#ifdef FEAT_WINDOWS
int row;
Expand Down Expand Up @@ -5121,8 +5121,8 @@ gui_wingoto_xy(x, y)
*/
void
gui_handle_drop(x, y, modifiers, fnames, count)
int x;
int y;
int x UNUSED;
int y UNUSED;
int_u modifiers;
char_u **fnames;
int count;
Expand Down

0 comments on commit 1f4d8dd

Please sign in to comment.