/usr/include/scilab/stack-def.h is in scilab-include 5.5.2-4+b1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 | /*
* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
* Copyright (C) INRIA
*
* This file must be used under the terms of the CeCILL.
* This source file is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
* are also available at
* http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
*
*/
#ifndef STACK_DEF
#define STACK_DEF
#include "machine.h"
#if defined(__SCILAB_TOOLBOX__) && !defined(__INTERNAL_API_SCILAB__) && !defined(__USE_DEPRECATED_STACK_FUNCTIONS__) && !defined(__MEX_INCLUDE__)
#error Using stack-def.h is deprecated. Please use api_scilab instead (try 'help api_scilab'). Note the stack-def.h API will be removed after Scilab 6.0. You can define __USE_DEPRECATED_STACK_FUNCTIONS__ to bypass this error.
#endif
#if _LCC_ & FORDLL
#define IMPORT __declspec (dllimport)
#else
#ifdef FORDLL
#define IMPORT extern __declspec (dllimport)
#else
#define IMPORT extern
#endif
#endif
/* C version of stack.h (fortran) */
/* csiz used for character coding */
#define csiz 63
/* bsiz size of internal chain buf */
#define bsiz 4096
/* isizt maximum number of scilab variables global and local */
#define isizt 10000
/* psiz defines recursion size */
#define psiz 4096
#define nsiz 6
/* lsiz dim. of vector containing the command line */
#define lsiz 65536
/* nlgh length of variable names */
#define nlgh nsiz*4
/* vsiz size of internal scilab stack */
#define vsiz 2
/* intersiz used in interfaces */
#define intersiz 1024
#define maxdb 100
#define maxbpt 1000
/**
* @TODO : add comment
*/
typedef struct
{
#ifndef _MSC_VER
double *Stk;
#else
double Stk[vsiz];
#endif
} STACK_struct;
IMPORT STACK_struct C2F(stack);
/**
* @TODO : add comment
*/
typedef struct
{
int bot; /**< @TODO : add comment */
int top; /**< @TODO : add comment */
int idstk[nsiz*isizt]; /**< @TODO : add comment */
int lstk[isizt]; /**< @TODO : add comment */
int leps; /**< @TODO : add comment */
int bbot; /**< @TODO : add comment */
int bot0; /**< @TODO : add comment */
int infstk[isizt]; /**< @TODO : add comment */
int gbot; /**< @TODO : add comment */
int gtop; /**< @TODO : add comment */
int isiz; /**< @TODO : add comment */
} VSTK_struct;
IMPORT VSTK_struct C2F(vstk);
/**
* @TODO : add comment
*/
typedef struct
{
int ids[nsiz*psiz]; /**< @TODO : add comment */
int pstk[psiz]; /**< @TODO : add comment */
int rstk[psiz]; /**< @TODO : add comment */
int pt; /**< @TODO : add comment */
int niv; /**< @TODO : add comment */
int macr; /**< @TODO : add comment */
int paus; /**< @TODO : add comment */
int icall; /**< @TODO : add comment */
int krec; /**< @TODO : add comment */
} RECU_struct;
IMPORT RECU_struct C2F(recu);
/**
* @TODO : add comment
*/
typedef struct
{
int ddt; /**< @TODO : add comment */
int err; /**< @TODO : add comment */
int lct[8]; /**< @TODO : add comment */
int lin[lsiz]; /**< @TODO : add comment */
int lpt[6]; /**< @TODO : add comment */
int rio; /* Id input (fortran) file descriptor */
int rte; /* Id input (fortran) terminal descriptor (stdin) */
int wte; /* Id output (fortran) terminal descriptor (stdout) */
} IOP_struct;
IMPORT IOP_struct C2F(iop);
/**
* @TODO : add comment
*/
typedef struct
{
int err1; /**< @TODO : add comment */
int err2; /**< @TODO : add comment */
int errct; /**< @TODO : add comment */
int toperr; /**< @TODO : add comment */
int errpt; /**< @TODO : add comment */
int ieee; /**< @TODO : add comment */
int errcatch; /**< @TODO : add comment */
} ERRGST_struct;
IMPORT ERRGST_struct C2F(errgst);
/**
* @TODO : add comment
*/
typedef struct
{
int sym; /**< @TODO : add comment */
int syn[nsiz]; /**< @TODO : add comment */
int char1; /**< @TODO : add comment */
int fin; /**< @TODO : add comment */
int fun; /**< @TODO : add comment */
int lhs; /**< @TODO : add comment */
int rhs; /**< @TODO : add comment */
int ran[2]; /**< @TODO : add comment */
int comp[3]; /**< @TODO : add comment */
} COM_struct;
IMPORT COM_struct C2F(com);
/**
* @TODO : add comment
*/
typedef struct
{
int lbot; /**< @TODO : add comment */
int ie; /**< @TODO : add comment */
int is; /**< @TODO : add comment */
int ipal; /**< @TODO : add comment */
int nbarg; /**< @TODO : add comment */
int ladr[intersiz]; /**< @TODO : add comment */
} ADRE_struct;
IMPORT ADRE_struct C2F(adre);
/**
* @TODO : add comment
*/
typedef struct
{
int nbvars; /**< @TODO : add comment */
int iwhere[intersiz]; /**< @TODO : add comment */
int nbrows[intersiz]; /**< @TODO : add comment */
int nbcols[intersiz]; /**< @TODO : add comment */
int itflag[intersiz]; /**< @TODO : add comment */
int ntypes[intersiz]; /**< @TODO : add comment */
int lad[intersiz]; /**< @TODO : add comment */
int ladc[intersiz]; /**< @TODO : add comment */
int lhsvar[intersiz]; /**< @TODO : add comment */
} INTERSCI_struct;
IMPORT INTERSCI_struct C2F(intersci);
/**
* @TODO : add comment
*/
typedef struct
{
/* see SCI/modules/string/src/c/setScilabCharactersCodes.h */
char alfa[csiz]; /* Scilab Characters Codes 0 to 62 */
char alfb[csiz]; /* Scilab Characters Codes 63 to 124 */
char buf[bsiz]; /* buffer to exchange strings (fortran)*/
} CHA1_struct;
IMPORT CHA1_struct C2F(cha1);
/**
* @TODO : add comment
*/
typedef struct
{
int wmac; /**< @TODO : add comment */
int lcntr; /**< @TODO : add comment */
int nmacs; /**< @TODO : add comment */
int macnms[nsiz*maxdb]; /**< @TODO : add comment */
int lgptrs[maxdb + 1]; /**< @TODO : add comment */
int bptlg[maxbpt]; /**< @TODO : add comment */
} DBG_struct;
IMPORT DBG_struct C2F(dbg);
/**
* @TODO : add comment
*/
typedef struct
{
int mmode; /**< @TODO : add comment */
} MTLBC_struct;
IMPORT MTLBC_struct C2F(mtlbc);
/**
* @TODO : add comment
*/
typedef struct
{
int iero; /**< @TODO : add comment */
} IERODE_struct;
IMPORT IERODE_struct C2F(ierode);
/**
* @TODO : add comment
*/
typedef struct
{
double rownr3[2]; /**< @TODO : add comment */
double t0; /**< @TODO : add comment */
double tlast; /**< @TODO : add comment */
double toutc; /**< @TODO : add comment */
int lg0; /**< @TODO : add comment */
int lg1; /**< @TODO : add comment */
int lgx; /**< @TODO : add comment */
int iownr3[2]; /**< @TODO : add comment */
int irfnd; /**< @TODO : add comment */
int itaskc; /**< @TODO : add comment */
int ngc; /**< @TODO : add comment */
int nge; /**< @TODO : add comment */
} LSR001_struct;
IMPORT LSR001_struct C2F(lsr001);
/**
* @TODO : add comment
*/
typedef struct
{
double tret; /**< @TODO : add comment */
double rowns[209]; /**< @TODO : add comment */
double ccmax; /**< @TODO : add comment */
double el0; /**< @TODO : add comment */
double h__; /**< @TODO : add comment */
double hmin; /**< @TODO : add comment */
double hmxi; /**< @TODO : add comment */
double hu; /**< @TODO : add comment */
double rc; /**< @TODO : add comment */
double tn; /**< @TODO : add comment */
double uround; /**< @TODO : add comment */
int illin; /**< @TODO : add comment */
int init; /**< @TODO : add comment */
int lyh; /**< @TODO : add comment */
int lewt; /**< @TODO : add comment */
int lacor; /**< @TODO : add comment */
int lsavf; /**< @TODO : add comment */
int lwm; /**< @TODO : add comment */
int liwm; /**< @TODO : add comment */
int mxstep; /**< @TODO : add comment */
int mxhnil; /**< @TODO : add comment */
int nhnil; /**< @TODO : add comment */
int ntrep; /**< @TODO : add comment */
int nslast; /**< @TODO : add comment */
int nyh; /**< @TODO : add comment */
int iowns[6]; /**< @TODO : add comment */
int icf; /**< @TODO : add comment */
int ierpj; /**< @TODO : add comment */
int iersl; /**< @TODO : add comment */
int jcur; /**< @TODO : add comment */
int jstart; /**< @TODO : add comment */
int kflag; /**< @TODO : add comment */
int l; /**< @TODO : add comment */
int meth; /**< @TODO : add comment */
int miter; /**< @TODO : add comment */
int maxord; /**< @TODO : add comment */
int maxcor; /**< @TODO : add comment */
int msbp; /**< @TODO : add comment */
int mxncf; /**< @TODO : add comment */
int n; /**< @TODO : add comment */
int nq; /**< @TODO : add comment */
int nst; /**< @TODO : add comment */
int nfe; /**< @TODO : add comment */
int nje; /**< @TODO : add comment */
int nqu; /**< @TODO : add comment */
} LS0001_struct;
IMPORT LS0001_struct C2F(ls0001);
/**
* @TODO : add comment
*/
typedef struct
{
double tsw; /**< @TODO : add comment */
double rowns2[20]; /**< @TODO : add comment */
double pdnorm; /**< @TODO : add comment */
int insufr; /**< @TODO : add comment */
int insufi; /**< @TODO : add comment */
int ixpr; /**< @TODO : add comment */
int iowns2[2]; /**< @TODO : add comment */
int jtyp; /**< @TODO : add comment */
int mused; /**< @TODO : add comment */
int mxordn; /**< @TODO : add comment */
int mxords; /**< @TODO : add comment */
} LSA001_struct;
IMPORT LSA001_struct C2F(lsa001);
/**
* @TODO : add comment
*/
typedef struct
{
int lf; /**< @TODO : add comment */
int nfree; /**< @TODO : add comment */
int nf; /**< @TODO : add comment */
} SCIGSCH_struct;
IMPORT SCIGSCH_struct C2F(scigsch);
/**
* @TODO : add comment
*/
typedef struct
{
int lf; /**< @TODO : add comment */
int nx; /**< @TODO : add comment */
int nf; /**< @TODO : add comment */
} SCISCH_struct;
IMPORT SCISCH_struct C2F(scisch);
/**
* @TODO : add comment
*/
typedef union
{
struct
{
int lf; /**< @TODO : add comment */
int nfree; /**< @TODO : add comment */
int nf; /**< @TODO : add comment */
} _1; /**< @TODO : add comment */
struct
{
int lf; /**< @TODO : add comment */
int nx; /**< @TODO : add comment */
int nf; /**< @TODO : add comment */
} _2; /**< @TODO : add comment */
} SCIZGSCH_union;
IMPORT SCIZGSCH_union C2F(scizgsch);
typedef struct
{
int iflag; /* interruption flag CTRL-C */
int interruptible; /* */
} BASBRK_struct;
IMPORT BASBRK_struct C2F(basbrk);
/**
* simpmd : rational fraction simplification mode
* used in polynomials and inisci.f (core)
*/
typedef struct
{
int simpmd;
} CSIMP_struct;
IMPORT CSIMP_struct C2F(csimp);
#endif /** STACK_DEF **/
|