diff options
| author | Kim F. Storm | 2005-02-16 23:44:48 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2005-02-16 23:44:48 +0000 |
| commit | 6a88f968f938203d39d3561dd08abe28e9435058 (patch) | |
| tree | ed97e81a869cf96241e17a64f22ae3eb553167ae /src | |
| parent | 886b1418e0616a16715f23fde7aadc86a5f7928e (diff) | |
| download | emacs-6a88f968f938203d39d3561dd08abe28e9435058.tar.gz emacs-6a88f968f938203d39d3561dd08abe28e9435058.zip | |
(enum it_method): New enum.
(GET_FROM_*): Its members.
(struct it): Change member method from function pointer to enum.
Diffstat (limited to 'src')
| -rw-r--r-- | src/dispextern.h | 15 |
1 files changed, 12 insertions, 3 deletions
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 | |||
| 1786 | Lisp_Object height; | 1786 | Lisp_Object height; |
| 1787 | }; | 1787 | }; |
| 1788 | 1788 | ||
| 1789 | enum it_method { | ||
| 1790 | GET_FROM_BUFFER = 0, | ||
| 1791 | GET_FROM_DISPLAY_VECTOR, | ||
| 1792 | GET_FROM_COMPOSITION, | ||
| 1793 | GET_FROM_STRING, | ||
| 1794 | GET_FROM_C_STRING, | ||
| 1795 | GET_FROM_IMAGE, | ||
| 1796 | GET_FROM_STRETCH, | ||
| 1797 | NUM_IT_METHODS | ||
| 1798 | }; | ||
| 1789 | 1799 | ||
| 1790 | struct it | 1800 | struct it |
| 1791 | { | 1801 | { |
| @@ -1796,9 +1806,8 @@ struct it | |||
| 1796 | /* The window's frame. */ | 1806 | /* The window's frame. */ |
| 1797 | struct frame *f; | 1807 | struct frame *f; |
| 1798 | 1808 | ||
| 1799 | /* Function to call to load this structure with the next display | 1809 | /* Method to use to load this structure with the next display element. */ |
| 1800 | element. */ | 1810 | enum it_method method; |
| 1801 | int (* method) P_ ((struct it *it)); | ||
| 1802 | 1811 | ||
| 1803 | /* The next position at which to check for face changes, invisible | 1812 | /* The next position at which to check for face changes, invisible |
| 1804 | text, overlay strings, end of text etc., which see. */ | 1813 | text, overlay strings, end of text etc., which see. */ |