1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217
|
/*
CLASS:command_continuation:
*/
#ifndef GABA_DEFINE
struct command_continuation
{
struct lsh_object super;
void (*(c))(struct command_continuation *self,struct lsh_object *result);
};
extern struct lsh_class command_continuation_class;
#endif /* !GABA_DEFINE */
#ifndef GABA_DECLARE
struct lsh_class command_continuation_class =
{
STATIC_HEADER,
NULL,
"command_continuation",
sizeof(struct command_continuation),
NULL,
NULL,
};
#endif /* !GABA_DECLARE */
/*
CLASS:command:
*/
#ifndef GABA_DEFINE
struct command
{
struct lsh_object super;
void (*(call))(struct command *self,struct lsh_object *arg,struct command_continuation *c,struct exception_handler *e);
};
extern struct lsh_class command_class;
#endif /* !GABA_DEFINE */
#ifndef GABA_DECLARE
struct lsh_class command_class =
{
STATIC_HEADER,
NULL,
"command",
sizeof(struct command),
NULL,
NULL,
};
#endif /* !GABA_DECLARE */
/*
CLASS:command_2:command
*/
#ifndef GABA_DEFINE
struct command_2
{
struct command super;
void (*(invoke))(struct command_2 *self,struct lsh_object *a1,struct lsh_object *a2,struct command_continuation *c,struct exception_handler *e);
};
extern struct lsh_class command_2_class;
#endif /* !GABA_DEFINE */
#ifndef GABA_DECLARE
struct lsh_class command_2_class =
{
STATIC_HEADER,
&(command_class),
"command_2",
sizeof(struct command_2),
NULL,
NULL,
};
#endif /* !GABA_DECLARE */
/*
CLASS:command_3:command
*/
#ifndef GABA_DEFINE
struct command_3
{
struct command super;
void (*(invoke))(struct lsh_object *a1,struct lsh_object *a2,struct lsh_object *a3,struct command_continuation *c,struct exception_handler *e);
};
extern struct lsh_class command_3_class;
#endif /* !GABA_DEFINE */
#ifndef GABA_DECLARE
struct lsh_class command_3_class =
{
STATIC_HEADER,
&(command_class),
"command_3",
sizeof(struct command_3),
NULL,
NULL,
};
#endif /* !GABA_DECLARE */
/*
CLASS:command_4:command
*/
#ifndef GABA_DEFINE
struct command_4
{
struct command super;
void (*(invoke))(struct lsh_object *a1,struct lsh_object *a2,struct lsh_object *a3,struct lsh_object *a4,struct command_continuation *c,struct exception_handler *e);
};
extern struct lsh_class command_4_class;
#endif /* !GABA_DEFINE */
#ifndef GABA_DECLARE
struct lsh_class command_4_class =
{
STATIC_HEADER,
&(command_class),
"command_4",
sizeof(struct command_4),
NULL,
NULL,
};
#endif /* !GABA_DECLARE */
/*
CLASS:command_frame:command_continuation
*/
#ifndef GABA_DEFINE
struct command_frame
{
struct command_continuation super;
struct command_continuation *up;
struct exception_handler *e;
};
extern struct lsh_class command_frame_class;
#endif /* !GABA_DEFINE */
#ifndef GABA_DECLARE
static void
do_command_frame_mark(struct lsh_object *o,
void (*mark)(struct lsh_object *o))
{
struct command_frame *i = (struct command_frame *) o;
mark((struct lsh_object *) i->up);
mark((struct lsh_object *) i->e);
}
struct lsh_class command_frame_class =
{
STATIC_HEADER,
&(command_continuation_class),
"command_frame",
sizeof(struct command_frame),
do_command_frame_mark,
NULL,
};
#endif /* !GABA_DECLARE */
/*
CLASS:command_context:
*/
#ifndef GABA_DEFINE
struct command_context
{
struct lsh_object super;
struct command_continuation *c;
struct exception_handler *e;
};
extern struct lsh_class command_context_class;
#endif /* !GABA_DEFINE */
#ifndef GABA_DECLARE
static void
do_command_context_mark(struct lsh_object *o,
void (*mark)(struct lsh_object *o))
{
struct command_context *i = (struct command_context *) o;
mark((struct lsh_object *) i->c);
mark((struct lsh_object *) i->e);
}
struct lsh_class command_context_class =
{
STATIC_HEADER,
NULL,
"command_context",
sizeof(struct command_context),
do_command_context_mark,
NULL,
};
#endif /* !GABA_DECLARE */
/*
CLASS:catch_report_collect:command
*/
#ifndef GABA_DEFINE
struct catch_report_collect
{
struct command super;
const struct report_exception_info *info;
};
extern struct lsh_class catch_report_collect_class;
#endif /* !GABA_DEFINE */
#ifndef GABA_DECLARE
static void
do_catch_report_collect_mark(struct lsh_object *o,
void (*mark)(struct lsh_object *o))
{
struct catch_report_collect *i = (struct catch_report_collect *) o;
mark((struct lsh_object *) i->info);
}
struct lsh_class catch_report_collect_class =
{
STATIC_HEADER,
&(command_class),
"catch_report_collect",
sizeof(struct catch_report_collect),
do_catch_report_collect_mark,
NULL,
};
#endif /* !GABA_DECLARE */
|