[slim-vim] Carbon GUI + ECL

Brad Beveridge brad.beveridge at gmail.com
Thu Sep 7 20:49:56 CDT 2006


On 07/09/06, Richard Newman <rnewman at tellme.com> wrote:
> Chaps,
>    I finally got around to trying to get these two things to work
> together. It turns out it's just a symbol conflict between the Carbon
> headers' definition of 'shadow' as an enumeration, and ECL's
> definition of it as a function.
>
>    I cracked open Vim on about 4 files in ECL, changed every
> occurrence of the shadow function to ecl_shadow, recompiled ECL, and
> now I have a GUI Vim 7.0.35 with ECL support.
>
>    I think the files I hacked were:
>
> build/c/ecl/external.h
> build/ecl/external.h
> src/c/package.d
> src/h/external.h
>
>    Probably the build/ ones were generated, but I haven't checked.
>
>    Now I'm going to try to get Slim-vim itself working again...
>
> -R

Hi Richard - I might have missed a previous post of yours, but I had
encountered this problem at one time myself.  My solution was to
redefine shadow before #including the cocoa headers.  Effectively this
will change the cocoa headers and the enum - which won't matter at all
unless Vim uses shadow (which I don't think it does).  Then ECL will
be happy.

Cheers
Brad


More information about the slim-vim mailing list