![]() |
#include <kernel/mod2.h>#include <Singular/tok.h>#include <misc/options.h>#include <Singular/ipid.h>#include <omalloc/omalloc.h>#include <polys/monomials/ring.h>#include <Singular/subexpr.h>#include <Singular/ipshell.h>#include <Singular/fevoices.h>#include <Singular/lists.h>#include <stdio.h>#include <string.h>#include <ctype.h>#include <sys/stat.h>#include "libparse.h"#include <Singular/mod_lib.h>Go to the source code of this file.
Macros | |
| #define | SI_MAX_NEST 500 |
| #define | MODULE_SUFFIX so |
| #define | MODULE_SUFFIX_STRING EXPANDED_STRINGIFY(MODULE_SUFFIX) |
| #define | SI_GET_BUILTIN_MOD_INIT0(name) int SI_MOD_INIT0(name)(SModulFunctions*); |
| #define | SI_GET_BUILTIN_MOD_INIT(name) if (strcmp(libname, #name ".so") == 0){ return SI_MOD_INIT0(name); } |
Functions | |
| BOOLEAN | load_modules (const char *newlib, char *fullname, BOOLEAN autoexport) |
| int | iiArithAddCmd (const char *szName, short nAlias, short nTokval, short nToktype, short nPos) |
| void | yylprestart (FILE *input_file) |
| int | current_pos (int i=0) |
| void | print_init () |
| char | mytolower (char c) |
| BOOLEAN | iiGetLibStatus (char *lib) |
| char * | iiGetLibName (procinfov pi) |
| char * | iiProcName (char *buf, char &ct, char *&e) |
| char * | iiProcArgs (char *e, BOOLEAN withParenth) |
| char * | iiGetLibProcBuffer (procinfo *pi, int part) |
| BOOLEAN | iiAllStart (procinfov pi, char *p, feBufferTypes t, int l) |
| BOOLEAN | iiPStart (idhdl pn, leftv v) |
| static void | iiShowLevRings () |
| static void | iiCheckNest () |
| BOOLEAN | iiMake_proc (idhdl pn, package pack, leftv sl) |
| static void | iiCallLibProcBegin () |
| static void | iiCallLibProcEnd (idhdl save_ringhdl, ring save_ring) |
| void * | iiCallLibProc1 (const char *n, void *arg, int arg_type, BOOLEAN &err) |
| void * | iiCallLibProcM (const char *n, void **args, int *arg_types, BOOLEAN &err) |
| args: NULL terminated arry of arguments arg_types: 0 terminated array of corresponding types More... | |
| BOOLEAN | iiEStart (char *example, procinfo *pi) |
| SI_FOREACH_BUILTIN (SI_GET_BUILTIN_MOD_INIT0) } | |
| SModulFunc_t | iiGetBuiltinModInit (const char *libname) |
| BOOLEAN | iiTryLoadLib (leftv v, const char *id) |
| BOOLEAN | iiLocateLib (const char *lib, char *where) |
| BOOLEAN | iiLibCmd (char *newlib, BOOLEAN autoexport, BOOLEAN tellerror, BOOLEAN force) |
| static void | iiCleanProcs (idhdl &root) |
| static void | iiRunInit (package p) |
| BOOLEAN | iiLoadLIB (FILE *fp, const char *libnamebuf, const char *newlib, idhdl pl, BOOLEAN autoexport, BOOLEAN tellerror) |
| procinfo * | iiInitSingularProcinfo (procinfov pi, const char *libname, const char *procname, int, long pos, BOOLEAN pstatic) |
| int | iiAddCproc (const char *libname, const char *procname, BOOLEAN pstatic, BOOLEAN(*func)(leftv res, leftv v)) |
| int | iiAddCprocTop (const char *libname, const char *procname, BOOLEAN pstatic, BOOLEAN(*func)(leftv res, leftv v)) |
| BOOLEAN | load_builtin (const char *newlib, BOOLEAN autoexport, SModulFunc_t init) |
| void | module_help_main (const char *newlib, const char *help) |
| void | module_help_proc (const char *newlib, const char *p, const char *help) |
| void * | binary_module_function (const char *newlib, const char *funcname) |
| char | mytoupper (char c) |
| char * | iiConvName (const char *libname) |
Variables | |
| int | yylp_errno |
| int | yylplineno |
| char * | yylp_errlist [] |
| libstackv | library_stack |
| ring * | iiLocalRing |
| sleftv | iiRETURNEXPR |
| int | iiRETURNEXPR_len =0 |
| #define MODULE_SUFFIX_STRING EXPANDED_STRINGIFY(MODULE_SUFFIX) |
| #define SI_GET_BUILTIN_MOD_INIT | ( | name | ) | if (strcmp(libname, #name ".so") == 0){ return SI_MOD_INIT0(name); } |
| #define SI_GET_BUILTIN_MOD_INIT0 | ( | name | ) | int SI_MOD_INIT0(name)(SModulFunctions*); |
| int current_pos | ( | int | i = 0 | ) |
Definition at line 3344 of file libparse.cc.
| int iiAddCproc | ( | const char * | libname, |
| const char * | procname, | ||
| BOOLEAN | pstatic, | ||
| BOOLEAN(*)(leftv res, leftv v) | func | ||
| ) |
Definition at line 1023 of file iplib.cc.
| int iiAddCprocTop | ( | const char * | libname, |
| const char * | procname, | ||
| BOOLEAN | pstatic, | ||
| BOOLEAN(*)(leftv res, leftv v) | func | ||
| ) |
Definition at line 1095 of file iplib.cc.
| BOOLEAN iiAllStart | ( | procinfov | pi, |
| char * | p, | ||
| feBufferTypes | t, | ||
| int | l | ||
| ) |
Definition at line 311 of file iplib.cc.
| int iiArithAddCmd | ( | const char * | szName, |
| short | nAlias, | ||
| short | nTokval, | ||
| short | nToktype, | ||
| short | nPos | ||
| ) |
Definition at line 9067 of file iparith.cc.
Definition at line 631 of file iplib.cc.
|
static |
Definition at line 588 of file iplib.cc.
|
static |
Definition at line 606 of file iplib.cc.
args: NULL terminated arry of arguments arg_types: 0 terminated array of corresponding types
Definition at line 665 of file iplib.cc.
|
static |
Definition at line 717 of file iplib.cc.
| SModulFunc_t iiGetBuiltinModInit | ( | const char * | libname | ) |
| char* iiGetLibName | ( | procinfov | pi | ) |
| char* iiGetLibProcBuffer | ( | procinfo * | pi, |
| int | part | ||
| ) |
Definition at line 210 of file iplib.cc.
| BOOLEAN iiGetLibStatus | ( | char * | lib | ) |
Definition at line 83 of file iplib.cc.
| procinfo* iiInitSingularProcinfo | ( | procinfov | pi, |
| const char * | libname, | ||
| const char * | procname, | ||
| int | , | ||
| long | pos, | ||
| BOOLEAN | pstatic | ||
| ) |
Definition at line 1009 of file iplib.cc.
Definition at line 844 of file iplib.cc.
| BOOLEAN iiLoadLIB | ( | FILE * | fp, |
| const char * | libnamebuf, | ||
| const char * | newlib, | ||
| idhdl | pl, | ||
| BOOLEAN | autoexport, | ||
| BOOLEAN | tellerror | ||
| ) |
Definition at line 933 of file iplib.cc.
Definition at line 503 of file iplib.cc.
| char* iiProcName | ( | char * | buf, |
| char & | ct, | ||
| char *& | e | ||
| ) |
Definition at line 371 of file iplib.cc.
|
static |
Definition at line 917 of file iplib.cc.
|
static |
Definition at line 477 of file iplib.cc.
Definition at line 782 of file iplib.cc.
| BOOLEAN load_builtin | ( | const char * | newlib, |
| BOOLEAN | autoexport, | ||
| SModulFunc_t | init | ||
| ) |
Definition at line 1206 of file iplib.cc.
Definition at line 1108 of file iplib.cc.
Definition at line 1258 of file iplib.cc.
Definition at line 1273 of file iplib.cc.
| char mytolower | ( | char | c | ) |
| char mytoupper | ( | char | c | ) |
| void print_init | ( | ) |
Definition at line 3480 of file libparse.cc.
| SI_FOREACH_BUILTIN | ( | SI_GET_BUILTIN_MOD_INIT0 | ) |
| void yylprestart | ( | FILE * | input_file | ) |
| char* yylp_errlist[] |
Definition at line 1112 of file libparse.cc.
| int yylp_errno |
Definition at line 1128 of file libparse.cc.
| int yylplineno |
Definition at line 1102 of file libparse.cc.