summaryrefslogtreecommitdiff
path: root/etc/scilab_toolbox.quit
diff options
context:
space:
mode:
authorrupak2019-08-09 18:23:51 +0530
committerrupak2019-08-09 18:23:51 +0530
commit85bde50698bbdfd891ef194cd700d9a659bd50cd (patch)
tree5b09ea04150f1e11a18022e2145817d84828d563 /etc/scilab_toolbox.quit
downloadfossee-scilab-octave-toolbox-85bde50698bbdfd891ef194cd700d9a659bd50cd.tar.gz
fossee-scilab-octave-toolbox-85bde50698bbdfd891ef194cd700d9a659bd50cd.tar.bz2
fossee-scilab-octave-toolbox-85bde50698bbdfd891ef194cd700d9a659bd50cd.zip
first commit
Diffstat (limited to 'etc/scilab_toolbox.quit')
-rw-r--r--etc/scilab_toolbox.quit37
1 files changed, 37 insertions, 0 deletions
diff --git a/etc/scilab_toolbox.quit b/etc/scilab_toolbox.quit
new file mode 100644
index 0000000..f3ee38e
--- /dev/null
+++ b/etc/scilab_toolbox.quit
@@ -0,0 +1,37 @@
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+
+// Some specific hooks can be specify here when the module is unloaded.
+
+function quitModule()
+
+ etc_tlbx = get_absolute_file_path("scilab_toolbox.quit");
+ etc_tlbx = getshortpathname(etc_tlbx);
+ root_tlbx = strncpy( etc_tlbx, length(etc_tlbx)-length("\etc\") );
+
+ //unlink libraries
+ [bOK, ilib] = c_link('skeleton_cpp');
+ if bOK then
+ ulink(ilib);
+ end
+
+ [bOK, ilib] = c_link('skeleton_c');
+ if bOK then
+ ulink(ilib);
+ end
+
+ [bOK, ilib] = c_link('skeleton_fortran');
+ if bOK then
+ ulink(ilib);
+ end
+
+ // Remove Preferences GUI
+ // =============================================================================
+ if getscilabmode() == "STD" then
+ removeModulePreferences(root_tlbx);
+ end
+
+endfunction
+
+
+quitModule();
+clear quitModule;