linear_algebra plugged.
[scilab.git] / scilab / modules / boolean / src / cpp / boolean_gw.cpp
index 270df51..2f095e2 100644 (file)
 */
 
 #include "boolean_gw.hxx"
+#include "context.hxx"
+#include "function.hxx"
 
+#define MODULE_NAME L"boolean"
 extern "C"
 {
        #include "gw_boolean.h"
@@ -19,9 +22,11 @@ extern "C"
 
 using namespace types;
 
-bool BooleanModule::Load()
+int BooleanModule::Load()
 {
-       symbol::Context::getInstance()->AddFunction(Function::createFunction("or", &sci_or, "boolean"));
-       return true;
+       symbol::Context::getInstance()->AddFunction(Function::createFunction(L"or", &sci_or, MODULE_NAME));
+       symbol::Context::getInstance()->AddFunction(Function::createFunction(L"and", &sci_and, MODULE_NAME));
+       symbol::Context::getInstance()->AddFunction(Function::createFunction(L"bool2s", &sci_bool2s, MODULE_NAME));
+       return 1;
 }