From: Kim F. Storm Date: Wed, 16 Feb 2005 23:44:48 +0000 (+0000) Subject: (enum it_method): New enum. X-Git-Tag: ttn-vms-21-2-B4~2225 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6a88f968f938203d39d3561dd08abe28e9435058;p=emacs.git (enum it_method): New enum. (GET_FROM_*): Its members. (struct it): Change member method from function pointer to enum. --- diff --git a/src/dispextern.h b/src/dispextern.h index a11e4daaa22..4626cfc7332 100644 --- a/src/dispextern.h +++ b/src/dispextern.h @@ -1786,6 +1786,16 @@ struct it_slice Lisp_Object height; }; +enum it_method { + GET_FROM_BUFFER = 0, + GET_FROM_DISPLAY_VECTOR, + GET_FROM_COMPOSITION, + GET_FROM_STRING, + GET_FROM_C_STRING, + GET_FROM_IMAGE, + GET_FROM_STRETCH, + NUM_IT_METHODS +}; struct it { @@ -1796,9 +1806,8 @@ struct it /* The window's frame. */ struct frame *f; - /* Function to call to load this structure with the next display - element. */ - int (* method) P_ ((struct it *it)); + /* Method to use to load this structure with the next display element. */ + enum it_method method; /* The next position at which to check for face changes, invisible text, overlay strings, end of text etc., which see. */