]> git.eshelyaron.com Git - emacs.git/commitdiff
(struct it): Add union to iterator stack to save
authorKim F. Storm <storm@cua.dk>
Fri, 16 Jun 2006 11:53:00 +0000 (11:53 +0000)
committerKim F. Storm <storm@cua.dk>
Fri, 16 Jun 2006 11:53:00 +0000 (11:53 +0000)
image, composition, and stretch specific paramters.

src/dispextern.h

index e975a1676e233ee47e7c7bc07588853dd4b8e462..f92cacbfa2c0f52c6a7373f80d179867e153a7f5 100644 (file)
@@ -1932,7 +1932,21 @@ struct it
     int stop_charpos;
     int face_id;
     Lisp_Object string;
-    int image_id;
+    union {
+      struct {
+       Lisp_Object object;
+       struct it_slice slice;
+       int image_id;
+      } image;
+      struct {
+       Lisp_Object object;
+       int c, len;
+       int cmp_id, cmp_len;
+      } comp;
+      struct {
+       Lisp_Object object;
+      } stretch;
+    } u;
     struct display_pos pos;
     int end_charpos;
     int string_nchars;
@@ -1941,7 +1955,6 @@ struct it
     unsigned multibyte_p : 1;
     unsigned string_from_display_prop_p : 1;
     unsigned display_ellipsis_p : 1;
-    struct it_slice slice;
     Lisp_Object space_width;
     short voffset;
     Lisp_Object font_height;