summaryrefslogtreecommitdiffstats
path: root/lib.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-07-27 22:17:03 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-07-27 22:17:03 -0700
commit15933c5dc8298e19de7e2916fac5368c96c765c3 (patch)
treed4c65c4bfacdfd8e2a5437eb24c6fb4775b8c41a /lib.h
parentafdcf81a2c4556b4a6107afd9869616267c9bdeb (diff)
downloadtxr-15933c5dc8298e19de7e2916fac5368c96c765c3.tar.gz
txr-15933c5dc8298e19de7e2916fac5368c96c765c3.tar.bz2
txr-15933c5dc8298e19de7e2916fac5368c96c765c3.zip
struct: get rid of pointer typedef.
* lib.h (slot_cache_t): Typedef removed. (struct sym): Use slot_cache_set_t *. * struct.c (struct_type_finalize, lookup_slot, lookup_static_slot, lookup_static_slot_desc): Likewise.
Diffstat (limited to 'lib.h')
-rw-r--r--lib.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib.h b/lib.h
index 7f227b53..e3b89087 100644
--- a/lib.h
+++ b/lib.h
@@ -130,14 +130,14 @@ typedef struct {
cnum id;
cnum slot;
} slot_cache_entry_t;
+
typedef slot_cache_entry_t slot_cache_set_t[4];
-typedef slot_cache_set_t *slot_cache_t;
struct sym {
obj_common;
val name;
val package;
- slot_cache_t slot_cache;
+ slot_cache_set_t *slot_cache;
};
struct package {