add function diary
[scilab.git] / scilab / modules / output_stream / sci_gateway / cpp / output_stream_gw.cpp
index e730983..7c667be 100644 (file)
 
 #include "output_stream_gw.hxx"
 
+extern "C"
+{
+    #include "gw_output_stream.h"
+}
+
 #define MODULE_NAME L"output_stream"
 
 bool OutputStreamModule::Load()
 {
-       symbol::Context::getInstance()->AddFunction(Function::createFunction(L"disp", &sci_disp, MODULE_NAME));
-       symbol::Context::getInstance()->AddFunction(Function::createFunction(L"msprintf", &sci_msprintf, MODULE_NAME));
-       symbol::Context::getInstance()->AddFunction(Function::createFunction(L"mprintf", &sci_mprintf, MODULE_NAME));
-  return true;
+    symbol::Context::getInstance()->AddFunction(Function::createFunction(L"disp", &sci_disp, MODULE_NAME));
+    symbol::Context::getInstance()->AddFunction(Function::createFunction(L"msprintf", &sci_msprintf, MODULE_NAME));
+    symbol::Context::getInstance()->AddFunction(Function::createFunction(L"mprintf", &sci_mprintf, MODULE_NAME));
+    symbol::Context::getInstance()->AddFunction(Function::createFunction(L"diary", &sci_diary, MODULE_NAME));
+    return true;
 }