Builtin function argument parsing

This commit is contained in:
2026-01-19 23:29:14 -08:00
parent c63b104bc6
commit 243a012d3e
11 changed files with 243 additions and 50 deletions
+5 -1
View File
@@ -78,8 +78,12 @@ DEFUN(make_symbol, "make-symbol", (LispVal * name), "(name)",
LispSymbol *obj = lisp_alloc_object(sizeof(LispSymbol), TYPE_SYMBOL);
obj->name = name;
obj->function = Qnil;
obj->value = Qunbound;
obj->plist = Qnil;
if (KEYWORDP(obj)) {
obj->value = obj;
} else {
obj->value = Qunbound;
}
return obj;
}