<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<div>
<div id="x_compose-container" itemscope="" itemtype="https://schema.org/EmailMessage" style="direction:ltr">
<span itemprop="creator" itemscope="" itemtype="https://schema.org/Organization"><span itemprop="name"></span></span>
<div>
<div>
<div style="direction:ltr">I’m also interested in knowing this since I need to port a bunch of libraries from scilab 4/5 to version 6.</div>
<div style="direction:ltr"></div>
<div style="direction:ltr">The documentation is a bit confusing in this area.</div>
<div><br>
</div>
<div style="direction:ltr">A tiny example with minimalistic code and a Makefile showing best practices for C and C++ in scilab 6 would be great!</div>
<div><br>
</div>
<div style="direction:ltr">Cheers,</div>
<div style="direction:ltr">Arvid</div>
</div>
<div><br>
</div>
<div class="x_acompli_signature">Hämta <a href="https://aka.ms/o0ukef">Outlook för iOS</a></div>
</div>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> dev <dev-bounces@lists.scilab.org> on behalf of Stéphane Mottelet <stephane.mottelet@utc.fr><br>
<b>Sent:</b> Tuesday, February 13, 2018 4:45:41 PM<br>
<b>To:</b> List dedicated to development questions<br>
<b>Subject:</b> [Scilab-Dev] Evolution of Scilab API</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:11pt;">
<div class="PlainText">Hello,<br>
<br>
I am a bit puzzled by the evolution of Scilab api since Scilab 5.x <br>
versions. I have understood that the old stack system has dissapeared, <br>
but now I am very confused because it seems that two different ways of <br>
interfacing C code do exist. For example<br>
<br>
#include "api_scilab.h"<br>
#include <localization.h><br>
#include <string.h><br>
#include "Scierror.h"<br>
int fun(char *fname, void *pvApiCtx)<br>
<br>
or<br>
<br>
#include "api_scilab.h"<br>
#include <localization.h><br>
#include <string.h><br>
#include "Scierror.h"<br>
int fun(scilabEnv env, int nin, scilabVar* in, int nopt, scilabOpt opt, <br>
int nout, scilabVar* out)<br>
<br>
Is the first snipplet of code above considered as obsolete ?<br>
<br>
Thanks for help<br>
<br>
S.<br>
<br>
<br>
-- <br>
Stéphane Mottelet<br>
Ingénieur de recherche<br>
EA 4297 Transformations Intégrées de la Matière Renouvelable<br>
Département Génie des Procédés Industriels<br>
Sorbonne Universités - Université de Technologie de Compiègne<br>
CS 60319, 60203 Compiègne cedex<br>
Tel : +33(0)344234688<br>
<a href="http://www.utc.fr/~mottelet">http://www.utc.fr/~mottelet</a><br>
<br>
_______________________________________________<br>
dev mailing list<br>
dev@lists.scilab.org<br>
<a href="http://lists.scilab.org/mailman/listinfo/dev">http://lists.scilab.org/mailman/listinfo/dev</a><br>
</div>
</span></font>
</body>
</html>