diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2025-08-20 21:50:58 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2025-08-20 21:50:58 +0100 |
commit | df558da7e1979a59b5207c323962aa59b61258e4 (patch) | |
tree | 99a69d572b536a5632a687a580db25e9735ffe3c /tag.c | |
parent | 643896e2c8a2a9088819d3410f94008a83f575c6 (diff) | |
download | alisp-df558da7e1979a59b5207c323962aa59b61258e4.tar.gz alisp-df558da7e1979a59b5207c323962aa59b61258e4.tar.bz2 alisp-df558da7e1979a59b5207c323962aa59b61258e4.zip |
Use sv_t instead of raw char*
We're storing them as sv_t's anyway, we're fucked with regards to
indirection. Thus, let's be nice to ourselves, and deal with the
structures. We get the size of the structure for free anyway!
Diffstat (limited to 'tag.c')
-rw-r--r-- | tag.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -22,7 +22,7 @@ lisp_t *tag_int(i64 i) return TAG((u64)i, INT); } -lisp_t *tag_sym(char *str) +lisp_t *tag_sym(sv_t *str) { return TAG((u64)str, SYM); } @@ -57,10 +57,10 @@ i64 as_int(lisp_t *obj) ; } -char *as_sym(lisp_t *obj) +sv_t *as_sym(lisp_t *obj) { assert(IS_TAG(obj, SYM)); - return (char *)UNTAG(obj, SYM); + return (sv_t *)UNTAG(obj, SYM); } cons_t *as_cons(lisp_t *obj) |