From fcf078c25d81ca2a9b75f6baec18ce7eb477a8f3 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sat, 1 Nov 2008 17:44:57 -0400 Subject: Added support for some AppleEvents, use Scintilla namespace on OSX. --- src/lua_interface.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/lua_interface.c') diff --git a/src/lua_interface.c b/src/lua_interface.c index 4ae435f0..beac8b40 100644 --- a/src/lua_interface.c +++ b/src/lua_interface.c @@ -16,6 +16,10 @@ l_cfunc(l, ni, "__newindex"); \ } lua_setmetatable(l, -2); } +#ifdef MAC +using namespace Scintilla; +#endif + LS *lua; bool closing = false; @@ -523,7 +527,7 @@ bool l_is_ta_table_function(const char *table, const char *function) { * argument. * @param nargs The number of arguments to pass to the Lua function to call. * @param retn Optional number of expected return values. Defaults to 0. - * @param keep_return Optoinal flag indicating whether or not to keep the return + * @param keep_return Optional flag indicating whether or not to keep the return * values at the top of the stack. If false, discards the return values. * Defaults to false. */ @@ -1247,7 +1251,11 @@ LF l_cf_buffer_find(LS *lua) { LF l_cf_buffer_text_range(LS *lua) { l_check_focused_buffer(lua, 1); +#ifndef MAC TextRange tr; +#else + Scintilla::Textrange tr; +#endif tr.chrg.cpMin = luaL_checkinteger(lua, 2); tr.chrg.cpMax = luaL_checkinteger(lua, 3); char *text = new char[tr.chrg.cpMax - tr.chrg.cpMin + 1]; -- cgit v1.2.3