From: Sadrul Habib Chowdhury Date: Thu, 11 Jun 2009 19:05:59 +0000 (-0400) Subject: Wrap around with PY_BINDING for python scripting support. X-Git-Url: https://repo.or.cz/w/screen-lua.git/commitdiff_plain/62ece7b17168f29f04022a3fb58c33857715bbbc Wrap around with PY_BINDING for python scripting support. --- diff --git a/src/acconfig.h b/src/acconfig.h index fb46c63..6cf4d4e 100644 --- a/src/acconfig.h +++ b/src/acconfig.h @@ -168,6 +168,7 @@ /*Include the binding you would like to use.*/ #ifdef SCRIPT #define LUA_BINDING +#define PY_BINDING #endif #undef BUILTIN_TELNET diff --git a/src/script.c b/src/script.c index 9e2fd39..28e8afb 100644 --- a/src/script.c +++ b/src/script.c @@ -42,7 +42,9 @@ register_binding (struct binding *new_binding) extern struct binding lua_binding; #endif +#ifdef PY_BINDING extern struct binding py_binding; +#endif void LoadBindings(void) { @@ -50,7 +52,9 @@ void LoadBindings(void) register_binding(&lua_binding); #endif +#ifdef PY_BINDING register_binding(&py_binding); +#endif } void