[slim-vim] first try, some issues
Larry Clapp
larry at theclapp.org
Sat Jul 22 21:41:21 CDT 2006
On Fri, Jul 21, 2006 at 06:08:58PM -0400, Larry Clapp wrote:
> On Fri, Jul 21, 2006 at 08:32:06PM +0100, Jim Bailey wrote:
> > On Fri, 21 Jul 2006 09:22:08 -0700
> > "Brad Beveridge" <brad.beveridge at gmail.com> wrote:
> >
> > > Oh, I see. Did Jim even add support for callbacks in the Win32
> > > mainloop?
> >
> > I didn't - I don't have a windows box....
> >
> [snip]
> > Does anyone else have the resources and desire to do this? It
> > really shouldn't be a lot of work, maybe less than a few dozen
> > lines of code most of which will just be copied from netbeans.c,
> > and I am very willing to help out as much as possible.
>
> I can do it. I have a fair knowledge of C. :) I'll email you if I
> have any questions / problems.
I made good progress today. You wouldn't think calling fileno() would
cause a segfault, would you? Well, it does if the pointer to FILE
that you pass it isn't really a pointer to FILE, but is actually some
random C int. :( Apparently for Windows inet-sockets, ECL does
non-blocking, unbuffered input, and stores the file descriptor in the
same place as the FILE* for blocking, buffered input. That took most
of the day to track down. Then I had to realize I *needed* my own
blocking read & my own buffering, and so I wrote that, and so to sum
up:
I've successfully sent "(+ 1 1)" to Swank (and gotten the response) in
native Win32 Vim7. Hopefully I can do a little clean up tomorrow and
post a new binary. But the hard part's done.
-- Larry
More information about the slim-vim
mailing list