My Project
|
#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 | SINGULAR_PATH_LENGTH 512 |
#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 () |
static 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, const 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 args) |
static void | iiCallLibProcBegin () |
static void | iiCallLibProcEnd (idhdl save_ringhdl, ring save_ring) |
void * | iiCallLibProc1 (const char *n, void *arg, int arg_type, BOOLEAN &err) |
ideal | ii_CallProcId2Id (const char *lib, const char *proc, ideal arg, const ring R) |
int | ii_CallProcId2Int (const char *lib, const char *proc, ideal arg, const ring R) |
leftv | ii_CallLibProcM (const char *n, void **args, int *arg_types, const ring R, BOOLEAN &err) |
args: NULL terminated array 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) } | |
int | flint_mod_init (SModulFunctions *psModulFunctions) |
SModulFunc_t | iiGetBuiltinModInit (const char *libname) |
BOOLEAN | iiTryLoadLib (leftv v, const char *id) |
BOOLEAN | iiLocateLib (const char *lib, char *where) |
BOOLEAN | iiLibCmd (const 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) |
static 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*); |
void close_all_dyn_modules | ( | ) |
int current_pos | ( | int | i = 0 | ) |
Definition at line 3346 of file libparse.cc.
int flint_mod_init | ( | SModulFunctions * | psModulFunctions | ) |
Definition at line 1281 of file misc_ip.cc.
leftv ii_CallLibProcM | ( | const char * | n, |
void ** | args, | ||
int * | arg_types, | ||
const ring | R, | ||
BOOLEAN & | err | ||
) |
args: NULL terminated array of arguments arg_types: 0 terminated array of corresponding types
Definition at line 701 of file iplib.cc.
Definition at line 661 of file iplib.cc.
Definition at line 680 of file iplib.cc.
int iiAddCproc | ( | const char * | libname, |
const char * | procname, | ||
BOOLEAN | pstatic, | ||
BOOLEAN(*)(leftv res, leftv v) | func | ||
) |
Definition at line 1063 of file iplib.cc.
int iiAddCprocTop | ( | const char * | libname, |
const char * | procname, | ||
BOOLEAN | pstatic, | ||
BOOLEAN(*)(leftv res, leftv v) | func | ||
) |
BOOLEAN iiAllStart | ( | procinfov | pi, |
const char * | p, | ||
feBufferTypes | t, | ||
int | l | ||
) |
Definition at line 298 of file iplib.cc.
int iiArithAddCmd | ( | const char * | szName, |
short | nAlias, | ||
short | nTokval, | ||
short | nToktype, | ||
short | nPos | ||
) |
Definition at line 9868 of file iparith.cc.
Definition at line 627 of file iplib.cc.
|
static |
|
static |
Definition at line 606 of file iplib.cc.
|
static |
|
static |
Definition at line 928 of file iplib.cc.
char * iiConvName | ( | const char * | libname | ) |
Definition at line 1429 of file iplib.cc.
Definition at line 754 of file iplib.cc.
SModulFunc_t iiGetBuiltinModInit | ( | const char * | libname | ) |
Definition at line 807 of file iplib.cc.
char * iiGetLibProcBuffer | ( | procinfo * | pi, |
int | part | ||
) |
Definition at line 197 of file iplib.cc.
Definition at line 884 of file iplib.cc.
BOOLEAN iiLoadLIB | ( | FILE * | fp, |
const char * | libnamebuf, | ||
const char * | newlib, | ||
idhdl | pl, | ||
BOOLEAN | autoexport, | ||
BOOLEAN | tellerror | ||
) |
Definition at line 973 of file iplib.cc.
Definition at line 504 of file iplib.cc.
char * iiProcArgs | ( | char * | e, |
BOOLEAN | withParenth | ||
) |
Definition at line 114 of file iplib.cc.
char * iiProcName | ( | char * | buf, |
char & | ct, | ||
char *& | e | ||
) |
Definition at line 371 of file iplib.cc.
|
static |
|
static |
Definition at line 823 of file iplib.cc.
BOOLEAN load_builtin | ( | const char * | newlib, |
BOOLEAN | autoexport, | ||
SModulFunc_t | init | ||
) |
Definition at line 1294 of file iplib.cc.
Definition at line 1284 of file iplib.cc.
Definition at line 1181 of file iplib.cc.
|
static |
|
static |
void print_init | ( | ) |
Definition at line 3482 of file libparse.cc.
void register_dyn_module | ( | char * | fullname, |
void * | handle | ||
) |
Definition at line 1164 of file iplib.cc.
bool registered_dyn_module | ( | char * | fullname | ) |
SI_FOREACH_BUILTIN | ( | SI_GET_BUILTIN_MOD_INIT0 | ) |
void yylprestart | ( | FILE * | input_file | ) |
THREAD_VAR std::map<std::string, void *>* dyn_modules |
|
extern |
Definition at line 1114 of file libparse.cc.
EXTERN_VAR int yylp_errno |
EXTERN_VAR int yylplineno |