ToolBox with more than 100 functions.
Jorge Cardona
jorgeecardona at gmail.com
Tue Jul 28 07:08:33 CEST 2009
Hi,
I got the same problem with the functions limit on a ToolBox, with the
module i can handle it creating extra structures, and what i did here
in the toolbox is add this to buildersci_gateway.sce:
for i = 0:((size(table,1)-1)/100)
t = table(1 + 100 * i:min(size(table,1),100*(i+1)),:);
ilib_build(ilib_name + "_" + string(i),t, files, libs,'.','','-I'
+ pathT + '../includes');
copyfile(pathT + "/loader.sce", pathT + "/loader_" + string(i) + ".sce");
copyfile(pathT + "/cleaner.sce", pathT + "/cleaner_" + string(i) + ".sce");
end;
fl = mopen(pathT + "/loader.sce", "w");
fc = mopen(pathT + "/cleaner.sce", "w");
for i = 0:((size(table,1)-1)/100)
mfprintf(fl, "exec " + pathT + "loader_" + string(i) + ".sce;\n");
mfprintf(fc, "exec " + pathT + "cleaner_" + string(i) + ".sce;\n");
end;
mclose(fl);
mclose(fc);
It will create several libraries and a loader_x.sce and cleaner_x.sce
for each one, it is now possible to have more than 100 functions with
this workaround :D.
Bye.
--
Jorge Eduardo Cardona
jorgeecardona at gmail.com
jorgeecardona.blogspot.com
------------------------------------------------
Linux registered user #391186
Registered machine #291871
------------------------------------------------
More information about the dev
mailing list