Wrap around with PY_BINDING for python scripting support.
authorSadrul Habib Chowdhury <sadrul@users.sourceforge.net>
Thu, 11 Jun 2009 19:05:59 +0000 (11 15:05 -0400)
committerSadrul Habib Chowdhury <sadrul@users.sourceforge.net>
Thu, 11 Jun 2009 19:05:59 +0000 (11 15:05 -0400)
src/acconfig.h
src/script.c

index fb46c63..6cf4d4e 100644 (file)
 /*Include the binding you would like to use.*/
 #ifdef SCRIPT
 #define LUA_BINDING
+#define PY_BINDING
 #endif
 
 #undef BUILTIN_TELNET
index 9e2fd39..28e8afb 100644 (file)
@@ -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