[slim-vim] buffer-name patch for Vim+ECL

Larry Clapp larry at theclapp.org
Mon May 22 07:23:13 CDT 2006


On Sun, May 21, 2006 at 05:59:45PM -0700, Brad Beveridge wrote:
> This patch adds the ability to get the name of a buffer.  You will
> need this for the next check-in I do on the ecl-slime tree.

Disclaimer: I have not applied your patch yet, only looked at it.

> diff -rN old-vim+async+ecl/src/if_ecl.c new-vim+async+ecl/src/if_ecl.c
[snip]
> 449c460
> <     static cl_object safe_eval = 0;
> ---
> >     static cl_object safe_eval = Cnil;
> 451c462
> <     if (safe_eval == 0)
> ---
> >     if (safe_eval == Cnil)

These two lines

    static cl_object safe_eval = 0;
    if (safe_eval == 0)

used Cnil in Jim's original code.  I changed them[1] to use 0 because
using Cnil caused a compile error under Cygwin, I think because Cnil
is an offset to an array stored (in Windows) in a DLL, and thus the
compiler cannot calculate its address statically, and thus you cannot
assign it to a "static" pointer.  Jim didn't object.[2]

Any particular reason you changed them back?

-- Larry


[1] http://www.lispniks.com/pipermail/slim-vim/2006-April/000048.html
[2] http://www.lispniks.com/pipermail/slim-vim/2006-April/000050.html



More information about the slim-vim mailing list