Exception handling
This commit is contained in:
+2
-3
@@ -105,14 +105,13 @@ parse_optional_arg_spec(LispVal *used_names, LispVal **out, LispVal *entry) {
|
||||
result->err_obj = (obj); \
|
||||
return; \
|
||||
}
|
||||
void parse_lambda_list(LambdaListParseResult *result, LispVal *list) {
|
||||
void parse_lambda_list(LambdaListParseResult *restrict result, LispVal *list) {
|
||||
enum { REQ = 0, OPT = 1, KEY = 2, REST = 4, MUST_CHANGE } mode = REQ;
|
||||
unsigned int seen = 0;
|
||||
result->err_obj = Qnil;
|
||||
result->status = LLPS_OK;
|
||||
struct LambdaList *out = &result->lambda_list;
|
||||
struct LambdaList *restrict out = &result->lambda_list;
|
||||
LispVal *used_names = make_hash_table_no_gc(Qnil, Qnil);
|
||||
// TODO check for repeat names
|
||||
out->n_req = 0;
|
||||
out->n_opt = 0;
|
||||
out->allow_other_keys = false;
|
||||
|
||||
Reference in New Issue
Block a user