#include <stdio.h>#include <string.h>#include <ctype.h>#include <stdlib.h>Include dependency graph for intersci-n.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Data Structures | |
| struct | var |
| struct | basfun |
| struct | forsub |
Defines | |
| #define | VERSION "3.0" |
| #define | DATE "SEP 2000" |
| #define | MAXARG 50 |
| #define | MAXCALL 2000 |
| #define | MAXEL 50 |
| #define | MAXLINE 1000 |
| #define | MAXNAM 128 |
| #define | MAXVAR 200 |
| #define | TESTLISTELEMENTS 1 |
| #define | MAXFUN 99 |
| #define | CHAR 1 |
| #define | INT 2 |
| #define | DOUBLE 3 |
| #define | REAL 4 |
| #define | EXTERNAL 5 |
| #define | CSTRINGV 6 |
| #define | LOGICAL 7 |
| #define | MPOINTER 8 |
| #define | PREDEF 9 |
| #define | SMPOINTER 9 |
| #define | LPOINTER 10 |
| #define | BPOINTER 11 |
| #define | OPOINTER 12 |
| #define | BOOLEAN 13 |
| #define | DEC_CHAR 1 |
| #define | DEC_INT 2 |
| #define | DEC_DOUBLE 3 |
| #define | DEC_REAL 4 |
| #define | DEC_LOGICAL 5 |
| #define | DEC_DATA 6 |
| #define | DEC_UL 7 |
| #define | DEC_INIT 8 |
| #define | DEC_SMAT 9 |
| #define | DEC_SPARSE 10 |
| #define | DEC_IPTR 11 |
| #define | DEC_DPTR 12 |
| #define | DEC_RPTR 13 |
| #define | DEC_CPTR 14 |
| #define | DEC_SPARSEPTR 15 |
| #define | DIMFOREXT 0 |
| #define | COLUMN 1 |
| #define | LIST 2 |
| #define | TLIST 3 |
| #define | MATRIX 4 |
| #define | POLYNOM 5 |
| #define | ROW 6 |
| #define | SCALAR 7 |
| #define | SEQUENCE 8 |
| #define | STRING 9 |
| #define | WORK 10 |
| #define | EMPTY 11 |
| #define | ANY 12 |
| #define | VECTOR 13 |
| #define | STRINGMAT 14 |
| #define | SCIMPOINTER 15 |
| #define | IMATRIX 16 |
| #define | SCISMPOINTER 17 |
| #define | SCILPOINTER 18 |
| #define | BMATRIX 19 |
| #define | SCIBPOINTER 20 |
| #define | SCIOPOINTER 21 |
| #define | SPARSE 22 |
| #define | MLIST 23 |
| #define | NAME 1 |
| #define | VALUE 2 |
| #define | __PARAMS(paramlist) () |
Typedefs | |
| typedef int | IVAR |
| typedef var | VAR |
| typedef var * | VARPTR |
| typedef basfun | BASFUN |
| typedef basfun * | BASFUNPTR |
| typedef forsub | FORSUB |
| typedef forsub * | FORSUBPTR |
Functions | |
| VARPTR VarAlloc | __PARAMS ((void)) |
| void WriteInfoCode | __PARAMS ((FILE *f)) |
| int GetNumberInScilabCall | __PARAMS ((int ivar)) |
| char *SGetSciType | __PARAMS ((int type)) |
| char *SGetForTypeAbrev | __PARAMS ((VARPTR var)) |
| void AddForName | __PARAMS ((IVAR ivar, char *name, char *cname, IVAR ivar1)) |
| void ChangeForName1 | __PARAMS ((VARPTR var, char *name)) |
| char *Forname2Int | __PARAMS ((VARPTR, int)) |
| void GenFundef | __PARAMS ((char *file, int interf)) |
| int GetBasType | __PARAMS ((char *sname)) |
| int GetForType | __PARAMS ((char *type)) |
| IVAR GetExistVar | __PARAMS ((char *name)) |
| IVAR GetVar | __PARAMS ((char *name, int p)) |
| void OptVar | __PARAMS (()) |
| int ParseLine | __PARAMS ((char *s, char **words)) |
| int ReadListElement | __PARAMS ((FILE *f, char *varlistname, IVAR iivar, int nel, int)) |
| void ReadListFile | __PARAMS ((char *listname, char *varlistname, IVAR ivar, int)) |
| void WriteArgCheck | __PARAMS ((FILE *f, int i)) |
| void WriteCallRest | __PARAMS ((FILE *f, IVAR ivar, int farg, char *call)) |
| void WriteCallConvertion | __PARAMS ((FILE *f, IVAR ivar, char *farg, char *barg, char *call)) |
| void WriteExternalVariableOutput | __PARAMS ((FILE *f, VARPTR var, int insidelist, int nel)) |
| void WriteHeader | __PARAMS ((FILE *f, char *fname0, char *fname)) |
| void WriteMainHeader | __PARAMS ((FILE *f, char *fname)) |
| void WriteListAnalysis | __PARAMS ((FILE *f, int i, char *)) |
| void WriteVariable | __PARAMS ((FILE *f, VARPTR var, IVAR ivar, int insidelist, int nel)) |
| void WriteVariableOutput | __PARAMS ((FILE *f, VARPTR var, int convert, int insidelist, int nel)) |
| void WriteMain | __PARAMS ((FILE *f, char *file)) |
| void | FCprintf (FILE *, char *fmt,...) |
| void | Fprintf (FILE *, int, char *fmt,...) |
| void white | __PARAMS ((FILE *f, int ind)) |
| void AddDeclare | __PARAMS ((int type, char *declaration)) |
| void WriteCallRestCheck | __PARAMS ((FILE *f, VARPTR var, char *name, int iel, int flag)) |
| void Check | __PARAMS ((FILE *f, VARPTR var, int nel)) |
| void CheckSquare | __PARAMS ((FILE *f, VARPTR var, char *str, char *str1)) |
| void CheckOptSquare | __PARAMS ((FILE *f, VARPTR var, char *str)) |
| void OptvarGetSize | __PARAMS ((char *optvar, char *size, char *data)) |
| void WriteAddInter | __PARAMS ((char *file)) |
| void ChangeForName2 | __PARAMS ((VARPTR var, char *format,...)) |
| void StrGen | __PARAMS ((char *strl, VARPTR var)) |
| int main | __PARAMS ((int argc, char **argv)) |
| void WriteOptArg | __PARAMS ((FILE *f, VARPTR var)) |
| void WriteListAnalysis | __PARAMS ((FILE *f, int i, char *list_type)) |
| void AddDeclare1 | __PARAMS ((int type, char *format,...)) |
| char *Forname2Int | __PARAMS ((VARPTR var, int i)) |
| void ReadListFile | __PARAMS ((char *listname, char *varlistname, IVAR ivar, int stack_position)) |
| int ReadListElement | __PARAMS ((FILE *f, char *varlistname, IVAR iivar, int nel, int stack_position)) |
| void OutLISTarg | __PARAMS ((FILE *f, VARPTR var, VARPTR var1, int insidelist, int nel)) |
| void GetDim | __PARAMS ((char *str, IVAR ivar)) |
Variables | |
| VARPTR | variables [MAXVAR] |
| int | nVariable |
| BASFUNPTR | basfun |
| int | icre |
| int | indent |
| int | pass |
| FORSUBPTR | forsub |
| int | nFun |
| char * | funNames [MAXFUN] |
| char | target |
| #define __PARAMS | ( | paramlist | ) | () |
functions
Definition at line 177 of file intersci-n.h.
| #define ANY 12 |
Definition at line 77 of file intersci-n.h.
Referenced by ReadFunction(), ReadListElement(), WriteArgCheck(), WriteCallConvertion(), WriteCallRest(), WriteListAnalysis(), and WriteVariableOutput().
| #define BMATRIX 19 |
Definition at line 84 of file intersci-n.h.
Referenced by OutLISTarg(), ReadFunction(), ReadListElement(), SGetExtForTypeAbrev(), SGetExtForTypeStack(), WriteArgCheck(), WriteCallConvertion(), WriteCallRest(), WriteExternalVariableOutput(), WriteListAnalysis(), and WriteVariableOutput().
| #define BOOLEAN 13 |
Definition at line 41 of file intersci-n.h.
Referenced by CheckBMATRIX(), CreBMATRIX(), and GetBMATRIX().
| #define BPOINTER 11 |
| #define CHAR 1 |
Definition at line 28 of file intersci-n.h.
| #define COLUMN 1 |
Definition at line 66 of file intersci-n.h.
Referenced by OutLISTarg(), ReadFunction(), ReadListElement(), WriteArgCheck(), WriteCallConvertion(), WriteCallRest(), WriteExternalVariableOutput(), WriteListAnalysis(), and WriteVariableOutput().
| #define CSTRINGV 6 |
Definition at line 33 of file intersci-n.h.
Referenced by CheckCreateOrder(), CreDIMFOREXT(), CreSTRINGMAT(), GetSTRINGMAT(), WriteCallConvertion(), WriteCallRest(), and WriteVariable().
| #define DATE "SEP 2000" |
| #define DEC_CHAR 1 |
| #define DEC_CPTR 14 |
| #define DEC_DATA 6 |
Definition at line 50 of file intersci-n.h.
Referenced by OptMATRIX(), WriteArgCheck(), WriteDeclaration(), WriteFunctionCode(), and WriteOptArg().
| #define DEC_DOUBLE 3 |
Definition at line 47 of file intersci-n.h.
Referenced by CreDIMFOREXT(), WriteArgCheck(), and WriteCallRest().
| #define DEC_DPTR 12 |
| #define DEC_INIT 8 |
Definition at line 52 of file intersci-n.h.
Referenced by CreSTRING(), WriteDeclaration(), and WriteInitDeclarations().
| #define DEC_INT 2 |
Definition at line 46 of file intersci-n.h.
Referenced by CheckCOLUMN(), CheckPOINTER(), CheckROW(), CheckVECTOR(), CreCOLUMN(), CreCommon(), CreDIMFOREXT(), CreIMATRIX(), CrePOINTER(), CreSCALAR(), CreSTRING(), CreSTRINGMAT(), CreVECTOR(), GetCOLUMN(), GetCom(), GetDim(), GetIMATRIX(), GetPOINTER(), GetROW(), GetSPARSE(), GetSTRINGMAT(), GetVECTOR(), OptMATRIX(), OptOpointer(), OutCOLUMN(), OutCommon(), OutExtCommon(), OutExtIMATRIX(), OutExtSTRING(), OutIMATRIX(), OutLISTarg(), OutROW(), OutSCALAR(), OutSTRING(), OutVECTOR(), WriteCallRest(), WriteFortranCall(), WriteFunctionCode(), WriteListAnalysis(), WriteOptArg(), WriteOptArgPhase2(), and WriteOutput().
| #define DEC_IPTR 11 |
| #define DEC_LOGICAL 5 |
Definition at line 49 of file intersci-n.h.
Referenced by Check(), CreSTRINGMAT(), GetPOLYNOM(), OutExtBMATRIX1(), OutPOLYNOM(), WriteArgCheck(), WriteCallConvertion(), WriteCallRest(), WriteCrossCheck(), WriteExternalVariableOutput(), WriteListAnalysis(), WriteOptArg(), and WriteVariableOutput().
| #define DEC_REAL 4 |
| #define DEC_RPTR 13 |
| #define DEC_SMAT 9 |
Definition at line 53 of file intersci-n.h.
Referenced by CreSTRINGMAT(), GetSTRINGMAT(), and WriteDeclaration().
| #define DEC_SPARSE 10 |
| #define DEC_SPARSEPTR 15 |
| #define DEC_UL 7 |
Definition at line 51 of file intersci-n.h.
Referenced by CreCommon(), CreIMATRIX(), and CrePOINTER().
| #define DIMFOREXT 0 |
| #define DOUBLE 3 |
Definition at line 30 of file intersci-n.h.
| #define EMPTY 11 |
Definition at line 76 of file intersci-n.h.
Referenced by ReadFunction(), ReadListElement(), WriteInfoCode(), and WriteOutput().
| #define EXTERNAL 5 |
Definition at line 32 of file intersci-n.h.
Referenced by CheckCreateOrder(), CreBMATRIX(), CreCommon(), CreIMATRIX(), CrePOINTER(), CreSPARSE(), CreSTRING(), CreSTRINGMAT(), FixForNames(), ForVECTOR(), GetForType(), ReadFunction(), StrGen(), WriteCallRest(), and WriteVariable().
| #define IMATRIX 16 |
Definition at line 81 of file intersci-n.h.
Referenced by ReadFunction(), ReadListElement(), WriteArgCheck(), WriteCallConvertion(), WriteCallRest(), WriteExternalVariableOutput(), WriteListAnalysis(), and WriteVariableOutput().
| #define INT 2 |
Definition at line 29 of file intersci-n.h.
| #define LIST 2 |
Definition at line 67 of file intersci-n.h.
Referenced by FixForNames(), ReadFunction(), ReadListElement(), WriteArgCheck(), WriteCallConvertion(), WriteCallRest(), WriteFunctionCode(), WriteInfoCode(), WriteOutput(), and WriteVariableOutput().
| #define LOGICAL 7 |
Definition at line 34 of file intersci-n.h.
| #define LPOINTER 10 |
| #define MATRIX 4 |
Definition at line 69 of file intersci-n.h.
Referenced by OptMATRIX(), OutLISTarg(), ReadFunction(), ReadListElement(), WriteArgCheck(), WriteCallConvertion(), WriteCallRest(), WriteExternalVariableOutput(), WriteListAnalysis(), WriteOptArg(), WriteOptArgPhase2(), and WriteVariableOutput().
| #define MAXARG 50 |
Definition at line 6 of file intersci-n.h.
Referenced by AddForName(), AddForName1(), and ReadFunction().
| #define MAXCALL 2000 |
| #define MAXEL 50 |
| #define MAXFUN 99 |
| #define MAXLINE 1000 |
Definition at line 9 of file intersci-n.h.
| #define MAXNAM 128 |
Definition at line 10 of file intersci-n.h.
Referenced by Check(), CheckGraphName(), GenBuilder(), Generate(), GenFundef(), ISCIReadFile(), loadg(), ParseLine(), ParseScilabLine(), ReadFunction(), ReadListElement(), ReadListFile(), saveg(), WriteAddInter(), WriteArgCheck(), WriteCallConvertion(), WriteCallRest(), WriteCallRestCheck(), WriteExternalVariableOutput(), WriteListAnalysis(), WriteOptArg(), and WriteVariableOutput().
| #define MAXVAR 200 |
| #define MLIST 23 |
Definition at line 88 of file intersci-n.h.
| #define MPOINTER 8 |
| #define NAME 1 |
Definition at line 92 of file intersci-n.h.
Referenced by ReadFunction(), WriteArgCheck(), WriteOptArg(), and WriteOptArgPhase2().
| #define OPOINTER 12 |
| #define POLYNOM 5 |
Definition at line 70 of file intersci-n.h.
Referenced by ReadFunction(), ReadListElement(), WriteArgCheck(), WriteCallConvertion(), WriteCallRest(), WriteExternalVariableOutput(), WriteListAnalysis(), and WriteVariableOutput().
| #define PREDEF 9 |
Definition at line 36 of file intersci-n.h.
Referenced by CreatePredefVar(), CreDIMFOREXT(), and WriteCallRest().
| #define REAL 4 |
Definition at line 31 of file intersci-n.h.
| #define ROW 6 |
Definition at line 71 of file intersci-n.h.
Referenced by OutLISTarg(), ReadFunction(), ReadListElement(), WriteArgCheck(), WriteCallConvertion(), WriteCallRest(), WriteExternalVariableOutput(), WriteListAnalysis(), and WriteVariableOutput().
| #define SCALAR 7 |
Definition at line 72 of file intersci-n.h.
Referenced by OptMATRIX(), OutLISTarg(), ReadFunction(), ReadListElement(), WriteArgCheck(), WriteCallConvertion(), WriteCallRest(), WriteExternalVariableOutput(), WriteListAnalysis(), WriteOptArg(), WriteOptArgPhase2(), and WriteVariableOutput().
| #define SCIBPOINTER 20 |
Definition at line 85 of file intersci-n.h.
Referenced by ReadFunction(), WriteArgCheck(), WriteCallConvertion(), WriteCallRest(), and WriteVariableOutput().
| #define SCILPOINTER 18 |
Definition at line 83 of file intersci-n.h.
Referenced by ReadFunction(), WriteArgCheck(), WriteCallConvertion(), WriteCallRest(), and WriteVariableOutput().
| #define SCIMPOINTER 15 |
Definition at line 80 of file intersci-n.h.
Referenced by ReadFunction(), WriteArgCheck(), WriteCallConvertion(), WriteCallRest(), and WriteVariableOutput().
| #define SCIOPOINTER 21 |
Definition at line 86 of file intersci-n.h.
Referenced by ReadFunction(), WriteArgCheck(), WriteCallConvertion(), WriteCallRest(), WriteOptArg(), WriteOptArgPhase2(), and WriteVariableOutput().
| #define SCISMPOINTER 17 |
Definition at line 82 of file intersci-n.h.
Referenced by ReadFunction(), WriteArgCheck(), WriteCallConvertion(), WriteCallRest(), and WriteVariableOutput().
| #define SEQUENCE 8 |
Definition at line 73 of file intersci-n.h.
Referenced by ReadFunction(), ReadListElement(), WriteCallConvertion(), WriteCallRest(), WriteInfoCode(), WriteOutput(), and WriteVariableOutput().
| #define SMPOINTER 9 |
| #define SPARSE 22 |
Definition at line 87 of file intersci-n.h.
Referenced by ReadFunction(), ReadListElement(), WriteArgCheck(), WriteCallConvertion(), WriteCallRest(), WriteExternalVariableOutput(), WriteListAnalysis(), and WriteVariableOutput().
| #define STRING 9 |
Definition at line 74 of file intersci-n.h.
Referenced by C2F(), CheckSTRING(), CreSTRING(), GetSTRING(), OptMATRIX(), OutLISTarg(), ReadFunction(), ReadListElement(), WriteArgCheck(), WriteCallConvertion(), WriteCallRest(), WriteExternalVariableOutput(), WriteListAnalysis(), WriteOptArg(), WriteOptArgPhase2(), and WriteVariableOutput().
| #define STRINGMAT 14 |
Definition at line 79 of file intersci-n.h.
Referenced by GetSTRINGMAT(), ReadFunction(), ReadListElement(), WriteArgCheck(), WriteCallConvertion(), WriteCallRest(), WriteExternalVariableOutput(), WriteListAnalysis(), and WriteVariableOutput().
| #define TESTLISTELEMENTS 1 |
Definition at line 14 of file intersci-n.h.
| #define TLIST 3 |
Definition at line 68 of file intersci-n.h.
| #define VALUE 2 |
Definition at line 93 of file intersci-n.h.
Referenced by ReadFunction(), WriteArgCheck(), WriteOptArg(), and WriteOptArgPhase2().
| #define VECTOR 13 |
Definition at line 78 of file intersci-n.h.
Referenced by OutLISTarg(), ReadFunction(), ReadListElement(), WriteArgCheck(), WriteCallConvertion(), WriteCallRest(), WriteExternalVariableOutput(), WriteListAnalysis(), and WriteVariableOutput().
| #define VERSION "3.0" |
| #define WORK 10 |
Definition at line 75 of file intersci-n.h.
Referenced by intdgeesx(), intdgesvd(), intdsyev(), intzgeesx(), ReadFunction(), ReadListElement(), WriteCallRest(), and WriteVariableOutput().
Definition at line 95 of file intersci-n.h.
| int ReadListElement __PARAMS | ( | (FILE *f, char *varlistname, IVAR iivar, int nel, int stack_position) | ) |
| void WriteAddInter __PARAMS | ( | (char *file) | ) |
| void WriteMain __PARAMS | ( | (FILE *f, char *file) | ) |
| void WriteMainHeader __PARAMS | ( | (FILE *f, char *fname) | ) |
| void WriteHeader __PARAMS | ( | (FILE *f, char *fname0, char *fname) | ) |
| void WriteCallConvertion __PARAMS | ( | (FILE *f, IVAR ivar, char *farg, char *barg, char *call) | ) |
| void OptVar __PARAMS | ( | () | ) |
| int GetBasType __PARAMS | ( | (char *sname) | ) |
| void WriteInfoCode __PARAMS | ( | (FILE *f) | ) |
| VARPTR VarAlloc __PARAMS | ( | (void) | ) |
| void FCprintf | ( | FILE * | , | |
| char * | fmt, | |||
| ... | ||||
| ) |
Definition at line 1048 of file intersci-n.c.
01049 { 01050 va_list ap; 01051 #ifdef __STDC__ 01052 va_start(ap,format); 01053 #else 01054 FILE *f; 01055 char *format; 01056 va_start(ap); 01057 f = va_arg(ap, FILE *); 01058 format = va_arg(ap, char *); 01059 #endif 01060 vfprintf(f,format,ap); 01061 va_end(ap); 01062 }
| void Fprintf | ( | FILE * | , | |
| int | , | |||
| char * | fmt, | |||
| ... | ||||
| ) |
Definition at line 1013 of file intersci-n.c.
References count, i, int, and white().
01014 { 01015 int i; 01016 static int count=0; 01017 va_list ap; 01018 va_start(ap,format); 01019 01020 vsprintf(sbuf,format,ap); 01021 01022 for ( i = 0 ; i < (int) strlen(sbuf); i++) 01023 { 01024 if ( count == 0) 01025 { 01026 white(f,indent2); 01027 count = indent2; 01028 } 01029 if ( count >= 100 && sbuf[i] != '\n' && (sbuf[i] == ' ' || sbuf[i]== ',' || sbuf[i] == ';' || sbuf[i] == '(' ) ) 01030 { 01031 fprintf(f,"\n"); 01032 white(f,indent2);count=indent2; 01033 } 01034 if ( sbuf[i] == '\n') count = -1 ; 01035 fprintf(f,"%c",sbuf[i]); 01036 count++; 01037 } 01038 va_end(ap); 01039 }
Here is the call graph for this function:

Definition at line 22 of file intersci-n.c.
Definition at line 23 of file intersci-n.c.
| char* funNames[MAXFUN] |
Definition at line 25 of file intersci-n.c.
Definition at line 15 of file intersci-n.c.
Definition at line 36 of file niceprintf.c.
Definition at line 24 of file intersci-n.c.
Definition at line 21 of file intersci-n.c.
Definition at line 17 of file intersci-n.c.
| char target |
Definition at line 18 of file intersci-n.c.
Definition at line 20 of file intersci-n.c.
1.5.1