Re: [Scilab-Dev] Evolution of Scilab API

2018-02-13 Thread Arvid Rosén
I'm also interested in knowing this since I need to port a bunch of libraries 
from scilab 4/5 to version 6.
The documentation is a bit confusing in this area.

A tiny example with minimalistic code and a Makefile showing best practices for 
C and C++ in scilab 6 would be great!

Cheers,
Arvid

Hämta Outlook för iOS

From: dev  on behalf of Stéphane Mottelet 

Sent: Tuesday, February 13, 2018 4:45:41 PM
To: List dedicated to development questions
Subject: [Scilab-Dev] Evolution of Scilab API

Hello,

I am a bit puzzled by the evolution of Scilab api since Scilab 5.x
versions. I have understood that the old stack system has dissapeared,
but now I am very confused because it seems that two different ways of
interfacing C code do exist. For example

#include "api_scilab.h"
#include 
#include 
#include "Scierror.h"
int fun(char *fname, void *pvApiCtx)

or

#include "api_scilab.h"
#include 
#include 
#include "Scierror.h"
int fun(scilabEnv env, int nin, scilabVar* in, int nopt, scilabOpt opt,
int nout, scilabVar* out)

Is the first snipplet of code above considered as obsolete ?

Thanks for help

S.


--
Stéphane Mottelet
Ingénieur de recherche
EA 4297 Transformations Intégrées de la Matière Renouvelable
Département Génie des Procédés Industriels
Sorbonne Universités - Université de Technologie de Compiègne
CS 60319, 60203 Compiègne cedex
Tel : +33(0)344234688
http://www.utc.fr/~mottelet

___
dev mailing list
dev@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/dev
___
dev mailing list
dev@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/dev


[Scilab-Dev] Evolution of Scilab API

2018-02-13 Thread Stéphane Mottelet

Hello,

I am a bit puzzled by the evolution of Scilab api since Scilab 5.x 
versions. I have understood that the old stack system has dissapeared, 
but now I am very confused because it seems that two different ways of 
interfacing C code do exist. For example


#include "api_scilab.h"
#include 
#include 
#include "Scierror.h"
int fun(char *fname, void *pvApiCtx)

or

#include "api_scilab.h"
#include 
#include 
#include "Scierror.h"
int fun(scilabEnv env, int nin, scilabVar* in, int nopt, scilabOpt opt, 
int nout, scilabVar* out)


Is the first snipplet of code above considered as obsolete ?

Thanks for help

S.


--
Stéphane Mottelet
Ingénieur de recherche
EA 4297 Transformations Intégrées de la Matière Renouvelable
Département Génie des Procédés Industriels
Sorbonne Universités - Université de Technologie de Compiègne
CS 60319, 60203 Compiègne cedex
Tel : +33(0)344234688
http://www.utc.fr/~mottelet

___
dev mailing list
dev@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/dev