diff options
| author | Andreas Schwab | 1997-11-21 15:12:34 +0000 |
|---|---|---|
| committer | Andreas Schwab | 1997-11-21 15:12:34 +0000 |
| commit | d748a3dbdc6351ca3fc773ef54d3ec86321c94ef (patch) | |
| tree | ad542228118922eee20eab5a27e48bb02b775276 /src/fontset.h | |
| parent | 0c60dfd7b4834041e0205b4bb45b27c7d1a7732a (diff) | |
| download | emacs-d748a3dbdc6351ca3fc773ef54d3ec86321c94ef.tar.gz emacs-d748a3dbdc6351ca3fc773ef54d3ec86321c94ef.zip | |
Add prototypes and more function declarations.
Diffstat (limited to 'src/fontset.h')
| -rw-r--r-- | src/fontset.h | 37 |
1 files changed, 24 insertions, 13 deletions
diff --git a/src/fontset.h b/src/fontset.h index bb7c8e8ffcd..b99d7de576a 100644 --- a/src/fontset.h +++ b/src/fontset.h | |||
| @@ -170,40 +170,51 @@ struct fontset_data | |||
| 170 | int n_fontsets; | 170 | int n_fontsets; |
| 171 | }; | 171 | }; |
| 172 | 172 | ||
| 173 | /* Forward declaration for prototypes. */ | ||
| 174 | struct frame; | ||
| 175 | |||
| 173 | /* The following six are window system dependent functions. | 176 | /* The following six are window system dependent functions. |
| 174 | Initialization routine of each window system should set appropriate | 177 | Initialization routine of each window system should set appropriate |
| 175 | functions to these variables. For instance, in case of X window, | 178 | functions to these variables. For instance, in case of X window, |
| 176 | x_term_init does this. */ | 179 | x_term_init does this. */ |
| 177 | 180 | ||
| 178 | /* Return a pointer to struct font_info of font FONT_IDX of frame F. */ | 181 | /* Return a pointer to struct font_info of font FONT_IDX of frame F. */ |
| 179 | extern struct font_info *(*get_font_info_func) (/* FRAME_PTR f; | 182 | extern struct font_info *(*get_font_info_func) P_ ((struct frame *f, |
| 180 | int font_idx */); | 183 | int font_idx)); |
| 181 | 184 | ||
| 182 | /* Return a list of font names which matches PATTERN. See the document of | 185 | /* Return a list of font names which matches PATTERN. See the document of |
| 183 | `x-list-fonts' for more detail. */ | 186 | `x-list-fonts' for more detail. */ |
| 184 | extern Lisp_Object (*list_fonts_func) (/* Lisp_Object pattern, face, frame, | 187 | extern Lisp_Object (*list_fonts_func) P_ ((Lisp_Object pattern, |
| 185 | width */); | 188 | Lisp_Object face, |
| 189 | Lisp_Object frame, | ||
| 190 | Lisp_Object width)); | ||
| 186 | 191 | ||
| 187 | /* Load a font named NAME for frame F and return a pointer to the | 192 | /* Load a font named NAME for frame F and return a pointer to the |
| 188 | information of the loaded font. If loading is failed, return -1. */ | 193 | information of the loaded font. If loading is failed, return -1. */ |
| 189 | extern struct font_info *(*load_font_func) (/* FRAME_PTR f; char *name */); | 194 | extern struct font_info *(*load_font_func) P_ ((struct frame *f, |
| 195 | char *name, int)); | ||
| 190 | 196 | ||
| 191 | /* Return a pointer to struct font_info of a font named NAME for frame F. | 197 | /* Return a pointer to struct font_info of a font named NAME for frame F. |
| 192 | If no such font is loaded, return NULL. */ | 198 | If no such font is loaded, return NULL. */ |
| 193 | extern struct font_info *(*query_font_func) (/* FRAME_PTR f; char *name */); | 199 | extern struct font_info *(*query_font_func) P_ ((struct frame *f, char *name)); |
| 194 | 200 | ||
| 195 | /* Additional function for setting fontset or changing fontset | 201 | /* Additional function for setting fontset or changing fontset |
| 196 | contents of frame F. This function may change the coordinate of | 202 | contents of frame F. This function may change the coordinate of |
| 197 | the frame. */ | 203 | the frame. */ |
| 198 | extern void (*set_frame_fontset_func) (/* FRAME_PTR f; Lisp_Object arg, oldval */); | 204 | extern void (*set_frame_fontset_func) P_ ((struct frame *f, Lisp_Object arg, |
| 205 | Lisp_Object oldval)); | ||
| 199 | 206 | ||
| 200 | /* Check if any window system is used now. */ | 207 | /* Check if any window system is used now. */ |
| 201 | extern void (*check_window_system_func) (); | 208 | extern void (*check_window_system_func) P_ ((void)); |
| 202 | 209 | ||
| 203 | extern struct fontset_data *alloc_fontset_data (); | 210 | extern struct fontset_data *alloc_fontset_data P_ ((void)); |
| 204 | extern void free_fontset_data (); | 211 | extern void free_fontset_data P_ ((struct fontset_data *)); |
| 205 | extern struct font_info *fs_load_font (); | 212 | extern struct font_info *fs_load_font P_ ((struct frame *, struct font_info *, |
| 206 | extern Lisp_Object list_fontsets (); | 213 | int, char *, int)); |
| 214 | extern int fs_query_fontset P_ ((struct frame *, char *)); | ||
| 215 | extern int fs_register_fontset P_ ((struct frame *, Lisp_Object)); | ||
| 216 | EXFUN (Fquery_fontset, 1); | ||
| 217 | extern Lisp_Object list_fontsets P_ ((struct frame *, Lisp_Object, int)); | ||
| 207 | extern Lisp_Object Vglobal_fontset_alist; | 218 | extern Lisp_Object Vglobal_fontset_alist; |
| 208 | 219 | ||
| 209 | extern Lisp_Object Qfontset; | 220 | extern Lisp_Object Qfontset; |