![]() |
#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, sleftv *v) |
static void | iiShowLevRings () |
static void | iiCheckNest () |
BOOLEAN | iiMake_proc (idhdl pn, package pack, sleftv *sl) |
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 897 of file iplib.cc.
int iiAddCprocTop | ( | const char * | libname, |
const char * | procname, | ||
BOOLEAN | pstatic, | ||
BOOLEAN(*)(leftv res, leftv v) | func | ||
) |
Definition at line 969 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 9084 of file iparith.cc.
|
static |
Definition at line 591 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 883 of file iplib.cc.
Definition at line 718 of file iplib.cc.
BOOLEAN iiLoadLIB | ( | FILE * | fp, |
const char * | libnamebuf, | ||
const char * | newlib, | ||
idhdl | pl, | ||
BOOLEAN | autoexport, | ||
BOOLEAN | tellerror | ||
) |
Definition at line 807 of file iplib.cc.
Definition at line 501 of file iplib.cc.
Definition at line 371 of file iplib.cc.
|
static |
Definition at line 791 of file iplib.cc.
|
static |
Definition at line 475 of file iplib.cc.
Definition at line 656 of file iplib.cc.
BOOLEAN load_builtin | ( | const char * | newlib, |
BOOLEAN | autoexport, | ||
SModulFunc_t | init | ||
) |
Definition at line 1080 of file iplib.cc.
Definition at line 982 of file iplib.cc.
Definition at line 1132 of file iplib.cc.
Definition at line 1147 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.