mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 11:50:28 +02:00
Don't cast SCM values to pointers.
This commit is contained in:
parent
95c9e176a6
commit
8246bf3eba
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
2000-03-21 Dirk Herrmann <D.Herrmann@tu-bs.de>
|
||||
|
||||
* struct.h (SCM_STRUCT_DATA): Don't cast SCM values to pointers.
|
||||
|
||||
2000-03-21 Dirk Herrmann <D.Herrmann@tu-bs.de>
|
||||
|
||||
* symbols.h, symbols.c (scm_strhash): Declare the string
|
||||
|
|
|
@ -78,7 +78,7 @@ typedef scm_sizet (*scm_struct_free_t) (SCM *vtable, SCM *data);
|
|||
(no hidden words) */
|
||||
|
||||
#define SCM_STRUCTP(X) (SCM_NIMP(X) && (SCM_TYP3(X) == scm_tc3_cons_gloc))
|
||||
#define SCM_STRUCT_DATA(X) ((SCM*)(SCM_CDR(X)))
|
||||
#define SCM_STRUCT_DATA(X) ((SCM *) SCM2PTR (SCM_CDR (X)))
|
||||
#define SCM_STRUCT_VTABLE_DATA(X) ((SCM *) (SCM_UNPACK (SCM_CAR (X)) - 1))
|
||||
#define SCM_STRUCT_LAYOUT(X) (SCM_STRUCT_VTABLE_DATA(X)[scm_vtable_index_layout])
|
||||
#define SCM_STRUCT_VTABLE(X) (SCM_STRUCT_VTABLE_DATA(X)[scm_vtable_index_vtable])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue