summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSadrul Habib Chowdhury <sadrul@users.sourceforge.net>2009-06-11 15:05:59 -0400
committerSadrul Habib Chowdhury <sadrul@users.sourceforge.net>2009-06-11 15:05:59 -0400
commit62ece7b17168f29f04022a3fb58c33857715bbbc (patch)
treee3f85bb8f9ce3a0453ef8531ada105da99bec3a1
parent67e45fcd90da999c77980068b975753a42ab1628 (diff)
downloadscreen-62ece7b17168f29f04022a3fb58c33857715bbbc.tar.gz
Wrap around with PY_BINDING for python scripting support.
-rw-r--r--src/acconfig.h1
-rw-r--r--src/script.c4
2 files changed, 5 insertions, 0 deletions
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