To: vim-dev@vim.org Subject: Patch 6.0ax.015 Fcc: outbox From: Bram Moolenaar ------------ Patch 6.0ax.015 Problem: Two initializations don't work for old compilers. (John Basset) Solution: Move the assignments to a separate statement. Files: src/eval.c *** ../vim60ax.14/src/eval.c Mon Sep 24 15:30:27 2001 --- src/eval.c Mon Sep 24 20:56:45 2001 *************** *** 3027,3035 **** VAR retvar; { #ifdef FEAT_CINDENT ! pos_T pos = curwin->w_cursor; linenr_T lnum; lnum = get_var_lnum(argvars); if (lnum >= 1 && lnum <= curbuf->b_ml.ml_line_count) { --- 3027,3036 ---- VAR retvar; { #ifdef FEAT_CINDENT ! pos_T pos; linenr_T lnum; + pos = curwin->w_cursor; lnum = get_var_lnum(argvars); if (lnum >= 1 && lnum <= curbuf->b_ml.ml_line_count) { *************** *** 4793,4801 **** VAR retvar; { #ifdef FEAT_LISP ! pos_T pos = curwin->w_cursor; linenr_T lnum; lnum = get_var_lnum(argvars); if (lnum >= 1 && lnum <= curbuf->b_ml.ml_line_count) { --- 4794,4803 ---- VAR retvar; { #ifdef FEAT_LISP ! pos_T pos; linenr_T lnum; + pos = curwin->w_cursor; lnum = get_var_lnum(argvars); if (lnum >= 1 && lnum <= curbuf->b_ml.ml_line_count) { *** ../vim60ax.14/src/version.c Mon Sep 24 21:03:03 2001 --- src/version.c Mon Sep 24 21:02:39 2001 *************** *** 608,609 **** --- 608,611 ---- { /* Add new patch number below this line */ + /**/ + 15, /**/ -- ARTHUR: You are indeed brave Sir knight, but the fight is mine. BLACK KNIGHT: Had enough? ARTHUR: You stupid bastard. You havn't got any arms left. "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net \\\ ((( Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim ))) \\\ Help me helping AIDS orphans in Uganda - http://iccf-holland.org ///