ext/rubypython_bridge/cbridge.c in rubypython-0.2.10 vs ext/rubypython_bridge/cbridge.c in rubypython-0.2.11

- old
+ new

@@ -1,16 +1,18 @@ #include "cbridge.h" -#import "rtop.h" +#include "rtop.h" +#include "ptor.h" +#include "rp_error.h" /* Attempt to initialize the embedded python interpreter. Return 1 if we initialize it here and 0 if the interpreter is already running. */ int rpSafeStart() { - int here; + int here = 0; if(!Py_IsInitialized()) { Py_Initialize(); here = 1; @@ -71,13 +73,12 @@ } VALUE rpCallWithModule(VALUE module, VALUE name, VALUE args) { - VALUE rArgs; VALUE rReturn; - PyObject *pModule, *pFunc, *pArgs, *pReturn; + PyObject *pModule, *pFunc; // Load the requested python module pModule = rpGetModule(module);