Luis Carvalho wrote:
>>> Below is a minor diff to your patch.
> 
> Thank you. I'm attaching an updated version of the patch with a few more
> changes. I should probably find a place to put the latest version of the 
> patch...

I gave this a try on Windows. With the following patch to Make_ming.mak,
it compiles fine. I've done a couple of tests and it looks OK so far.
The only possible issue is with C runtime compatibility and loading DLLs
(compiled Lua extensions). Getting CRT versions that match is a fiddly
issue. That's nothing new for Windows Lua, though, so that's not an
issue with the patch.

Paul.



--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

diff --git a/src/Make_ming.mak b/src/Make_ming.mak
--- a/src/Make_ming.mak
+++ b/src/Make_ming.mak
@@ -180,6 +180,18 @@
 endif
 
 
+#      Lua interface:
+#        LUA=[Path to LUA directory]
+#        LUA_VER=[LUA version, eg 51] (default is 51)
+#LUA=c:/Lua
+ifdef LUA
+ifndef LUA_VER
+LUA_VER = 51
+endif
+LUAINC += -I$(LUA)/include
+endif
+
+
 #      Ruby interface:
 #        RUBY=[Path to Ruby directory]
 #        DYNAMIC_RUBY=yes (to load the Ruby DLL dynamically)
@@ -303,6 +315,10 @@
 ifeq (yes, $(DYNAMIC_TCL))
 CFLAGS += -DDYNAMIC_TCL -DDYNAMIC_TCL_DLL=\"tcl$(TCL_VER).dll\"
 endif
+endif
+
+ifdef LUA
+CFLAGS += -DFEAT_LUA $(LUAINC)
 endif
 
 ifeq ($(POSTSCRIPT),yes)
@@ -420,6 +436,9 @@
 ifdef TCL
 OBJ += $(OUTDIR)/if_tcl.o
 endif
+ifdef LUA
+OBJ += $(OUTDIR)/if_lua.o
+endif
 ifeq ($(CSCOPE),yes)
 OBJ += $(OUTDIR)/if_cscope.o
 endif
@@ -482,6 +501,10 @@
 else
 LIB += -ltcl$(TCL_VER)
 endif
+endif
+
+ifdef LUA
+LIB += $(LUA)/bin/lua$(LUA_VER).dll
 endif
 
 ifeq (yes, $(OLE))

Raspunde prin e-mail lui