|
| Command (const char *n, leftv r, leftv a) |
|
| ~Command () |
|
void | check_argc (int n) |
|
void | check_argc (int lo, int hi) |
|
void | check_argc_min (int n) |
|
void | check_arg (int i, int type, const char *err) |
|
void | check_init (int i, const char *err) |
|
void | check_arg (int i, int type, int type2, const char *err) |
|
int | argtype (int i) |
|
int | nargs () |
|
void * | arg (int i) |
|
template<typename T > |
T * | shared_arg (int i) |
|
long | int_arg (int i) |
|
void | report (const char *err) |
|
int | test_arg (int i, int type) |
|
void | set_result (long n) |
|
void | set_result (const char *s) |
|
void | set_result (int type, void *p) |
|
void | set_result (int type, long n) |
|
void | no_result () |
|
bool | ok () |
|
BOOLEAN | status () |
|
BOOLEAN | abort (const char *err) |
|
Definition at line 41 of file shared.cc.
◆ Command()
Definition at line 49 of file shared.cc.
50 {
55 for (
leftv t = a; t !=
NULL; t = t->next) {
57 }
60 for (
leftv t = a; t !=
NULL; t = t->next) {
62 }
65 }
Class used for (list of) interpreter objects.
int name
New type name for int.
◆ ~Command()
LibThread::Command::~Command |
( |
| ) |
|
|
inline |
◆ abort()
Definition at line 148 of file shared.cc.
148 {
151 }
void report(const char *err)
◆ arg()
void * LibThread::Command::arg |
( |
int |
i | ) |
|
|
inline |
◆ argtype()
int LibThread::Command::argtype |
( |
int |
i | ) |
|
|
inline |
◆ check_arg() [1/2]
void LibThread::Command::check_arg |
( |
int |
i, |
|
|
int |
type, |
|
|
const char * |
err |
|
) |
| |
|
inline |
◆ check_arg() [2/2]
void LibThread::Command::check_arg |
( |
int |
i, |
|
|
int |
type, |
|
|
int |
type2, |
|
|
const char * |
err |
|
) |
| |
|
inline |
◆ check_argc() [1/2]
void LibThread::Command::check_argc |
( |
int |
lo, |
|
|
int |
hi |
|
) |
| |
|
inline |
Definition at line 73 of file shared.cc.
73 {
75 if (argc < lo || argc > hi)
error =
"wrong number of arguments";
76 }
◆ check_argc() [2/2]
void LibThread::Command::check_argc |
( |
int |
n | ) |
|
|
inline |
Definition at line 69 of file shared.cc.
69 {
71 if (
argc != n)
error =
"wrong number of arguments";
72 }
◆ check_argc_min()
void LibThread::Command::check_argc_min |
( |
int |
n | ) |
|
|
inline |
Definition at line 77 of file shared.cc.
77 {
79 if (
argc < n)
error =
"wrong number of arguments";
80 }
◆ check_init()
void LibThread::Command::check_init |
( |
int |
i, |
|
|
const char * |
err |
|
) |
| |
|
inline |
◆ int_arg()
long LibThread::Command::int_arg |
( |
int |
i | ) |
|
|
inline |
◆ nargs()
int LibThread::Command::nargs |
( |
| ) |
|
|
inline |
◆ no_result()
void LibThread::Command::no_result |
( |
| ) |
|
|
inline |
◆ ok()
bool LibThread::Command::ok |
( |
| ) |
|
|
inline |
◆ report()
void LibThread::Command::report |
( |
const char * |
err | ) |
|
|
inline |
◆ set_result() [1/4]
void LibThread::Command::set_result |
( |
const char * |
s | ) |
|
|
inline |
Definition at line 124 of file shared.cc.
124 {
127 }
const CanonicalForm int s
◆ set_result() [2/4]
void LibThread::Command::set_result |
( |
int |
type, |
|
|
long |
n |
|
) |
| |
|
inline |
◆ set_result() [3/4]
void LibThread::Command::set_result |
( |
int |
type, |
|
|
void * |
p |
|
) |
| |
|
inline |
◆ set_result() [4/4]
void LibThread::Command::set_result |
( |
long |
n | ) |
|
|
inline |
◆ shared_arg()
T * LibThread::Command::shared_arg |
( |
int |
i | ) |
|
|
inline |
◆ status()
BOOLEAN LibThread::Command::status |
( |
| ) |
|
|
inline |
Definition at line 142 of file shared.cc.
142 {
145 }
147 }
void Werror(const char *fmt,...)
◆ test_arg()
int LibThread::Command::test_arg |
( |
int |
i, |
|
|
int |
type |
|
) |
| |
|
inline |
◆ argc
int LibThread::Command::argc |
|
private |
◆ args
leftv* LibThread::Command::args |
|
private |
◆ error
const char* LibThread::Command::error |
|
private |
◆ name
const char* LibThread::Command::name |
|
private |
◆ result
leftv LibThread::Command::result |
|
private |
The documentation for this class was generated from the following file: