|
Karsten Hopp |
6053b4 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
6053b4 |
Subject: Patch 7.3.795
|
|
Karsten Hopp |
6053b4 |
Fcc: outbox
|
|
Karsten Hopp |
6053b4 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
6053b4 |
Mime-Version: 1.0
|
|
Karsten Hopp |
6053b4 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
6053b4 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
6053b4 |
------------
|
|
Karsten Hopp |
6053b4 |
|
|
Karsten Hopp |
6053b4 |
Patch 7.3.795
|
|
Karsten Hopp |
6053b4 |
Problem: MzScheme does not build with tiny features.
|
|
Karsten Hopp |
6053b4 |
Solution: Add #ifdefs. Also add UNUSED to avoid warnings. And change
|
|
Karsten Hopp |
6053b4 |
library ordering.
|
|
Karsten Hopp |
6053b4 |
Files: src/if_mzsch.c, src/Makefile
|
|
Karsten Hopp |
6053b4 |
|
|
Karsten Hopp |
6053b4 |
|
|
Karsten Hopp |
6053b4 |
*** ../vim-7.3.794/src/if_mzsch.c 2013-01-30 14:55:35.000000000 +0100
|
|
Karsten Hopp |
6053b4 |
--- src/if_mzsch.c 2013-01-30 17:23:07.000000000 +0100
|
|
Karsten Hopp |
6053b4 |
***************
|
|
Karsten Hopp |
6053b4 |
*** 1483,1489 ****
|
|
Karsten Hopp |
6053b4 |
|
|
Karsten Hopp |
6053b4 |
/* (eval {expr-string}) */
|
|
Karsten Hopp |
6053b4 |
static Scheme_Object *
|
|
Karsten Hopp |
6053b4 |
! vim_eval(void *data, int argc, Scheme_Object **argv)
|
|
Karsten Hopp |
6053b4 |
{
|
|
Karsten Hopp |
6053b4 |
#ifdef FEAT_EVAL
|
|
Karsten Hopp |
6053b4 |
Vim_Prim *prim = (Vim_Prim *)data;
|
|
Karsten Hopp |
6053b4 |
--- 1483,1489 ----
|
|
Karsten Hopp |
6053b4 |
|
|
Karsten Hopp |
6053b4 |
/* (eval {expr-string}) */
|
|
Karsten Hopp |
6053b4 |
static Scheme_Object *
|
|
Karsten Hopp |
6053b4 |
! vim_eval(void *data UNUSED, int argc UNUSED, Scheme_Object **argv UNUSED)
|
|
Karsten Hopp |
6053b4 |
{
|
|
Karsten Hopp |
6053b4 |
#ifdef FEAT_EVAL
|
|
Karsten Hopp |
6053b4 |
Vim_Prim *prim = (Vim_Prim *)data;
|
|
Karsten Hopp |
6053b4 |
***************
|
|
Karsten Hopp |
6053b4 |
*** 1686,1695 ****
|
|
Karsten Hopp |
6053b4 |
static Scheme_Object *
|
|
Karsten Hopp |
6053b4 |
get_window_count(void *data UNUSED, int argc UNUSED, Scheme_Object **argv UNUSED)
|
|
Karsten Hopp |
6053b4 |
{
|
|
Karsten Hopp |
6053b4 |
- win_T *w;
|
|
Karsten Hopp |
6053b4 |
int n = 0;
|
|
Karsten Hopp |
6053b4 |
|
|
Karsten Hopp |
6053b4 |
for (w = firstwin; w != NULL; w = w->w_next)
|
|
Karsten Hopp |
6053b4 |
++n;
|
|
Karsten Hopp |
6053b4 |
return scheme_make_integer(n);
|
|
Karsten Hopp |
6053b4 |
}
|
|
Karsten Hopp |
6053b4 |
--- 1686,1697 ----
|
|
Karsten Hopp |
6053b4 |
static Scheme_Object *
|
|
Karsten Hopp |
6053b4 |
get_window_count(void *data UNUSED, int argc UNUSED, Scheme_Object **argv UNUSED)
|
|
Karsten Hopp |
6053b4 |
{
|
|
Karsten Hopp |
6053b4 |
int n = 0;
|
|
Karsten Hopp |
6053b4 |
+ #ifdef FEAT_WINDOWS
|
|
Karsten Hopp |
6053b4 |
+ win_T *w;
|
|
Karsten Hopp |
6053b4 |
|
|
Karsten Hopp |
6053b4 |
for (w = firstwin; w != NULL; w = w->w_next)
|
|
Karsten Hopp |
6053b4 |
+ #endif
|
|
Karsten Hopp |
6053b4 |
++n;
|
|
Karsten Hopp |
6053b4 |
return scheme_make_integer(n);
|
|
Karsten Hopp |
6053b4 |
}
|
|
Karsten Hopp |
6053b4 |
***************
|
|
Karsten Hopp |
6053b4 |
*** 1701,1712 ****
|
|
Karsten Hopp |
6053b4 |
Vim_Prim *prim = (Vim_Prim *)data;
|
|
Karsten Hopp |
6053b4 |
vim_mz_buffer *buf;
|
|
Karsten Hopp |
6053b4 |
Scheme_Object *list;
|
|
Karsten Hopp |
6053b4 |
! win_T *w;
|
|
Karsten Hopp |
6053b4 |
|
|
Karsten Hopp |
6053b4 |
buf = get_buffer_arg(prim->name, 0, argc, argv);
|
|
Karsten Hopp |
6053b4 |
list = scheme_null;
|
|
Karsten Hopp |
6053b4 |
|
|
Karsten Hopp |
6053b4 |
! for (w = firstwin; w != NULL; w = w->w_next)
|
|
Karsten Hopp |
6053b4 |
if (w->w_buffer == buf->buf)
|
|
Karsten Hopp |
6053b4 |
{
|
|
Karsten Hopp |
6053b4 |
list = scheme_make_pair(window_new(w), list);
|
|
Karsten Hopp |
6053b4 |
--- 1703,1716 ----
|
|
Karsten Hopp |
6053b4 |
Vim_Prim *prim = (Vim_Prim *)data;
|
|
Karsten Hopp |
6053b4 |
vim_mz_buffer *buf;
|
|
Karsten Hopp |
6053b4 |
Scheme_Object *list;
|
|
Karsten Hopp |
6053b4 |
! win_T *w = firstwin;
|
|
Karsten Hopp |
6053b4 |
|
|
Karsten Hopp |
6053b4 |
buf = get_buffer_arg(prim->name, 0, argc, argv);
|
|
Karsten Hopp |
6053b4 |
list = scheme_null;
|
|
Karsten Hopp |
6053b4 |
|
|
Karsten Hopp |
6053b4 |
! #ifdef FEAT_WINDOWS
|
|
Karsten Hopp |
6053b4 |
! for ( ; w != NULL; w = w->w_next)
|
|
Karsten Hopp |
6053b4 |
! #endif
|
|
Karsten Hopp |
6053b4 |
if (w->w_buffer == buf->buf)
|
|
Karsten Hopp |
6053b4 |
{
|
|
Karsten Hopp |
6053b4 |
list = scheme_make_pair(window_new(w), list);
|
|
Karsten Hopp |
6053b4 |
***************
|
|
Karsten Hopp |
6053b4 |
*** 1755,1768 ****
|
|
Karsten Hopp |
6053b4 |
|
|
Karsten Hopp |
6053b4 |
/* (get-win-num [window]) */
|
|
Karsten Hopp |
6053b4 |
static Scheme_Object *
|
|
Karsten Hopp |
6053b4 |
! get_window_num(void *data, int argc, Scheme_Object **argv)
|
|
Karsten Hopp |
6053b4 |
{
|
|
Karsten Hopp |
6053b4 |
Vim_Prim *prim = (Vim_Prim *)data;
|
|
Karsten Hopp |
6053b4 |
win_T *win = get_window_arg(prim->name, 0, argc, argv)->win;
|
|
Karsten Hopp |
6053b4 |
- int nr = 1;
|
|
Karsten Hopp |
6053b4 |
win_T *wp;
|
|
Karsten Hopp |
6053b4 |
|
|
Karsten Hopp |
6053b4 |
for (wp = firstwin; wp != win; wp = wp->w_next)
|
|
Karsten Hopp |
6053b4 |
++nr;
|
|
Karsten Hopp |
6053b4 |
|
|
Karsten Hopp |
6053b4 |
return scheme_make_integer(nr);
|
|
Karsten Hopp |
6053b4 |
--- 1759,1774 ----
|
|
Karsten Hopp |
6053b4 |
|
|
Karsten Hopp |
6053b4 |
/* (get-win-num [window]) */
|
|
Karsten Hopp |
6053b4 |
static Scheme_Object *
|
|
Karsten Hopp |
6053b4 |
! get_window_num(void *data UNUSED, int argc UNUSED, Scheme_Object **argv UNUSED)
|
|
Karsten Hopp |
6053b4 |
{
|
|
Karsten Hopp |
6053b4 |
+ int nr = 1;
|
|
Karsten Hopp |
6053b4 |
+ #ifdef FEAT_WINDOWS
|
|
Karsten Hopp |
6053b4 |
Vim_Prim *prim = (Vim_Prim *)data;
|
|
Karsten Hopp |
6053b4 |
win_T *win = get_window_arg(prim->name, 0, argc, argv)->win;
|
|
Karsten Hopp |
6053b4 |
win_T *wp;
|
|
Karsten Hopp |
6053b4 |
|
|
Karsten Hopp |
6053b4 |
for (wp = firstwin; wp != win; wp = wp->w_next)
|
|
Karsten Hopp |
6053b4 |
+ #endif
|
|
Karsten Hopp |
6053b4 |
++nr;
|
|
Karsten Hopp |
6053b4 |
|
|
Karsten Hopp |
6053b4 |
return scheme_make_integer(nr);
|
|
Karsten Hopp |
6053b4 |
***************
|
|
Karsten Hopp |
6053b4 |
*** 1773,1786 ****
|
|
Karsten Hopp |
6053b4 |
get_window_by_num(void *data, int argc, Scheme_Object **argv)
|
|
Karsten Hopp |
6053b4 |
{
|
|
Karsten Hopp |
6053b4 |
Vim_Prim *prim = (Vim_Prim *)data;
|
|
Karsten Hopp |
6053b4 |
! win_T *win;
|
|
Karsten Hopp |
6053b4 |
int fnum;
|
|
Karsten Hopp |
6053b4 |
|
|
Karsten Hopp |
6053b4 |
fnum = SCHEME_INT_VAL(GUARANTEE_INTEGER(prim->name, 0));
|
|
Karsten Hopp |
6053b4 |
if (fnum < 1)
|
|
Karsten Hopp |
6053b4 |
scheme_signal_error(_("window index is out of range"));
|
|
Karsten Hopp |
6053b4 |
|
|
Karsten Hopp |
6053b4 |
! for (win = firstwin; win != NULL; win = win->w_next, --fnum)
|
|
Karsten Hopp |
6053b4 |
if (fnum == 1) /* to be 1-based */
|
|
Karsten Hopp |
6053b4 |
return window_new(win);
|
|
Karsten Hopp |
6053b4 |
|
|
Karsten Hopp |
6053b4 |
--- 1779,1794 ----
|
|
Karsten Hopp |
6053b4 |
get_window_by_num(void *data, int argc, Scheme_Object **argv)
|
|
Karsten Hopp |
6053b4 |
{
|
|
Karsten Hopp |
6053b4 |
Vim_Prim *prim = (Vim_Prim *)data;
|
|
Karsten Hopp |
6053b4 |
! win_T *win = firstwin;
|
|
Karsten Hopp |
6053b4 |
int fnum;
|
|
Karsten Hopp |
6053b4 |
|
|
Karsten Hopp |
6053b4 |
fnum = SCHEME_INT_VAL(GUARANTEE_INTEGER(prim->name, 0));
|
|
Karsten Hopp |
6053b4 |
if (fnum < 1)
|
|
Karsten Hopp |
6053b4 |
scheme_signal_error(_("window index is out of range"));
|
|
Karsten Hopp |
6053b4 |
|
|
Karsten Hopp |
6053b4 |
! #ifdef FEAT_WINDOWS
|
|
Karsten Hopp |
6053b4 |
! for ( ; win != NULL; win = win->w_next, --fnum)
|
|
Karsten Hopp |
6053b4 |
! #endif
|
|
Karsten Hopp |
6053b4 |
if (fnum == 1) /* to be 1-based */
|
|
Karsten Hopp |
6053b4 |
return window_new(win);
|
|
Karsten Hopp |
6053b4 |
|
|
Karsten Hopp |
6053b4 |
*** ../vim-7.3.794/src/Makefile 2012-11-20 17:03:23.000000000 +0100
|
|
Karsten Hopp |
6053b4 |
--- src/Makefile 2013-01-30 17:34:55.000000000 +0100
|
|
Karsten Hopp |
6053b4 |
***************
|
|
Karsten Hopp |
6053b4 |
*** 1345,1350 ****
|
|
Karsten Hopp |
6053b4 |
--- 1345,1352 ----
|
|
Karsten Hopp |
6053b4 |
|
|
Karsten Hopp |
6053b4 |
DEPEND_CFLAGS = -DPROTO -DDEPEND -DFEAT_GUI $(LINT_CFLAGS)
|
|
Karsten Hopp |
6053b4 |
|
|
Karsten Hopp |
6053b4 |
+ # Note: MZSCHEME_LIBS must come before LIBS, because LIBS adds -lm which is
|
|
Karsten Hopp |
6053b4 |
+ # needed by racket.
|
|
Karsten Hopp |
6053b4 |
ALL_LIB_DIRS = $(GUI_LIBS_DIR) $(X_LIBS_DIR)
|
|
Karsten Hopp |
6053b4 |
ALL_LIBS = \
|
|
Karsten Hopp |
6053b4 |
$(GUI_LIBS1) \
|
|
Karsten Hopp |
6053b4 |
***************
|
|
Karsten Hopp |
6053b4 |
*** 1353,1362 ****
|
|
Karsten Hopp |
6053b4 |
$(X_PRE_LIBS) \
|
|
Karsten Hopp |
6053b4 |
$(X_LIBS) \
|
|
Karsten Hopp |
6053b4 |
$(X_EXTRA_LIBS) \
|
|
Karsten Hopp |
6053b4 |
$(LIBS) \
|
|
Karsten Hopp |
6053b4 |
$(EXTRA_LIBS) \
|
|
Karsten Hopp |
6053b4 |
$(LUA_LIBS) \
|
|
Karsten Hopp |
6053b4 |
- $(MZSCHEME_LIBS) \
|
|
Karsten Hopp |
6053b4 |
$(PERL_LIBS) \
|
|
Karsten Hopp |
6053b4 |
$(PYTHON_LIBS) \
|
|
Karsten Hopp |
6053b4 |
$(PYTHON3_LIBS) \
|
|
Karsten Hopp |
6053b4 |
--- 1355,1364 ----
|
|
Karsten Hopp |
6053b4 |
$(X_PRE_LIBS) \
|
|
Karsten Hopp |
6053b4 |
$(X_LIBS) \
|
|
Karsten Hopp |
6053b4 |
$(X_EXTRA_LIBS) \
|
|
Karsten Hopp |
6053b4 |
+ $(MZSCHEME_LIBS) \
|
|
Karsten Hopp |
6053b4 |
$(LIBS) \
|
|
Karsten Hopp |
6053b4 |
$(EXTRA_LIBS) \
|
|
Karsten Hopp |
6053b4 |
$(LUA_LIBS) \
|
|
Karsten Hopp |
6053b4 |
$(PERL_LIBS) \
|
|
Karsten Hopp |
6053b4 |
$(PYTHON_LIBS) \
|
|
Karsten Hopp |
6053b4 |
$(PYTHON3_LIBS) \
|
|
Karsten Hopp |
6053b4 |
*** ../vim-7.3.794/src/version.c 2013-01-30 17:30:14.000000000 +0100
|
|
Karsten Hopp |
6053b4 |
--- src/version.c 2013-01-30 17:38:25.000000000 +0100
|
|
Karsten Hopp |
6053b4 |
***************
|
|
Karsten Hopp |
6053b4 |
*** 727,728 ****
|
|
Karsten Hopp |
6053b4 |
--- 727,730 ----
|
|
Karsten Hopp |
6053b4 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
6053b4 |
+ /**/
|
|
Karsten Hopp |
6053b4 |
+ 795,
|
|
Karsten Hopp |
6053b4 |
/**/
|
|
Karsten Hopp |
6053b4 |
|
|
Karsten Hopp |
6053b4 |
--
|
|
Karsten Hopp |
6053b4 |
GUEST: He's killed the best man!
|
|
Karsten Hopp |
6053b4 |
SECOND GUEST: (holding a limp WOMAN) He's killed my auntie.
|
|
Karsten Hopp |
6053b4 |
FATHER: No, please! This is supposed to be a happy occasion! Let's
|
|
Karsten Hopp |
6053b4 |
not bicker and argue about who killed who ...
|
|
Karsten Hopp |
6053b4 |
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
|
|
Karsten Hopp |
6053b4 |
|
|
Karsten Hopp |
6053b4 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
6053b4 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
6053b4 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
6053b4 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|