From e6859f6368de9020ac47c3624a616ee3c5ebc2da Mon Sep 17 00:00:00 2001 From: morioka Date: Wed, 17 Jun 1998 16:38:11 +0000 Subject: [PATCH] (mime-entity): Add new slots for original-header and parsed-header. (mime-entity-set-original-header): New function. (mime-entity-set-parsed-header): New function. --- mime-def.el | 32 ++++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/mime-def.el b/mime-def.el index 8db35e4..b2376b0 100644 --- a/mime-def.el +++ b/mime-def.el @@ -129,18 +129,26 @@ content-type content-disposition encoding children) (vector buffer header-start header-end body-start body-end - node-id content-type content-disposition encoding children)) - -(defsubst mime-entity-buffer (entity) (aref entity 0)) -(defsubst mime-entity-header-start (entity) (aref entity 1)) -(defsubst mime-entity-header-end (entity) (aref entity 2)) -(defsubst mime-entity-body-start (entity) (aref entity 3)) -(defsubst mime-entity-body-end (entity) (aref entity 4)) -(defsubst mime-entity-node-id (entity) (aref entity 5)) -(defsubst mime-entity-content-type (entity) (aref entity 6)) -(defsubst mime-entity-content-disposition (entity) (aref entity 7)) -(defsubst mime-entity-encoding (entity) (aref entity 8)) -(defsubst mime-entity-children (entity) (aref entity 9)) + node-id content-type content-disposition encoding nil + children nil)) + +(defsubst mime-entity-buffer (entity) (aref entity 0)) +(defsubst mime-entity-header-start (entity) (aref entity 1)) +(defsubst mime-entity-header-end (entity) (aref entity 2)) +(defsubst mime-entity-body-start (entity) (aref entity 3)) +(defsubst mime-entity-body-end (entity) (aref entity 4)) +(defsubst mime-entity-node-id (entity) (aref entity 5)) +(defsubst mime-entity-content-type (entity) (aref entity 6)) +(defsubst mime-entity-content-disposition (entity) (aref entity 7)) +(defsubst mime-entity-encoding (entity) (aref entity 8)) +(defsubst mime-entity-original-header (entity) (aref entity 9)) +(defsubst mime-entity-children (entity) (aref entity 10)) +(defsubst mime-entity-parsed-header (entity) (aref entity 11)) + +(defsubst mime-entity-set-original-header (entity header) + (aset entity 9 header)) +(defsubst mime-entity-set-parsed-header (entity header) + (aset entity 11 header)) (defsubst mime-entity-number (entity) (reverse (mime-entity-node-id entity))) -- 1.7.10.4