diff --git a/basis/classes/struct/struct.factor b/basis/classes/struct/struct.factor index 63c3fd159c..c0ff394d5a 100644 --- a/basis/classes/struct/struct.factor +++ b/basis/classes/struct/struct.factor @@ -74,21 +74,23 @@ M: struct hashcode* [ heap-size read ] [ memory>struct ] bi ; struct ; inline + PRIVATE> : (malloc-struct) ( class -- struct ) [ heap-size malloc ] keep memory>struct ; inline : malloc-struct ( class -- struct ) - [ >c-ptr malloc-byte-array ] [ 1 swap heap-size calloc ] (init-struct) ; inline + [ >c-ptr malloc-byte-array ] [ 1 swap heap-size calloc ] init-struct ; inline : (struct) ( class -- struct ) [ heap-size (byte-array) ] keep memory>struct ; inline : ( class -- struct ) - [ >c-ptr clone ] [ heap-size ] (init-struct) ; inline + [ >c-ptr clone ] [ heap-size ] init-struct ; inline MACRO: ( class -- quot: ( ... -- struct ) ) [