![]() |
#include "kernel/mod2.h"
#include "Singular/tok.h"
#include "misc/options.h"
#include "Singular/ipid.h"
#include "polys/monomials/ring.h"
#include "Singular/subexpr.h"
#include "Singular/ipshell.h"
#include "Singular/fevoices.h"
#include "Singular/lists.h"
#include <ctype.h>
#include "libparse.h"
#include "Singular/mod_lib.h"
#include <map>
#include <string>
#include <pthread.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 (const char *lib) |
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)) |
bool | registered_dyn_module (char *fullname) |
void | register_dyn_module (char *fullname, void *handle) |
void | close_all_dyn_modules () |
BOOLEAN | load_modules_aux (const char *newlib, char *fullname, BOOLEAN autoexport) |
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 | |
EXTERN_VAR int | yylp_errno |
EXTERN_VAR int | yylplineno |
const char * | yylp_errlist [] |
VAR libstackv | library_stack |
VAR ring * | iiLocalRing |
INST_VAR sleftv | iiRETURNEXPR |
VAR int | iiRETURNEXPR_len =0 |
THREAD_VAR std::map< std::string, void * > * | dyn_modules |
#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 3346 of file libparse.cc.
int iiAddCproc | ( | const char * | libname, |
const char * | procname, | ||
BOOLEAN | pstatic, | ||
BOOLEAN(*)(leftv res, leftv v) | func | ||
) |
Definition at line 1006 of file iplib.cc.
int iiAddCprocTop | ( | const char * | libname, |
const char * | procname, | ||
BOOLEAN | pstatic, | ||
BOOLEAN(*)(leftv res, leftv v) | func | ||
) |
Definition at line 1081 of file iplib.cc.
BOOLEAN iiAllStart | ( | procinfov | pi, |
char * | p, | ||
feBufferTypes | t, | ||
int | l | ||
) |
Definition at line 294 of file iplib.cc.
int iiArithAddCmd | ( | const char * | szName, |
short | nAlias, | ||
short | nTokval, | ||
short | nToktype, | ||
short | nPos | ||
) |
Definition at line 9352 of file iparith.cc.
Definition at line 614 of file iplib.cc.
|
static |
Definition at line 571 of file iplib.cc.
|
static |
Definition at line 589 of file iplib.cc.
args: NULL terminated arry of arguments arg_types: 0 terminated array of corresponding types
Definition at line 648 of file iplib.cc.
|
static |
Definition at line 700 of file iplib.cc.
SModulFunc_t iiGetBuiltinModInit | ( | const char * | libname | ) |
char* iiGetLibProcBuffer | ( | procinfo * | pi, |
int | part | ||
) |
Definition at line 193 of file iplib.cc.
procinfo* iiInitSingularProcinfo | ( | procinfov | pi, |
const char * | libname, | ||
const char * | procname, | ||
int | , | ||
long | pos, | ||
BOOLEAN | pstatic | ||
) |
Definition at line 992 of file iplib.cc.
Definition at line 827 of file iplib.cc.
BOOLEAN iiLoadLIB | ( | FILE * | fp, |
const char * | libnamebuf, | ||
const char * | newlib, | ||
idhdl | pl, | ||
BOOLEAN | autoexport, | ||
BOOLEAN | tellerror | ||
) |
Definition at line 916 of file iplib.cc.
Definition at line 486 of file iplib.cc.
Definition at line 354 of file iplib.cc.
|
static |
Definition at line 900 of file iplib.cc.
|
static |
Definition at line 460 of file iplib.cc.
Definition at line 765 of file iplib.cc.
BOOLEAN load_builtin | ( | const char * | newlib, |
BOOLEAN | autoexport, | ||
SModulFunc_t | init | ||
) |
Definition at line 1240 of file iplib.cc.
Definition at line 1231 of file iplib.cc.
Definition at line 1124 of file iplib.cc.
Definition at line 1292 of file iplib.cc.
Definition at line 1307 of file iplib.cc.
char mytolower | ( | char | c | ) |
char mytoupper | ( | char | c | ) |
void print_init | ( | ) |
Definition at line 3482 of file libparse.cc.
void register_dyn_module | ( | char * | fullname, |
void * | handle | ||
) |
SI_FOREACH_BUILTIN | ( | SI_GET_BUILTIN_MOD_INIT0 | ) |
void yylprestart | ( | FILE * | input_file | ) |
THREAD_VAR std::map<std::string, void *>* dyn_modules |
const char* yylp_errlist[] |
Definition at line 1114 of file libparse.cc.
EXTERN_VAR int yylp_errno |
EXTERN_VAR int yylplineno |