Mercurial > hg > xemacs-beta
comparison src/opaque.c @ 440:8de8e3f6228a r21-2-28
Import from CVS: tag r21-2-28
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:33:38 +0200 |
parents | 3ecd8885ac67 |
children | abe6d1db359e |
comparison
equal
deleted
inserted
replaced
439:357dd071b03c | 440:8de8e3f6228a |
---|---|
62 /* Return an opaque object of size SIZE. | 62 /* Return an opaque object of size SIZE. |
63 If DATA is OPAQUE_CLEAR, the object's data is memset to '\0' bytes. | 63 If DATA is OPAQUE_CLEAR, the object's data is memset to '\0' bytes. |
64 If DATA is OPAQUE_UNINIT, the object's data is uninitialized. | 64 If DATA is OPAQUE_UNINIT, the object's data is uninitialized. |
65 Else the object's data is initialized by copying from DATA. */ | 65 Else the object's data is initialized by copying from DATA. */ |
66 Lisp_Object | 66 Lisp_Object |
67 make_opaque (size_t size, CONST void *data) | 67 make_opaque (CONST void *data, size_t size) |
68 { | 68 { |
69 Lisp_Opaque *p = (Lisp_Opaque *) | 69 Lisp_Opaque *p = (Lisp_Opaque *) |
70 alloc_lcrecord (offsetof (Lisp_Opaque, data) + size, &lrecord_opaque); | 70 alloc_lcrecord (offsetof (Lisp_Opaque, data) + size, &lrecord_opaque); |
71 p->size = size; | 71 p->size = size; |
72 | 72 |