cosmetic, rename functions
[scilab.git] / scilab / modules / core / src / cpp / core_gw.cpp
index 73ce571..8452c87 100644 (file)
@@ -23,34 +23,34 @@ using namespace types;
 
 int CoreModule::Load()
 {
-    symbol::Context::getInstance()->AddFunction(Function::createFunction(L"type", &sci_type, MODULE_NAME));
-    symbol::Context::getInstance()->AddFunction(Function::createFunction(L"getmodules", &sci_getmodules, MODULE_NAME));
-    symbol::Context::getInstance()->AddFunction(Function::createFunction(L"getdebuginfo", &sci_getdebuginfo, MODULE_NAME));
-    symbol::Context::getInstance()->AddFunction(Function::createFunction(L"getversion", &sci_getversion, MODULE_NAME));
-    symbol::Context::getInstance()->AddFunction(Function::createFunction(L"clear", &sci_clear, MODULE_NAME));
-    symbol::Context::getInstance()->AddFunction(Function::createFunction(L"banner", &sci_banner, MODULE_NAME));
-    symbol::Context::getInstance()->AddFunction(Function::createFunction(L"quit", &sci_quit, MODULE_NAME));
-    symbol::Context::getInstance()->AddFunction(Function::createFunction(L"exit", &sci_exit, MODULE_NAME));
-    symbol::Context::getInstance()->AddFunction(Function::createFunction(L"exists", &sci_exists, MODULE_NAME));
-    symbol::Context::getInstance()->AddFunction(Function::createFunction(L"isdef", &sci_isdef, MODULE_NAME));
-    symbol::Context::getInstance()->AddFunction(Function::createFunction(L"argn", &sci_argn, MODULE_NAME));
-    symbol::Context::getInstance()->AddFunction(Function::createFunction(L"global", &sci_global, MODULE_NAME));
-    symbol::Context::getInstance()->AddFunction(Function::createFunction(L"clearglobal", &sci_clearglobal, MODULE_NAME));
-    symbol::Context::getInstance()->AddFunction(Function::createFunction(L"isglobal", &sci_isglobal, MODULE_NAME));
-    symbol::Context::getInstance()->AddFunction(Function::createFunction(L"getos", &sci_getos, MODULE_NAME));
-    symbol::Context::getInstance()->AddFunction(Function::createFunction(L"getscilabmode", &sci_getscilabmode, MODULE_NAME));
-    symbol::Context::getInstance()->AddFunction(Function::createFunction(L"with_module", &sci_with_module, MODULE_NAME));
-    symbol::Context::getInstance()->AddFunction(Function::createFunction(L"lasterror", &sci_lasterror, MODULE_NAME));
-    symbol::Context::getInstance()->AddFunction(Function::createFunction(L"warning", &sci_warning, MODULE_NAME));
-    symbol::Context::getInstance()->AddFunction(Function::createFunction(L"getmd5", &sci_getmd5, MODULE_NAME));
-    symbol::Context::getInstance()->AddFunction(Function::createFunction(L"error", &sci_error, MODULE_NAME));
-    symbol::Context::getInstance()->AddFunction(Function::createFunction(L"pause", &sci_pause, MODULE_NAME));
-    symbol::Context::getInstance()->AddFunction(Function::createFunction(L"resume", &sci_resume, MODULE_NAME));
-    symbol::Context::getInstance()->AddFunction(Function::createFunction(L"abort", &sci_abort, MODULE_NAME));
-    symbol::Context::getInstance()->AddFunction(Function::createFunction(L"who", &sci_who, MODULE_NAME));
-    symbol::Context::getInstance()->AddFunction(Function::createFunction(L"stacksize", &sci_stacksize, MODULE_NAME));
-    symbol::Context::getInstance()->AddFunction(Function::createFunction(L"sciargs", &sci_sciargs, MODULE_NAME));
-    symbol::Context::getInstance()->AddFunction(Function::createFunction(L"format", &sci_format, MODULE_NAME));
-    symbol::Context::getInstance()->AddFunction(Function::createFunction(L"ieee", &sci_ieee, MODULE_NAME));
+    symbol::Context::getInstance()->addFunction(Function::createFunction(L"type", &sci_type, MODULE_NAME));
+    symbol::Context::getInstance()->addFunction(Function::createFunction(L"getmodules", &sci_getmodules, MODULE_NAME));
+    symbol::Context::getInstance()->addFunction(Function::createFunction(L"getdebuginfo", &sci_getdebuginfo, MODULE_NAME));
+    symbol::Context::getInstance()->addFunction(Function::createFunction(L"getversion", &sci_getversion, MODULE_NAME));
+    symbol::Context::getInstance()->addFunction(Function::createFunction(L"clear", &sci_clear, MODULE_NAME));
+    symbol::Context::getInstance()->addFunction(Function::createFunction(L"banner", &sci_banner, MODULE_NAME));
+    symbol::Context::getInstance()->addFunction(Function::createFunction(L"quit", &sci_quit, MODULE_NAME));
+    symbol::Context::getInstance()->addFunction(Function::createFunction(L"exit", &sci_exit, MODULE_NAME));
+    symbol::Context::getInstance()->addFunction(Function::createFunction(L"exists", &sci_exists, MODULE_NAME));
+    symbol::Context::getInstance()->addFunction(Function::createFunction(L"isdef", &sci_isdef, MODULE_NAME));
+    symbol::Context::getInstance()->addFunction(Function::createFunction(L"argn", &sci_argn, MODULE_NAME));
+    symbol::Context::getInstance()->addFunction(Function::createFunction(L"global", &sci_global, MODULE_NAME));
+    symbol::Context::getInstance()->addFunction(Function::createFunction(L"clearglobal", &sci_clearglobal, MODULE_NAME));
+    symbol::Context::getInstance()->addFunction(Function::createFunction(L"isglobal", &sci_isglobal, MODULE_NAME));
+    symbol::Context::getInstance()->addFunction(Function::createFunction(L"getos", &sci_getos, MODULE_NAME));
+    symbol::Context::getInstance()->addFunction(Function::createFunction(L"getscilabmode", &sci_getscilabmode, MODULE_NAME));
+    symbol::Context::getInstance()->addFunction(Function::createFunction(L"with_module", &sci_with_module, MODULE_NAME));
+    symbol::Context::getInstance()->addFunction(Function::createFunction(L"lasterror", &sci_lasterror, MODULE_NAME));
+    symbol::Context::getInstance()->addFunction(Function::createFunction(L"warning", &sci_warning, MODULE_NAME));
+    symbol::Context::getInstance()->addFunction(Function::createFunction(L"getmd5", &sci_getmd5, MODULE_NAME));
+    symbol::Context::getInstance()->addFunction(Function::createFunction(L"error", &sci_error, MODULE_NAME));
+    symbol::Context::getInstance()->addFunction(Function::createFunction(L"pause", &sci_pause, MODULE_NAME));
+    symbol::Context::getInstance()->addFunction(Function::createFunction(L"resume", &sci_resume, MODULE_NAME));
+    symbol::Context::getInstance()->addFunction(Function::createFunction(L"abort", &sci_abort, MODULE_NAME));
+    symbol::Context::getInstance()->addFunction(Function::createFunction(L"who", &sci_who, MODULE_NAME));
+    symbol::Context::getInstance()->addFunction(Function::createFunction(L"stacksize", &sci_stacksize, MODULE_NAME));
+    symbol::Context::getInstance()->addFunction(Function::createFunction(L"sciargs", &sci_sciargs, MODULE_NAME));
+    symbol::Context::getInstance()->addFunction(Function::createFunction(L"format", &sci_format, MODULE_NAME));
+    symbol::Context::getInstance()->addFunction(Function::createFunction(L"ieee", &sci_ieee, MODULE_NAME));
     return 1;
 }