Remove P_ and __P macros.
* lwlib/lwlib-Xaw.h: Remove P_ and __P macros. * lwlib/lwlib-Xlw.h: * lwlib/lwlib-Xm.h: * lwlib/lwlib-int.h: * lwlib/lwlib-utils.h: * lwlib/lwlib.h: Likewise. * src/buffer.h: Remove P_ and __P macros. * src/category.h: * src/ccl.h: * src/character.h: * src/charset.h: * src/cm.h: * src/coding.h: * src/composite.h: * src/dispextern.h: * src/disptab.h: * src/font.h: * src/fontset.h: * src/frame.h: * src/gtkutil.h: * src/indent.h: * src/intervals.h: * src/keyboard.h: * src/keymap.h: * src/lisp.h: * src/macros.h: * src/md5.h: * src/menu.h: * src/msdos.h: * src/nsterm.h: * src/puresize.h: * src/region-cache.h: * src/syntax.h: * src/syssignal.h: * src/systime.h: * src/termhooks.h: * src/w32term.h: * src/widget.h: * src/window.h: * src/xgselect.h: * src/xsettings.h: * src/xterm.h: Likewise.
This commit is contained in:
parent
d9170db520
commit
383e09700c
45 changed files with 1654 additions and 1604 deletions
|
@ -1,3 +1,13 @@
|
|||
2010-07-02 Jan Djärv <jan.h.d@swipnet.se>
|
||||
|
||||
Remove P_ and __P macros.
|
||||
* lwlib-Xaw.h: Remove P_ and __P macros.
|
||||
* lwlib-Xlw.h:
|
||||
* lwlib-Xm.h:
|
||||
* lwlib-int.h:
|
||||
* lwlib-utils.h:
|
||||
* lwlib.h: Likewise.
|
||||
|
||||
2010-05-15 Glenn Morris <rgm@gnu.org>
|
||||
|
||||
* Makefile.in (mostlyclean): Remove references to non-existent files.
|
||||
|
|
|
@ -6,25 +6,25 @@
|
|||
extern widget_creation_entry xaw_creation_table [];
|
||||
|
||||
Widget
|
||||
xaw_create_dialog __P ((widget_instance*));
|
||||
xaw_create_dialog (widget_instance*);
|
||||
|
||||
Boolean
|
||||
lw_xaw_widget_p __P ((Widget));
|
||||
lw_xaw_widget_p (Widget);
|
||||
|
||||
void
|
||||
xaw_update_one_widget __P ((widget_instance *, Widget, widget_value *, Boolean));
|
||||
xaw_update_one_widget (widget_instance *, Widget, widget_value *, Boolean);
|
||||
|
||||
void
|
||||
xaw_update_one_value __P ((widget_instance *, Widget, widget_value *));
|
||||
xaw_update_one_value (widget_instance *, Widget, widget_value *);
|
||||
|
||||
void
|
||||
xaw_destroy_instance __P ((widget_instance *));
|
||||
xaw_destroy_instance (widget_instance *);
|
||||
|
||||
void
|
||||
xaw_popup_menu __P ((Widget, XEvent *));
|
||||
xaw_popup_menu (Widget, XEvent *);
|
||||
|
||||
void
|
||||
xaw_pop_instance __P ((widget_instance *, Boolean));
|
||||
xaw_pop_instance (widget_instance *, Boolean);
|
||||
|
||||
#endif /* LWLIB_XAW_H */
|
||||
|
||||
|
|
|
@ -7,24 +7,24 @@ extern widget_creation_entry xlw_creation_table [];
|
|||
extern widget_creation_function xlw_create_dialog;
|
||||
|
||||
Boolean
|
||||
lw_lucid_widget_p __P ((Widget widget));
|
||||
lw_lucid_widget_p (Widget widget);
|
||||
|
||||
void
|
||||
xlw_update_one_widget __P ((widget_instance* instance, Widget widget,
|
||||
widget_value* val, Boolean deep_p));
|
||||
xlw_update_one_widget (widget_instance* instance, Widget widget,
|
||||
widget_value* val, Boolean deep_p);
|
||||
|
||||
void
|
||||
xlw_update_one_value __P ((widget_instance* instance, Widget widget,
|
||||
widget_value* val));
|
||||
xlw_update_one_value (widget_instance* instance, Widget widget,
|
||||
widget_value* val);
|
||||
|
||||
void
|
||||
xlw_destroy_instance __P ((widget_instance* instance));
|
||||
xlw_destroy_instance (widget_instance* instance);
|
||||
|
||||
void
|
||||
xlw_pop_instance __P ((widget_instance* instance, Boolean up));
|
||||
xlw_pop_instance (widget_instance* instance, Boolean up);
|
||||
|
||||
void
|
||||
xlw_popup_menu __P ((Widget widget, XEvent * event));
|
||||
xlw_popup_menu (Widget widget, XEvent * event);
|
||||
|
||||
#endif /* LWLIB_XLW_H */
|
||||
|
||||
|
|
|
@ -26,36 +26,36 @@ Boston, MA 02110-1301, USA. */
|
|||
extern widget_creation_entry xm_creation_table [];
|
||||
|
||||
Widget
|
||||
xm_create_dialog __P ((widget_instance* instance));
|
||||
xm_create_dialog (widget_instance* instance);
|
||||
|
||||
Boolean
|
||||
lw_motif_widget_p __P ((Widget widget));
|
||||
lw_motif_widget_p (Widget widget);
|
||||
|
||||
void
|
||||
xm_update_one_widget __P ((widget_instance* instance, Widget widget,
|
||||
widget_value* val, Boolean deep_p));
|
||||
xm_update_one_widget (widget_instance* instance, Widget widget,
|
||||
widget_value* val, Boolean deep_p);
|
||||
|
||||
void
|
||||
xm_update_one_value __P ((widget_instance* instance, Widget widget,
|
||||
widget_value* val));
|
||||
xm_update_one_value (widget_instance* instance, Widget widget,
|
||||
widget_value* val);
|
||||
|
||||
void
|
||||
xm_destroy_instance __P ((widget_instance* instance));
|
||||
xm_destroy_instance (widget_instance* instance);
|
||||
|
||||
void
|
||||
xm_set_keyboard_focus __P ((Widget parent, Widget w));
|
||||
xm_set_keyboard_focus (Widget parent, Widget w);
|
||||
|
||||
void
|
||||
xm_popup_menu __P ((Widget widget, XEvent *event));
|
||||
xm_popup_menu (Widget widget, XEvent *event);
|
||||
|
||||
void
|
||||
xm_pop_instance __P ((widget_instance* instance, Boolean up));
|
||||
xm_pop_instance (widget_instance* instance, Boolean up);
|
||||
|
||||
void
|
||||
xm_set_main_areas __P ((Widget parent, Widget menubar, Widget work_area));
|
||||
xm_set_main_areas (Widget parent, Widget menubar, Widget work_area);
|
||||
|
||||
void
|
||||
xm_manage_resizing __P ((Widget w, Boolean flag));
|
||||
xm_manage_resizing (Widget w, Boolean flag);
|
||||
|
||||
#endif /* LWLIB_XM_H */
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ Boston, MA 02110-1301, USA. */
|
|||
|
||||
#include "lwlib.h"
|
||||
|
||||
extern char *safe_strdup __P ((const char *));
|
||||
extern char *safe_strdup (const char *);
|
||||
|
||||
struct widget_xft_data;
|
||||
|
||||
|
@ -70,14 +70,14 @@ typedef struct _widget_creation_entry
|
|||
/* update all other instances of a widget. Can be used in a callback when
|
||||
a widget has been used by the user */
|
||||
void
|
||||
lw_internal_update_other_instances __P ((Widget, XtPointer, XtPointer));
|
||||
lw_internal_update_other_instances (Widget, XtPointer, XtPointer);
|
||||
|
||||
/* get the widget_value for a widget in a given instance */
|
||||
widget_value*
|
||||
lw_get_widget_value_for_widget __P ((widget_instance *, Widget));
|
||||
lw_get_widget_value_for_widget (widget_instance *, Widget);
|
||||
|
||||
widget_info *lw_get_widget_info __P ((LWLIB_ID));
|
||||
widget_instance * lw_get_widget_instance __P ((Widget));
|
||||
widget_info *lw_get_widget_info (LWLIB_ID);
|
||||
widget_instance * lw_get_widget_instance (Widget);
|
||||
|
||||
#endif /* LWLIB_INTERNAL_H */
|
||||
|
||||
|
|
|
@ -1,21 +1,21 @@
|
|||
#ifndef _LWLIB_UTILS_H_
|
||||
#define _LWLIB_UTILS_H_
|
||||
|
||||
void XtNoClearRefreshWidget __P ((Widget));
|
||||
void XtNoClearRefreshWidget (Widget);
|
||||
|
||||
typedef void (*XtApplyToWidgetsProc) __P ((Widget, XtPointer));
|
||||
typedef void* (*XtApplyUntilToWidgetsProc) __P ((Widget, XtPointer));
|
||||
typedef void (*XtApplyToWidgetsProc) (Widget, XtPointer);
|
||||
typedef void* (*XtApplyUntilToWidgetsProc) (Widget, XtPointer);
|
||||
|
||||
void XtApplyToWidgets __P ((Widget, XtApplyToWidgetsProc, XtPointer));
|
||||
void *XtApplyUntilToWidgets __P ((Widget, XtApplyUntilToWidgetsProc, XtPointer));
|
||||
void XtApplyToWidgets (Widget, XtApplyToWidgetsProc, XtPointer);
|
||||
void *XtApplyUntilToWidgets (Widget, XtApplyUntilToWidgetsProc, XtPointer);
|
||||
|
||||
Widget *XtCompositeChildren __P ((Widget, unsigned int *));
|
||||
Widget *XtCompositeChildren (Widget, unsigned int *);
|
||||
|
||||
/* returns True is the widget is being destroyed, False otherwise */
|
||||
Boolean
|
||||
XtWidgetBeingDestroyedP __P ((Widget widget));
|
||||
XtWidgetBeingDestroyedP (Widget widget);
|
||||
|
||||
void XtSafelyDestroyWidget __P ((Widget));
|
||||
void XtSafelyDestroyWidget (Widget);
|
||||
|
||||
#endif /* _LWLIB_UTILS_H_ */
|
||||
|
||||
|
|
|
@ -130,66 +130,66 @@ typedef struct _widget_value
|
|||
} widget_value;
|
||||
|
||||
|
||||
typedef void (*lw_callback) __P ((Widget w, LWLIB_ID id, void* data));
|
||||
typedef void (*lw_callback) (Widget w, LWLIB_ID id, void* data);
|
||||
|
||||
void lw_register_widget __P ((char* type, char* name, LWLIB_ID id,
|
||||
widget_value* val, lw_callback pre_activate_cb,
|
||||
lw_callback selection_cb,
|
||||
lw_callback post_activate_cb,
|
||||
lw_callback highlight_cb));
|
||||
Widget lw_get_widget __P ((LWLIB_ID id, Widget parent, Boolean pop_up_p));
|
||||
Widget lw_make_widget __P ((LWLIB_ID id, Widget parent, Boolean pop_up_p));
|
||||
Widget lw_create_widget __P ((char* type, char* name, LWLIB_ID id,
|
||||
widget_value* val, Widget parent, Boolean pop_up_p,
|
||||
lw_callback pre_activate_cb,
|
||||
lw_callback selection_cb,
|
||||
lw_callback post_activate_cb,
|
||||
lw_callback highlight_cb));
|
||||
LWLIB_ID lw_get_widget_id __P ((Widget w));
|
||||
int lw_modify_all_widgets __P ((LWLIB_ID id, widget_value* val, Boolean deep_p));
|
||||
void lw_destroy_widget __P ((Widget w));
|
||||
void lw_destroy_all_widgets __P ((LWLIB_ID id));
|
||||
void lw_destroy_everything __P ((void));
|
||||
void lw_destroy_all_pop_ups __P ((void));
|
||||
Widget lw_raise_all_pop_up_widgets __P ((void));
|
||||
widget_value* lw_get_all_values __P ((LWLIB_ID id));
|
||||
Boolean lw_get_some_values __P ((LWLIB_ID id, widget_value* val));
|
||||
void lw_pop_up_all_widgets __P ((LWLIB_ID id));
|
||||
void lw_pop_down_all_widgets __P ((LWLIB_ID id));
|
||||
void lw_register_widget (char* type, char* name, LWLIB_ID id,
|
||||
widget_value* val, lw_callback pre_activate_cb,
|
||||
lw_callback selection_cb,
|
||||
lw_callback post_activate_cb,
|
||||
lw_callback highlight_cb);
|
||||
Widget lw_get_widget (LWLIB_ID id, Widget parent, Boolean pop_up_p);
|
||||
Widget lw_make_widget (LWLIB_ID id, Widget parent, Boolean pop_up_p);
|
||||
Widget lw_create_widget (char* type, char* name, LWLIB_ID id,
|
||||
widget_value* val, Widget parent, Boolean pop_up_p,
|
||||
lw_callback pre_activate_cb,
|
||||
lw_callback selection_cb,
|
||||
lw_callback post_activate_cb,
|
||||
lw_callback highlight_cb);
|
||||
LWLIB_ID lw_get_widget_id (Widget w);
|
||||
int lw_modify_all_widgets (LWLIB_ID id, widget_value* val, Boolean deep_p);
|
||||
void lw_destroy_widget (Widget w);
|
||||
void lw_destroy_all_widgets (LWLIB_ID id);
|
||||
void lw_destroy_everything (void);
|
||||
void lw_destroy_all_pop_ups (void);
|
||||
Widget lw_raise_all_pop_up_widgets (void);
|
||||
widget_value* lw_get_all_values (LWLIB_ID id);
|
||||
Boolean lw_get_some_values (LWLIB_ID id, widget_value* val);
|
||||
void lw_pop_up_all_widgets (LWLIB_ID id);
|
||||
void lw_pop_down_all_widgets (LWLIB_ID id);
|
||||
widget_value *malloc_widget_value ();
|
||||
void free_widget_value __P ((widget_value *));
|
||||
void lw_popup_menu __P ((Widget, XEvent *));
|
||||
void free_widget_value (widget_value *);
|
||||
void lw_popup_menu (Widget, XEvent *);
|
||||
|
||||
/* Toolkit independent way of focusing on a Widget at the Xt level. */
|
||||
void lw_set_keyboard_focus __P ((Widget parent, Widget w));
|
||||
void lw_set_keyboard_focus (Widget parent, Widget w);
|
||||
|
||||
/* Silly Energize hack to invert the "sheet" button */
|
||||
void lw_show_busy __P ((Widget w, Boolean busy));
|
||||
void lw_show_busy (Widget w, Boolean busy);
|
||||
|
||||
/* Silly hack to assist with Lucid/Athena geometry management. */
|
||||
void lw_refigure_widget __P ((Widget w, Boolean doit));
|
||||
void lw_refigure_widget (Widget w, Boolean doit);
|
||||
|
||||
/* Toolkit independent way of determining if an event occurred on a
|
||||
menubar. */
|
||||
Boolean lw_window_is_in_menubar __P ((Window win, Widget menubar_widget));
|
||||
Boolean lw_window_is_in_menubar (Window win, Widget menubar_widget);
|
||||
|
||||
/* Manage resizing: TRUE permits resizing widget w; FALSE disallows it. */
|
||||
void lw_allow_resizing __P ((Widget w, Boolean flag));
|
||||
void lw_allow_resizing (Widget w, Boolean flag);
|
||||
|
||||
/* Set up the main window. */
|
||||
void lw_set_main_areas __P ((Widget parent,
|
||||
Widget menubar,
|
||||
Widget work_area));
|
||||
void lw_set_main_areas (Widget parent,
|
||||
Widget menubar,
|
||||
Widget work_area);
|
||||
|
||||
/* Value is non-zero if LABEL is a menu separator. If it is, *TYPE is
|
||||
set to an appropriate enumerator of type enum menu_separator.
|
||||
MOTIF_P non-zero means map separator types not supported by Motif
|
||||
to similar ones that are supported. */
|
||||
|
||||
int lw_separator_p __P ((char *label, enum menu_separator *type,
|
||||
int motif_p));
|
||||
int lw_separator_p (char *label, enum menu_separator *type,
|
||||
int motif_p);
|
||||
|
||||
void lwlib_bcopy __P ((char*, char*, int));
|
||||
void lwlib_bcopy (char*, char*, int);
|
||||
|
||||
#endif /* LWLIB_H */
|
||||
|
||||
|
|
|
@ -1,3 +1,43 @@
|
|||
2010-07-02 Jan Djärv <jan.h.d@swipnet.se>
|
||||
|
||||
Remove P_ and __P macros.
|
||||
* buffer.h: Remove P_ and __P macros.
|
||||
* category.h:
|
||||
* ccl.h:
|
||||
* character.h:
|
||||
* charset.h:
|
||||
* cm.h:
|
||||
* coding.h:
|
||||
* composite.h:
|
||||
* dispextern.h:
|
||||
* disptab.h:
|
||||
* font.h:
|
||||
* fontset.h:
|
||||
* frame.h:
|
||||
* gtkutil.h:
|
||||
* indent.h:
|
||||
* intervals.h:
|
||||
* keyboard.h:
|
||||
* keymap.h:
|
||||
* lisp.h:
|
||||
* macros.h:
|
||||
* md5.h:
|
||||
* menu.h:
|
||||
* msdos.h:
|
||||
* nsterm.h:
|
||||
* puresize.h:
|
||||
* region-cache.h:
|
||||
* syntax.h:
|
||||
* syssignal.h:
|
||||
* systime.h:
|
||||
* termhooks.h:
|
||||
* w32term.h:
|
||||
* widget.h:
|
||||
* window.h:
|
||||
* xgselect.h:
|
||||
* xsettings.h:
|
||||
* xterm.h: Likewise.
|
||||
|
||||
2010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
|
||||
|
||||
* lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
|
||||
|
|
20
src/atimer.h
20
src/atimer.h
|
@ -49,7 +49,7 @@ enum atimer_type
|
|||
|
||||
/* Type of timer callback functions. */
|
||||
|
||||
typedef void (* atimer_callback) P_ ((struct atimer *timer));
|
||||
typedef void (* atimer_callback) (struct atimer *timer);
|
||||
|
||||
/* Structure describing an asynchronous timer. */
|
||||
|
||||
|
@ -77,15 +77,15 @@ struct atimer
|
|||
|
||||
/* Function prototypes. */
|
||||
|
||||
struct atimer *start_atimer P_ ((enum atimer_type, EMACS_TIME,
|
||||
atimer_callback, void *));
|
||||
void cancel_atimer P_ ((struct atimer *));
|
||||
void do_pending_atimers P_ ((void));
|
||||
void init_atimer P_ ((void));
|
||||
void turn_on_atimers P_ ((int));
|
||||
void stop_other_atimers P_ ((struct atimer *));
|
||||
void run_all_atimers P_ ((void));
|
||||
Lisp_Object unwind_stop_other_atimers P_ ((Lisp_Object));
|
||||
struct atimer *start_atimer (enum atimer_type, EMACS_TIME,
|
||||
atimer_callback, void *);
|
||||
void cancel_atimer (struct atimer *);
|
||||
void do_pending_atimers (void);
|
||||
void init_atimer (void);
|
||||
void turn_on_atimers (int);
|
||||
void stop_other_atimers (struct atimer *);
|
||||
void run_all_atimers (void);
|
||||
Lisp_Object unwind_stop_other_atimers (Lisp_Object);
|
||||
|
||||
#endif /* EMACS_ATIMER_H */
|
||||
|
||||
|
|
46
src/buffer.h
46
src/buffer.h
|
@ -225,12 +225,12 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
#define BUF_TEMP_SET_PT(buffer, position) \
|
||||
(temp_set_point ((buffer), (position)))
|
||||
|
||||
extern void set_point P_ ((EMACS_INT));
|
||||
extern INLINE void temp_set_point P_ ((struct buffer *, EMACS_INT));
|
||||
extern void set_point_both P_ ((EMACS_INT, EMACS_INT));
|
||||
extern INLINE void temp_set_point_both P_ ((struct buffer *,
|
||||
EMACS_INT, EMACS_INT));
|
||||
extern void enlarge_buffer_text P_ ((struct buffer *, EMACS_INT));
|
||||
extern void set_point (EMACS_INT);
|
||||
extern INLINE void temp_set_point (struct buffer *, EMACS_INT);
|
||||
extern void set_point_both (EMACS_INT, EMACS_INT);
|
||||
extern INLINE void temp_set_point_both (struct buffer *,
|
||||
EMACS_INT, EMACS_INT);
|
||||
extern void enlarge_buffer_text (struct buffer *, EMACS_INT);
|
||||
|
||||
|
||||
/* Macros for setting the BEGV, ZV or PT of a given buffer.
|
||||
|
@ -857,23 +857,23 @@ extern struct buffer buffer_local_flags;
|
|||
|
||||
extern struct buffer buffer_local_symbols;
|
||||
|
||||
extern void delete_all_overlays P_ ((struct buffer *));
|
||||
extern void reset_buffer P_ ((struct buffer *));
|
||||
extern void evaporate_overlays P_ ((EMACS_INT));
|
||||
extern int overlays_at P_ ((EMACS_INT pos, int extend, Lisp_Object **vec_ptr,
|
||||
int *len_ptr, EMACS_INT *next_ptr,
|
||||
EMACS_INT *prev_ptr, int change_req));
|
||||
extern int sort_overlays P_ ((Lisp_Object *, int, struct window *));
|
||||
extern void recenter_overlay_lists P_ ((struct buffer *, EMACS_INT));
|
||||
extern int overlay_strings P_ ((EMACS_INT, struct window *, unsigned char **));
|
||||
extern void validate_region P_ ((Lisp_Object *, Lisp_Object *));
|
||||
extern void set_buffer_internal P_ ((struct buffer *));
|
||||
extern void set_buffer_internal_1 P_ ((struct buffer *));
|
||||
extern void set_buffer_temp P_ ((struct buffer *));
|
||||
extern void record_buffer P_ ((Lisp_Object));
|
||||
extern void buffer_slot_type_mismatch P_ ((Lisp_Object, int)) NO_RETURN;
|
||||
extern void fix_overlays_before P_ ((struct buffer *, EMACS_INT, EMACS_INT));
|
||||
extern void mmap_set_vars P_ ((int));
|
||||
extern void delete_all_overlays (struct buffer *);
|
||||
extern void reset_buffer (struct buffer *);
|
||||
extern void evaporate_overlays (EMACS_INT);
|
||||
extern int overlays_at (EMACS_INT pos, int extend, Lisp_Object **vec_ptr,
|
||||
int *len_ptr, EMACS_INT *next_ptr,
|
||||
EMACS_INT *prev_ptr, int change_req);
|
||||
extern int sort_overlays (Lisp_Object *, int, struct window *);
|
||||
extern void recenter_overlay_lists (struct buffer *, EMACS_INT);
|
||||
extern int overlay_strings (EMACS_INT, struct window *, unsigned char **);
|
||||
extern void validate_region (Lisp_Object *, Lisp_Object *);
|
||||
extern void set_buffer_internal (struct buffer *);
|
||||
extern void set_buffer_internal_1 (struct buffer *);
|
||||
extern void set_buffer_temp (struct buffer *);
|
||||
extern void record_buffer (Lisp_Object);
|
||||
extern void buffer_slot_type_mismatch (Lisp_Object, int) NO_RETURN;
|
||||
extern void fix_overlays_before (struct buffer *, EMACS_INT, EMACS_INT);
|
||||
extern void mmap_set_vars (int);
|
||||
|
||||
/* Get overlays at POSN into array OVERLAYS with NOVERLAYS elements.
|
||||
If NEXTP is non-NULL, return next overlay there.
|
||||
|
|
|
@ -113,8 +113,8 @@ extern Lisp_Object _temp_category_set;
|
|||
(!(SINGLE_BYTE_CHAR_P (c1) && SINGLE_BYTE_CHAR_P (c2)) \
|
||||
&& word_boundary_p (c1, c2))
|
||||
|
||||
extern int word_boundary_p P_ ((int, int));
|
||||
extern void set_category_set P_ ((Lisp_Object, Lisp_Object, Lisp_Object));
|
||||
extern int word_boundary_p (int, int);
|
||||
extern void set_category_set (Lisp_Object, Lisp_Object, Lisp_Object);
|
||||
|
||||
/* arch-tag: 309dfe83-c3e2-4d22-8e81-faae5aece0ff
|
||||
(do not change this comment) */
|
||||
|
|
|
@ -97,13 +97,13 @@ extern Lisp_Object Vfont_ccl_encoder_alist;
|
|||
|
||||
/* Setup fields of the structure pointed by CCL appropriately for the
|
||||
execution of ccl program CCL_PROG (symbol or vector). */
|
||||
extern int setup_ccl_program P_ ((struct ccl_program *, Lisp_Object));
|
||||
extern int setup_ccl_program (struct ccl_program *, Lisp_Object);
|
||||
|
||||
/* Check if CCL is updated or not. If not, re-setup members of CCL. */
|
||||
extern int check_ccl_update P_ ((struct ccl_program *));
|
||||
extern int check_ccl_update (struct ccl_program *);
|
||||
|
||||
extern void ccl_driver P_ ((struct ccl_program *, int *, int *, int, int,
|
||||
Lisp_Object));
|
||||
extern void ccl_driver (struct ccl_program *, int *, int *, int, int,
|
||||
Lisp_Object);
|
||||
|
||||
/* Vector of CCL program names vs corresponding program data. */
|
||||
extern Lisp_Object Vccl_program_table;
|
||||
|
|
|
@ -596,24 +596,24 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
: 0)
|
||||
|
||||
|
||||
extern int char_resolve_modifier_mask P_ ((int));
|
||||
extern int char_string P_ ((unsigned, unsigned char *));
|
||||
extern int string_char P_ ((const unsigned char *,
|
||||
const unsigned char **, int *));
|
||||
extern int char_resolve_modifier_mask (int);
|
||||
extern int char_string (unsigned, unsigned char *);
|
||||
extern int string_char (const unsigned char *,
|
||||
const unsigned char **, int *);
|
||||
|
||||
extern int translate_char P_ ((Lisp_Object, int c));
|
||||
extern int char_printable_p P_ ((int c));
|
||||
extern void parse_str_as_multibyte P_ ((const unsigned char *, int, int *,
|
||||
int *));
|
||||
extern int parse_str_to_multibyte P_ ((unsigned char *, int));
|
||||
extern int str_as_multibyte P_ ((unsigned char *, int, int, int *));
|
||||
extern int str_to_multibyte P_ ((unsigned char *, int, int));
|
||||
extern int str_as_unibyte P_ ((unsigned char *, int));
|
||||
extern EMACS_INT str_to_unibyte P_ ((const unsigned char *, unsigned char *,
|
||||
EMACS_INT, int));
|
||||
extern int strwidth P_ ((unsigned char *, int));
|
||||
extern int c_string_width P_ ((const unsigned char *, int, int, int *, int *));
|
||||
extern int lisp_string_width P_ ((Lisp_Object, int, int *, int *));
|
||||
extern int translate_char (Lisp_Object, int c);
|
||||
extern int char_printable_p (int c);
|
||||
extern void parse_str_as_multibyte (const unsigned char *, int, int *,
|
||||
int *);
|
||||
extern int parse_str_to_multibyte (unsigned char *, int);
|
||||
extern int str_as_multibyte (unsigned char *, int, int, int *);
|
||||
extern int str_to_multibyte (unsigned char *, int, int);
|
||||
extern int str_as_unibyte (unsigned char *, int);
|
||||
extern EMACS_INT str_to_unibyte (const unsigned char *, unsigned char *,
|
||||
EMACS_INT, int);
|
||||
extern int strwidth (unsigned char *, int);
|
||||
extern int c_string_width (const unsigned char *, int, int, int *, int *);
|
||||
extern int lisp_string_width (Lisp_Object, int, int *, int *);
|
||||
|
||||
extern Lisp_Object Vprintable_chars;
|
||||
|
||||
|
@ -624,7 +624,7 @@ extern Lisp_Object Vchar_direction_table;
|
|||
extern Lisp_Object Vchar_unify_table;
|
||||
extern Lisp_Object Vunicode_category_table;
|
||||
|
||||
extern Lisp_Object string_escape_byte8 P_ ((Lisp_Object));
|
||||
extern Lisp_Object string_escape_byte8 (Lisp_Object);
|
||||
|
||||
/* Return a translation table of id number ID. */
|
||||
#define GET_TRANSLATION_TABLE(id) \
|
||||
|
|
|
@ -534,17 +534,17 @@ extern int charset_ksc5601;
|
|||
|
||||
extern int charset_unibyte;
|
||||
|
||||
extern struct charset *char_charset P_ ((int, Lisp_Object, unsigned *));
|
||||
extern Lisp_Object charset_attributes P_ ((int));
|
||||
extern struct charset *char_charset (int, Lisp_Object, unsigned *);
|
||||
extern Lisp_Object charset_attributes (int);
|
||||
|
||||
extern int maybe_unify_char P_ ((int, Lisp_Object));
|
||||
extern int decode_char P_ ((struct charset *, unsigned));
|
||||
extern unsigned encode_char P_ ((struct charset *, int));
|
||||
extern int string_xstring_p P_ ((Lisp_Object));
|
||||
extern int maybe_unify_char (int, Lisp_Object);
|
||||
extern int decode_char (struct charset *, unsigned);
|
||||
extern unsigned encode_char (struct charset *, int);
|
||||
extern int string_xstring_p (Lisp_Object);
|
||||
|
||||
extern void map_charset_chars P_ ((void (*) (Lisp_Object, Lisp_Object),
|
||||
Lisp_Object, Lisp_Object,
|
||||
struct charset *, unsigned, unsigned));
|
||||
extern void map_charset_chars (void (*) (Lisp_Object, Lisp_Object),
|
||||
Lisp_Object, Lisp_Object,
|
||||
struct charset *, unsigned, unsigned);
|
||||
|
||||
EXFUN (Funify_charset, 3);
|
||||
|
||||
|
|
12
src/cm.h
12
src/cm.h
|
@ -163,12 +163,12 @@ extern int evalcost ();
|
|||
#define emacs_tputs(tty, str, affcnt, putc) (current_tty = (tty), tputs (str, affcnt, putc))
|
||||
|
||||
extern struct tty_display_info *current_tty;
|
||||
extern void cmcheckmagic P_ ((struct tty_display_info *));
|
||||
extern int cmputc P_ ((int));
|
||||
extern void cmcostinit P_ ((struct tty_display_info *));
|
||||
extern void cmgoto P_ ((struct tty_display_info *, int, int));
|
||||
extern void Wcm_clear P_ ((struct tty_display_info *));
|
||||
extern int Wcm_init P_ ((struct tty_display_info *));
|
||||
extern void cmcheckmagic (struct tty_display_info *);
|
||||
extern int cmputc (int);
|
||||
extern void cmcostinit (struct tty_display_info *);
|
||||
extern void cmgoto (struct tty_display_info *, int, int);
|
||||
extern void Wcm_clear (struct tty_display_info *);
|
||||
extern int Wcm_init (struct tty_display_info *);
|
||||
|
||||
/* arch-tag: acc1535a-7136-49d6-b22d-9bc85702251b
|
||||
(do not change this comment) */
|
||||
|
|
66
src/coding.h
66
src/coding.h
|
@ -499,10 +499,10 @@ struct coding_system
|
|||
|
||||
int default_char;
|
||||
|
||||
int (*detector) P_ ((struct coding_system *,
|
||||
struct coding_detection_info *));
|
||||
void (*decoder) P_ ((struct coding_system *));
|
||||
int (*encoder) P_ ((struct coding_system *));
|
||||
int (*detector) (struct coding_system *,
|
||||
struct coding_detection_info *);
|
||||
void (*decoder) (struct coding_system *);
|
||||
int (*encoder) (struct coding_system *);
|
||||
};
|
||||
|
||||
/* Meanings of bits in the member `common_flags' of the structure
|
||||
|
@ -691,33 +691,33 @@ struct coding_system
|
|||
#define ENCODE_UTF_8(str) code_convert_string_norecord (str, Qutf_8, 1)
|
||||
|
||||
/* Extern declarations. */
|
||||
extern Lisp_Object code_conversion_save P_ ((int, int));
|
||||
extern int decoding_buffer_size P_ ((struct coding_system *, int));
|
||||
extern int encoding_buffer_size P_ ((struct coding_system *, int));
|
||||
extern void setup_coding_system P_ ((Lisp_Object, struct coding_system *));
|
||||
extern Lisp_Object coding_charset_list P_ ((struct coding_system *));
|
||||
extern Lisp_Object coding_system_charset_list P_ ((Lisp_Object));
|
||||
extern void detect_coding P_ ((struct coding_system *));
|
||||
extern Lisp_Object code_convert_region P_ ((Lisp_Object, Lisp_Object,
|
||||
Lisp_Object, Lisp_Object,
|
||||
int, int));
|
||||
extern Lisp_Object code_convert_string P_ ((Lisp_Object, Lisp_Object,
|
||||
Lisp_Object, int, int, int));
|
||||
extern Lisp_Object code_convert_string_norecord P_ ((Lisp_Object, Lisp_Object,
|
||||
int));
|
||||
extern Lisp_Object raw_text_coding_system P_ ((Lisp_Object));
|
||||
extern Lisp_Object coding_inherit_eol_type P_ ((Lisp_Object, Lisp_Object));
|
||||
extern Lisp_Object code_conversion_save (int, int);
|
||||
extern int decoding_buffer_size (struct coding_system *, int);
|
||||
extern int encoding_buffer_size (struct coding_system *, int);
|
||||
extern void setup_coding_system (Lisp_Object, struct coding_system *);
|
||||
extern Lisp_Object coding_charset_list (struct coding_system *);
|
||||
extern Lisp_Object coding_system_charset_list (Lisp_Object);
|
||||
extern void detect_coding (struct coding_system *);
|
||||
extern Lisp_Object code_convert_region (Lisp_Object, Lisp_Object,
|
||||
Lisp_Object, Lisp_Object,
|
||||
int, int);
|
||||
extern Lisp_Object code_convert_string (Lisp_Object, Lisp_Object,
|
||||
Lisp_Object, int, int, int);
|
||||
extern Lisp_Object code_convert_string_norecord (Lisp_Object, Lisp_Object,
|
||||
int);
|
||||
extern Lisp_Object raw_text_coding_system (Lisp_Object);
|
||||
extern Lisp_Object coding_inherit_eol_type (Lisp_Object, Lisp_Object);
|
||||
|
||||
extern int decode_coding_gap P_ ((struct coding_system *,
|
||||
EMACS_INT, EMACS_INT));
|
||||
extern int encode_coding_gap P_ ((struct coding_system *,
|
||||
EMACS_INT, EMACS_INT));
|
||||
extern void decode_coding_object P_ ((struct coding_system *,
|
||||
Lisp_Object, EMACS_INT, EMACS_INT,
|
||||
EMACS_INT, EMACS_INT, Lisp_Object));
|
||||
extern void encode_coding_object P_ ((struct coding_system *,
|
||||
Lisp_Object, EMACS_INT, EMACS_INT,
|
||||
EMACS_INT, EMACS_INT, Lisp_Object));
|
||||
extern int decode_coding_gap (struct coding_system *,
|
||||
EMACS_INT, EMACS_INT);
|
||||
extern int encode_coding_gap (struct coding_system *,
|
||||
EMACS_INT, EMACS_INT);
|
||||
extern void decode_coding_object (struct coding_system *,
|
||||
Lisp_Object, EMACS_INT, EMACS_INT,
|
||||
EMACS_INT, EMACS_INT, Lisp_Object);
|
||||
extern void encode_coding_object (struct coding_system *,
|
||||
Lisp_Object, EMACS_INT, EMACS_INT,
|
||||
EMACS_INT, EMACS_INT, Lisp_Object);
|
||||
|
||||
/* Macros for backward compatibility. */
|
||||
|
||||
|
@ -753,7 +753,7 @@ extern void encode_coding_object P_ ((struct coding_system *,
|
|||
} while (0)
|
||||
|
||||
|
||||
extern Lisp_Object preferred_coding_system P_ (());
|
||||
extern Lisp_Object preferred_coding_system ();
|
||||
|
||||
|
||||
extern Lisp_Object Qutf_8, Qutf_8_emacs;
|
||||
|
@ -780,7 +780,7 @@ extern Lisp_Object Qcall_process, Qcall_process_region;
|
|||
extern Lisp_Object Qstart_process, Qopen_network_stream;
|
||||
extern Lisp_Object Qwrite_region;
|
||||
|
||||
extern char *emacs_strerror P_ ((int));
|
||||
extern char *emacs_strerror (int);
|
||||
|
||||
/* Coding-system for reading files and receiving data from process. */
|
||||
extern Lisp_Object Vcoding_system_for_read;
|
||||
|
@ -823,7 +823,7 @@ extern Lisp_Object Vdefault_file_name_coding_system;
|
|||
extern Lisp_Object Qcoding_system_error;
|
||||
|
||||
extern char emacs_mule_bytes[256];
|
||||
extern int emacs_mule_string_char P_ ((unsigned char *));
|
||||
extern int emacs_mule_string_char (unsigned char *);
|
||||
|
||||
#endif /* EMACS_CODING_H */
|
||||
|
||||
|
|
|
@ -212,16 +212,16 @@ extern Lisp_Object Vauto_composition_function;
|
|||
extern Lisp_Object Qauto_composition_function;
|
||||
extern Lisp_Object Vcomposition_function_table;
|
||||
|
||||
extern int get_composition_id P_ ((int, int, int, Lisp_Object, Lisp_Object));
|
||||
extern int find_composition P_ ((int, int, EMACS_INT *, EMACS_INT *, Lisp_Object *,
|
||||
Lisp_Object));
|
||||
extern void update_compositions P_ ((EMACS_INT, EMACS_INT, int));
|
||||
extern void make_composition_value_copy P_ ((Lisp_Object));
|
||||
extern void compose_region P_ ((int, int, Lisp_Object, Lisp_Object,
|
||||
Lisp_Object));
|
||||
extern void syms_of_composite P_ ((void));
|
||||
extern void compose_text P_ ((int, int, Lisp_Object, Lisp_Object,
|
||||
Lisp_Object));
|
||||
extern int get_composition_id (int, int, int, Lisp_Object, Lisp_Object);
|
||||
extern int find_composition (int, int, EMACS_INT *, EMACS_INT *, Lisp_Object *,
|
||||
Lisp_Object);
|
||||
extern void update_compositions (EMACS_INT, EMACS_INT, int);
|
||||
extern void make_composition_value_copy (Lisp_Object);
|
||||
extern void compose_region (int, int, Lisp_Object, Lisp_Object,
|
||||
Lisp_Object);
|
||||
extern void syms_of_composite (void);
|
||||
extern void compose_text (int, int, Lisp_Object, Lisp_Object,
|
||||
Lisp_Object);
|
||||
|
||||
/* Macros for lispy glyph-string. This is completely different from
|
||||
struct glyph_string. */
|
||||
|
@ -303,23 +303,23 @@ struct composition_it;
|
|||
struct face;
|
||||
struct font_metrics;
|
||||
|
||||
extern Lisp_Object composition_gstring_put_cache P_ ((Lisp_Object, int));
|
||||
extern Lisp_Object composition_gstring_from_id P_ ((int));
|
||||
extern int composition_gstring_p P_ ((Lisp_Object));
|
||||
extern int composition_gstring_width P_ ((Lisp_Object, int, int,
|
||||
struct font_metrics *));
|
||||
extern Lisp_Object composition_gstring_put_cache (Lisp_Object, int);
|
||||
extern Lisp_Object composition_gstring_from_id (int);
|
||||
extern int composition_gstring_p (Lisp_Object);
|
||||
extern int composition_gstring_width (Lisp_Object, int, int,
|
||||
struct font_metrics *);
|
||||
|
||||
extern void composition_compute_stop_pos P_ ((struct composition_it *,
|
||||
EMACS_INT, EMACS_INT, EMACS_INT,
|
||||
Lisp_Object));
|
||||
extern int composition_reseat_it P_ ((struct composition_it *,
|
||||
EMACS_INT, EMACS_INT, EMACS_INT,
|
||||
struct window *, struct face *,
|
||||
Lisp_Object));
|
||||
extern int composition_update_it P_ ((struct composition_it *,
|
||||
EMACS_INT, EMACS_INT, Lisp_Object));
|
||||
extern void composition_compute_stop_pos (struct composition_it *,
|
||||
EMACS_INT, EMACS_INT, EMACS_INT,
|
||||
Lisp_Object);
|
||||
extern int composition_reseat_it (struct composition_it *,
|
||||
EMACS_INT, EMACS_INT, EMACS_INT,
|
||||
struct window *, struct face *,
|
||||
Lisp_Object);
|
||||
extern int composition_update_it (struct composition_it *,
|
||||
EMACS_INT, EMACS_INT, Lisp_Object);
|
||||
|
||||
extern int composition_adjust_point P_ ((EMACS_INT, EMACS_INT));
|
||||
extern int composition_adjust_point (EMACS_INT, EMACS_INT);
|
||||
|
||||
EXFUN (Fcompose_region_internal, 4);
|
||||
EXFUN (Fcompose_string_internal, 5);
|
||||
|
|
646
src/dispextern.h
646
src/dispextern.h
|
@ -642,7 +642,7 @@ struct glyph_matrix
|
|||
This aborts if any pointer is found twice. */
|
||||
|
||||
#if GLYPH_DEBUG
|
||||
void check_matrix_pointer_lossage P_ ((struct glyph_matrix *));
|
||||
void check_matrix_pointer_lossage (struct glyph_matrix *);
|
||||
#define CHECK_MATRIX(MATRIX) check_matrix_pointer_lossage ((MATRIX))
|
||||
#else
|
||||
#define CHECK_MATRIX(MATRIX) (void) 0
|
||||
|
@ -914,7 +914,7 @@ struct glyph_row
|
|||
we don't try to access rows that are out of bounds. */
|
||||
|
||||
#if GLYPH_DEBUG
|
||||
struct glyph_row *matrix_row P_ ((struct glyph_matrix *, int));
|
||||
struct glyph_row *matrix_row (struct glyph_matrix *, int);
|
||||
#define MATRIX_ROW(MATRIX, ROW) matrix_row ((MATRIX), (ROW))
|
||||
#else
|
||||
#define MATRIX_ROW(MATRIX, ROW) ((MATRIX)->rows + (ROW))
|
||||
|
@ -2478,7 +2478,7 @@ struct run
|
|||
|
||||
/* Handlers for setting frame parameters. */
|
||||
|
||||
typedef void (*frame_parm_handler) P_ ((struct frame *, Lisp_Object, Lisp_Object));
|
||||
typedef void (*frame_parm_handler) (struct frame *, Lisp_Object, Lisp_Object);
|
||||
|
||||
|
||||
/* Structure holding system-dependent interface functions needed
|
||||
|
@ -2491,110 +2491,110 @@ struct redisplay_interface
|
|||
|
||||
/* Produce glyphs/get display metrics for the display element IT is
|
||||
loaded with. */
|
||||
void (*produce_glyphs) P_ ((struct it *it));
|
||||
void (*produce_glyphs) (struct it *it);
|
||||
|
||||
/* Write or insert LEN glyphs from STRING at the nominal output
|
||||
position. */
|
||||
void (*write_glyphs) P_ ((struct glyph *string, int len));
|
||||
void (*insert_glyphs) P_ ((struct glyph *start, int len));
|
||||
void (*write_glyphs) (struct glyph *string, int len);
|
||||
void (*insert_glyphs) (struct glyph *start, int len);
|
||||
|
||||
/* Clear from nominal output position to X. X < 0 means clear
|
||||
to right end of display. */
|
||||
void (*clear_end_of_line) P_ ((int x));
|
||||
void (*clear_end_of_line) (int x);
|
||||
|
||||
/* Function to call to scroll the display as described by RUN on
|
||||
window W. */
|
||||
void (*scroll_run_hook) P_ ((struct window *w, struct run *run));
|
||||
void (*scroll_run_hook) (struct window *w, struct run *run);
|
||||
|
||||
/* Function to call after a line in a display has been completely
|
||||
updated. Used to draw truncation marks and alike. DESIRED_ROW
|
||||
is the desired row which has been updated. */
|
||||
void (*after_update_window_line_hook) P_ ((struct glyph_row *desired_row));
|
||||
void (*after_update_window_line_hook) (struct glyph_row *desired_row);
|
||||
|
||||
/* Function to call before beginning to update window W in
|
||||
window-based redisplay. */
|
||||
void (*update_window_begin_hook) P_ ((struct window *w));
|
||||
void (*update_window_begin_hook) (struct window *w);
|
||||
|
||||
/* Function to call after window W has been updated in window-based
|
||||
redisplay. CURSOR_ON_P non-zero means switch cursor on.
|
||||
MOUSE_FACE_OVERWRITTEN_P non-zero means that some lines in W
|
||||
that contained glyphs in mouse-face were overwritten, so we
|
||||
have to update the mouse highlight. */
|
||||
void (*update_window_end_hook) P_ ((struct window *w, int cursor_on_p,
|
||||
int mouse_face_overwritten_p));
|
||||
void (*update_window_end_hook) (struct window *w, int cursor_on_p,
|
||||
int mouse_face_overwritten_p);
|
||||
|
||||
/* Move cursor to row/column position VPOS/HPOS, pixel coordinates
|
||||
Y/X. HPOS/VPOS are window-relative row and column numbers and X/Y
|
||||
are window-relative pixel positions. */
|
||||
void (*cursor_to) P_ ((int vpos, int hpos, int y, int x));
|
||||
void (*cursor_to) (int vpos, int hpos, int y, int x);
|
||||
|
||||
/* Flush the display of frame F. For X, this is XFlush. */
|
||||
void (*flush_display) P_ ((struct frame *f));
|
||||
void (*flush_display) (struct frame *f);
|
||||
|
||||
/* Flush the display of frame F if non-NULL. This is called
|
||||
during redisplay, and should be NULL on systems which flushes
|
||||
automatically before reading input. */
|
||||
void (*flush_display_optional) P_ ((struct frame *f));
|
||||
void (*flush_display_optional) (struct frame *f);
|
||||
|
||||
/* Clear the mouse hightlight in window W, if there is any. */
|
||||
void (*clear_window_mouse_face) P_ ((struct window *w));
|
||||
void (*clear_window_mouse_face) (struct window *w);
|
||||
|
||||
/* Set *LEFT and *RIGHT to the left and right overhang of GLYPH on
|
||||
frame F. */
|
||||
void (*get_glyph_overhangs) P_ ((struct glyph *glyph, struct frame *f,
|
||||
int *left, int *right));
|
||||
void (*get_glyph_overhangs) (struct glyph *glyph, struct frame *f,
|
||||
int *left, int *right);
|
||||
|
||||
/* Fix the display of AREA of ROW in window W for overlapping rows.
|
||||
This function is called from redraw_overlapping_rows after
|
||||
desired rows have been made current. */
|
||||
void (*fix_overlapping_area) P_ ((struct window *w, struct glyph_row *row,
|
||||
enum glyph_row_area area, int));
|
||||
void (*fix_overlapping_area) (struct window *w, struct glyph_row *row,
|
||||
enum glyph_row_area area, int);
|
||||
|
||||
#ifdef HAVE_WINDOW_SYSTEM
|
||||
|
||||
/* Draw a fringe bitmap in window W of row ROW using parameters P. */
|
||||
void (*draw_fringe_bitmap) P_ ((struct window *w, struct glyph_row *row,
|
||||
struct draw_fringe_bitmap_params *p));
|
||||
void (*draw_fringe_bitmap) (struct window *w, struct glyph_row *row,
|
||||
struct draw_fringe_bitmap_params *p);
|
||||
|
||||
/* Define and destroy fringe bitmap no. WHICH. */
|
||||
void (*define_fringe_bitmap) P_ ((int which, unsigned short *bits,
|
||||
int h, int wd));
|
||||
void (*destroy_fringe_bitmap) P_ ((int which));
|
||||
void (*define_fringe_bitmap) (int which, unsigned short *bits,
|
||||
int h, int wd);
|
||||
void (*destroy_fringe_bitmap) (int which);
|
||||
|
||||
/* Compute left and right overhang of glyph string S.
|
||||
A NULL pointer if platform does not support this. */
|
||||
void (*compute_glyph_string_overhangs) P_ ((struct glyph_string *s));
|
||||
void (*compute_glyph_string_overhangs) (struct glyph_string *s);
|
||||
|
||||
/* Draw a glyph string S. */
|
||||
void (*draw_glyph_string) P_ ((struct glyph_string *s));
|
||||
void (*draw_glyph_string) (struct glyph_string *s);
|
||||
|
||||
/* Define cursor CURSOR on frame F. */
|
||||
void (*define_frame_cursor) P_ ((struct frame *f, Cursor cursor));
|
||||
void (*define_frame_cursor) (struct frame *f, Cursor cursor);
|
||||
|
||||
/* Clear the area at (X,Y,WIDTH,HEIGHT) of frame F. */
|
||||
void (*clear_frame_area) P_ ((struct frame *f, int x, int y,
|
||||
int width, int height));
|
||||
void (*clear_frame_area) (struct frame *f, int x, int y,
|
||||
int width, int height);
|
||||
|
||||
/* Draw specified cursor CURSOR_TYPE of width CURSOR_WIDTH
|
||||
at row GLYPH_ROW on window W if ON_P is 1. If ON_P is
|
||||
0, don't draw cursor. If ACTIVE_P is 1, system caret
|
||||
should track this cursor (when applicable). */
|
||||
void (*draw_window_cursor) P_ ((struct window *w,
|
||||
struct glyph_row *glyph_row,
|
||||
int x, int y,
|
||||
int cursor_type, int cursor_width,
|
||||
int on_p, int active_p));
|
||||
void (*draw_window_cursor) (struct window *w,
|
||||
struct glyph_row *glyph_row,
|
||||
int x, int y,
|
||||
int cursor_type, int cursor_width,
|
||||
int on_p, int active_p);
|
||||
|
||||
/* Draw vertical border for window W from (X,Y0) to (X,Y1). */
|
||||
void (*draw_vertical_window_border) P_ ((struct window *w,
|
||||
int x, int y0, int y1));
|
||||
void (*draw_vertical_window_border) (struct window *w,
|
||||
int x, int y0, int y1);
|
||||
|
||||
/* Shift display of frame F to make room for inserted glyphs.
|
||||
The area at pixel (X,Y) of width WIDTH and height HEIGHT is
|
||||
shifted right by SHIFT_BY pixels. */
|
||||
void (*shift_glyphs_for_insert) P_ ((struct frame *f,
|
||||
int x, int y, int width,
|
||||
int height, int shift_by));
|
||||
void (*shift_glyphs_for_insert) (struct frame *f,
|
||||
int x, int y, int width,
|
||||
int height, int shift_by);
|
||||
|
||||
#endif /* HAVE_WINDOW_SYSTEM */
|
||||
};
|
||||
|
@ -2621,14 +2621,14 @@ struct image_type
|
|||
|
||||
/* Check that SPEC is a valid image specification for the given
|
||||
image type. Value is non-zero if SPEC is valid. */
|
||||
int (* valid_p) P_ ((Lisp_Object spec));
|
||||
int (* valid_p) (Lisp_Object spec);
|
||||
|
||||
/* Load IMG which is used on frame F from information contained in
|
||||
IMG->spec. Value is non-zero if successful. */
|
||||
int (* load) P_ ((struct frame *f, struct image *img));
|
||||
int (* load) (struct frame *f, struct image *img);
|
||||
|
||||
/* Free resources of image IMG which is used on frame F. */
|
||||
void (* free) P_ ((struct frame *f, struct image *img));
|
||||
void (* free) (struct frame *f, struct image *img);
|
||||
|
||||
/* Next in list of all supported image types. */
|
||||
struct image_type *next;
|
||||
|
@ -2885,65 +2885,65 @@ extern EMACS_INT tool_bar_button_relief;
|
|||
|
||||
/* Defined in bidi.c */
|
||||
|
||||
extern void bidi_init_it P_ ((EMACS_INT, EMACS_INT, struct bidi_it *));
|
||||
extern void bidi_move_to_visually_next P_ ((struct bidi_it *));
|
||||
extern void bidi_paragraph_init P_ ((bidi_dir_t, struct bidi_it *));
|
||||
extern int bidi_mirror_char P_ ((int));
|
||||
extern void bidi_init_it (EMACS_INT, EMACS_INT, struct bidi_it *);
|
||||
extern void bidi_move_to_visually_next (struct bidi_it *);
|
||||
extern void bidi_paragraph_init (bidi_dir_t, struct bidi_it *);
|
||||
extern int bidi_mirror_char (int);
|
||||
|
||||
/* Defined in xdisp.c */
|
||||
|
||||
struct glyph_row *row_containing_pos P_ ((struct window *, int,
|
||||
struct glyph_row *,
|
||||
struct glyph_row *, int));
|
||||
EMACS_INT string_buffer_position P_ ((struct window *, Lisp_Object,
|
||||
EMACS_INT));
|
||||
int line_bottom_y P_ ((struct it *));
|
||||
int display_prop_intangible_p P_ ((Lisp_Object));
|
||||
void resize_echo_area_exactly P_ ((void));
|
||||
int resize_mini_window P_ ((struct window *, int));
|
||||
int try_window P_ ((Lisp_Object, struct text_pos, int));
|
||||
void window_box P_ ((struct window *, int, int *, int *, int *, int *));
|
||||
int window_box_height P_ ((struct window *));
|
||||
int window_text_bottom_y P_ ((struct window *));
|
||||
int window_box_width P_ ((struct window *, int));
|
||||
int window_box_left P_ ((struct window *, int));
|
||||
int window_box_left_offset P_ ((struct window *, int));
|
||||
int window_box_right P_ ((struct window *, int));
|
||||
int window_box_right_offset P_ ((struct window *, int));
|
||||
void window_box_edges P_ ((struct window *, int, int *, int *, int *, int *));
|
||||
int estimate_mode_line_height P_ ((struct frame *, enum face_id));
|
||||
void pixel_to_glyph_coords P_ ((struct frame *, int, int, int *, int *,
|
||||
NativeRectangle *, int));
|
||||
int glyph_to_pixel_coords P_ ((struct window *, int, int, int *, int *));
|
||||
void remember_mouse_glyph P_ ((struct frame *, int, int, NativeRectangle *));
|
||||
struct glyph_row *row_containing_pos (struct window *, int,
|
||||
struct glyph_row *,
|
||||
struct glyph_row *, int);
|
||||
EMACS_INT string_buffer_position (struct window *, Lisp_Object,
|
||||
EMACS_INT);
|
||||
int line_bottom_y (struct it *);
|
||||
int display_prop_intangible_p (Lisp_Object);
|
||||
void resize_echo_area_exactly (void);
|
||||
int resize_mini_window (struct window *, int);
|
||||
int try_window (Lisp_Object, struct text_pos, int);
|
||||
void window_box (struct window *, int, int *, int *, int *, int *);
|
||||
int window_box_height (struct window *);
|
||||
int window_text_bottom_y (struct window *);
|
||||
int window_box_width (struct window *, int);
|
||||
int window_box_left (struct window *, int);
|
||||
int window_box_left_offset (struct window *, int);
|
||||
int window_box_right (struct window *, int);
|
||||
int window_box_right_offset (struct window *, int);
|
||||
void window_box_edges (struct window *, int, int *, int *, int *, int *);
|
||||
int estimate_mode_line_height (struct frame *, enum face_id);
|
||||
void pixel_to_glyph_coords (struct frame *, int, int, int *, int *,
|
||||
NativeRectangle *, int);
|
||||
int glyph_to_pixel_coords (struct window *, int, int, int *, int *);
|
||||
void remember_mouse_glyph (struct frame *, int, int, NativeRectangle *);
|
||||
|
||||
void mark_window_display_accurate P_ ((Lisp_Object, int));
|
||||
void redisplay_preserve_echo_area P_ ((int));
|
||||
int set_cursor_from_row P_ ((struct window *, struct glyph_row *,
|
||||
struct glyph_matrix *, int, int, int, int));
|
||||
void init_iterator P_ ((struct it *, struct window *, EMACS_INT,
|
||||
EMACS_INT, struct glyph_row *, enum face_id));
|
||||
void init_iterator_to_row_start P_ ((struct it *, struct window *,
|
||||
struct glyph_row *));
|
||||
int get_next_display_element P_ ((struct it *));
|
||||
void set_iterator_to_next P_ ((struct it *, int));
|
||||
void start_display P_ ((struct it *, struct window *, struct text_pos));
|
||||
void move_it_to P_ ((struct it *, int, int, int, int, int));
|
||||
void move_it_vertically P_ ((struct it *, int));
|
||||
void move_it_vertically_backward P_ ((struct it *, int));
|
||||
void move_it_by_lines P_ ((struct it *, int, int));
|
||||
void move_it_past_eol P_ ((struct it *));
|
||||
void mark_window_display_accurate (Lisp_Object, int);
|
||||
void redisplay_preserve_echo_area (int);
|
||||
int set_cursor_from_row (struct window *, struct glyph_row *,
|
||||
struct glyph_matrix *, int, int, int, int);
|
||||
void init_iterator (struct it *, struct window *, EMACS_INT,
|
||||
EMACS_INT, struct glyph_row *, enum face_id);
|
||||
void init_iterator_to_row_start (struct it *, struct window *,
|
||||
struct glyph_row *);
|
||||
int get_next_display_element (struct it *);
|
||||
void set_iterator_to_next (struct it *, int);
|
||||
void start_display (struct it *, struct window *, struct text_pos);
|
||||
void move_it_to (struct it *, int, int, int, int, int);
|
||||
void move_it_vertically (struct it *, int);
|
||||
void move_it_vertically_backward (struct it *, int);
|
||||
void move_it_by_lines (struct it *, int, int);
|
||||
void move_it_past_eol (struct it *);
|
||||
void move_it_in_display_line (struct it *it,
|
||||
EMACS_INT to_charpos, int to_x,
|
||||
enum move_operation_enum op);
|
||||
int in_display_vector_p P_ ((struct it *));
|
||||
int frame_mode_line_height P_ ((struct frame *));
|
||||
void highlight_trailing_whitespace P_ ((struct frame *, struct glyph_row *));
|
||||
int in_display_vector_p (struct it *);
|
||||
int frame_mode_line_height (struct frame *);
|
||||
void highlight_trailing_whitespace (struct frame *, struct glyph_row *);
|
||||
extern Lisp_Object Qtool_bar;
|
||||
extern Lisp_Object Vshow_trailing_whitespace;
|
||||
extern int mode_line_in_non_selected_windows;
|
||||
extern int redisplaying_p;
|
||||
extern void add_to_log P_ ((char *, Lisp_Object, Lisp_Object));
|
||||
extern void add_to_log (char *, Lisp_Object, Lisp_Object);
|
||||
extern int help_echo_showing_p;
|
||||
extern int current_mode_line_height, current_header_line_height;
|
||||
extern Lisp_Object help_echo_string, help_echo_window;
|
||||
|
@ -2955,67 +2955,67 @@ extern Lisp_Object Vmouse_autoselect_window;
|
|||
extern int unibyte_display_via_language_environment;
|
||||
extern EMACS_INT underline_minimum_offset;
|
||||
|
||||
extern void reseat_at_previous_visible_line_start P_ ((struct it *));
|
||||
extern void reseat_at_previous_visible_line_start (struct it *);
|
||||
|
||||
extern int calc_pixel_width_or_height P_ ((double *, struct it *, Lisp_Object,
|
||||
struct font *, int, int *));
|
||||
extern int calc_pixel_width_or_height (double *, struct it *, Lisp_Object,
|
||||
struct font *, int, int *);
|
||||
|
||||
#ifdef HAVE_WINDOW_SYSTEM
|
||||
|
||||
#if GLYPH_DEBUG
|
||||
extern void dump_glyph_string P_ ((struct glyph_string *));
|
||||
extern void dump_glyph_string (struct glyph_string *);
|
||||
#endif
|
||||
|
||||
extern void x_get_glyph_overhangs P_ ((struct glyph *, struct frame *,
|
||||
int *, int *));
|
||||
extern void x_produce_glyphs P_ ((struct it *));
|
||||
extern void x_get_glyph_overhangs (struct glyph *, struct frame *,
|
||||
int *, int *);
|
||||
extern void x_produce_glyphs (struct it *);
|
||||
|
||||
extern void x_write_glyphs P_ ((struct glyph *, int));
|
||||
extern void x_insert_glyphs P_ ((struct glyph *, int len));
|
||||
extern void x_clear_end_of_line P_ ((int));
|
||||
extern void x_write_glyphs (struct glyph *, int);
|
||||
extern void x_insert_glyphs (struct glyph *, int len);
|
||||
extern void x_clear_end_of_line (int);
|
||||
|
||||
extern int x_stretch_cursor_p;
|
||||
extern struct cursor_pos output_cursor;
|
||||
|
||||
extern void x_fix_overlapping_area P_ ((struct window *, struct glyph_row *,
|
||||
enum glyph_row_area, int));
|
||||
extern void draw_phys_cursor_glyph P_ ((struct window *,
|
||||
struct glyph_row *,
|
||||
enum draw_glyphs_face));
|
||||
extern void get_phys_cursor_geometry P_ ((struct window *, struct glyph_row *,
|
||||
struct glyph *, int *, int *, int *));
|
||||
extern void erase_phys_cursor P_ ((struct window *));
|
||||
extern void display_and_set_cursor P_ ((struct window *,
|
||||
int, int, int, int, int));
|
||||
extern void x_fix_overlapping_area (struct window *, struct glyph_row *,
|
||||
enum glyph_row_area, int);
|
||||
extern void draw_phys_cursor_glyph (struct window *,
|
||||
struct glyph_row *,
|
||||
enum draw_glyphs_face);
|
||||
extern void get_phys_cursor_geometry (struct window *, struct glyph_row *,
|
||||
struct glyph *, int *, int *, int *);
|
||||
extern void erase_phys_cursor (struct window *);
|
||||
extern void display_and_set_cursor (struct window *,
|
||||
int, int, int, int, int);
|
||||
|
||||
extern void set_output_cursor P_ ((struct cursor_pos *));
|
||||
extern void x_cursor_to P_ ((int, int, int, int));
|
||||
extern void set_output_cursor (struct cursor_pos *);
|
||||
extern void x_cursor_to (int, int, int, int);
|
||||
|
||||
extern void x_update_cursor P_ ((struct frame *, int));
|
||||
extern void x_clear_cursor P_ ((struct window *));
|
||||
extern void x_draw_vertical_border P_ ((struct window *w));
|
||||
extern void x_update_cursor (struct frame *, int);
|
||||
extern void x_clear_cursor (struct window *);
|
||||
extern void x_draw_vertical_border (struct window *w);
|
||||
|
||||
extern void frame_to_window_pixel_xy P_ ((struct window *, int *, int *));
|
||||
extern int get_glyph_string_clip_rects P_ ((struct glyph_string *,
|
||||
NativeRectangle *, int));
|
||||
extern void get_glyph_string_clip_rect P_ ((struct glyph_string *,
|
||||
NativeRectangle *nr));
|
||||
extern Lisp_Object find_hot_spot P_ ((Lisp_Object, int, int));
|
||||
extern void note_mouse_highlight P_ ((struct frame *, int, int));
|
||||
extern void x_clear_window_mouse_face P_ ((struct window *));
|
||||
extern void cancel_mouse_face P_ ((struct frame *));
|
||||
extern void frame_to_window_pixel_xy (struct window *, int *, int *);
|
||||
extern int get_glyph_string_clip_rects (struct glyph_string *,
|
||||
NativeRectangle *, int);
|
||||
extern void get_glyph_string_clip_rect (struct glyph_string *,
|
||||
NativeRectangle *nr);
|
||||
extern Lisp_Object find_hot_spot (Lisp_Object, int, int);
|
||||
extern void note_mouse_highlight (struct frame *, int, int);
|
||||
extern void x_clear_window_mouse_face (struct window *);
|
||||
extern void cancel_mouse_face (struct frame *);
|
||||
|
||||
extern void handle_tool_bar_click P_ ((struct frame *,
|
||||
int, int, int, unsigned int));
|
||||
extern void handle_tool_bar_click (struct frame *,
|
||||
int, int, int, unsigned int);
|
||||
|
||||
/* msdos.c defines its own versions of these functions. */
|
||||
extern int clear_mouse_face P_ ((Display_Info *));
|
||||
extern void show_mouse_face P_ ((Display_Info *, enum draw_glyphs_face));
|
||||
extern int cursor_in_mouse_face_p P_ ((struct window *w));
|
||||
extern int clear_mouse_face (Display_Info *);
|
||||
extern void show_mouse_face (Display_Info *, enum draw_glyphs_face);
|
||||
extern int cursor_in_mouse_face_p (struct window *w);
|
||||
|
||||
extern void expose_frame P_ ((struct frame *, int, int, int, int));
|
||||
extern int x_intersect_rectangles P_ ((XRectangle *, XRectangle *,
|
||||
XRectangle *));
|
||||
extern void expose_frame (struct frame *, int, int, int, int);
|
||||
extern int x_intersect_rectangles (XRectangle *, XRectangle *,
|
||||
XRectangle *);
|
||||
#endif
|
||||
|
||||
/* Flags passed to try_window. */
|
||||
|
@ -3025,107 +3025,107 @@ extern int x_intersect_rectangles P_ ((XRectangle *, XRectangle *,
|
|||
/* Defined in fringe.c */
|
||||
|
||||
int lookup_fringe_bitmap (Lisp_Object);
|
||||
void draw_fringe_bitmap P_ ((struct window *, struct glyph_row *, int));
|
||||
void draw_row_fringe_bitmaps P_ ((struct window *, struct glyph_row *));
|
||||
int draw_window_fringes P_ ((struct window *, int));
|
||||
int update_window_fringes P_ ((struct window *, int));
|
||||
void compute_fringe_widths P_ ((struct frame *, int));
|
||||
void draw_fringe_bitmap (struct window *, struct glyph_row *, int);
|
||||
void draw_row_fringe_bitmaps (struct window *, struct glyph_row *);
|
||||
int draw_window_fringes (struct window *, int);
|
||||
int update_window_fringes (struct window *, int);
|
||||
void compute_fringe_widths (struct frame *, int);
|
||||
|
||||
#ifdef WINDOWSNT
|
||||
void w32_init_fringe P_ ((struct redisplay_interface *));
|
||||
void w32_reset_fringes P_ ((void));
|
||||
void w32_init_fringe (struct redisplay_interface *);
|
||||
void w32_reset_fringes (void);
|
||||
#endif
|
||||
/* Defined in image.c */
|
||||
|
||||
#ifdef HAVE_WINDOW_SYSTEM
|
||||
|
||||
extern int x_bitmap_height P_ ((struct frame *, int));
|
||||
extern int x_bitmap_width P_ ((struct frame *, int));
|
||||
extern int x_bitmap_pixmap P_ ((struct frame *, int));
|
||||
extern void x_reference_bitmap P_ ((struct frame *, int));
|
||||
extern int x_create_bitmap_from_data P_ ((struct frame *, char *,
|
||||
unsigned int, unsigned int));
|
||||
extern int x_create_bitmap_from_file P_ ((struct frame *, Lisp_Object));
|
||||
extern int x_bitmap_height (struct frame *, int);
|
||||
extern int x_bitmap_width (struct frame *, int);
|
||||
extern int x_bitmap_pixmap (struct frame *, int);
|
||||
extern void x_reference_bitmap (struct frame *, int);
|
||||
extern int x_create_bitmap_from_data (struct frame *, char *,
|
||||
unsigned int, unsigned int);
|
||||
extern int x_create_bitmap_from_file (struct frame *, Lisp_Object);
|
||||
#if defined (HAVE_XPM) && defined (HAVE_X_WINDOWS)
|
||||
extern int x_create_bitmap_from_xpm_data P_ ((struct frame *f, char **bits));
|
||||
extern int x_create_bitmap_from_xpm_data (struct frame *f, char **bits);
|
||||
#endif
|
||||
#ifndef x_destroy_bitmap
|
||||
extern void x_destroy_bitmap P_ ((struct frame *, int));
|
||||
extern void x_destroy_bitmap (struct frame *, int);
|
||||
#endif
|
||||
extern void x_destroy_all_bitmaps P_ ((Display_Info *));
|
||||
extern int x_create_bitmap_mask P_ ((struct frame * , int));
|
||||
extern Lisp_Object x_find_image_file P_ ((Lisp_Object));
|
||||
extern void x_destroy_all_bitmaps (Display_Info *);
|
||||
extern int x_create_bitmap_mask (struct frame * , int);
|
||||
extern Lisp_Object x_find_image_file (Lisp_Object);
|
||||
|
||||
void x_kill_gs_process P_ ((Pixmap, struct frame *));
|
||||
struct image_cache *make_image_cache P_ ((void));
|
||||
void free_image_cache P_ ((struct frame *));
|
||||
void clear_image_caches P_ ((Lisp_Object));
|
||||
void mark_image_cache P_ ((struct image_cache *));
|
||||
int valid_image_p P_ ((Lisp_Object));
|
||||
void prepare_image_for_display P_ ((struct frame *, struct image *));
|
||||
int lookup_image P_ ((struct frame *, Lisp_Object));
|
||||
void x_kill_gs_process (Pixmap, struct frame *);
|
||||
struct image_cache *make_image_cache (void);
|
||||
void free_image_cache (struct frame *);
|
||||
void clear_image_caches (Lisp_Object);
|
||||
void mark_image_cache (struct image_cache *);
|
||||
int valid_image_p (Lisp_Object);
|
||||
void prepare_image_for_display (struct frame *, struct image *);
|
||||
int lookup_image (struct frame *, Lisp_Object);
|
||||
|
||||
unsigned long image_background P_ ((struct image *, struct frame *,
|
||||
XImagePtr_or_DC ximg));
|
||||
int image_background_transparent P_ ((struct image *, struct frame *,
|
||||
XImagePtr_or_DC mask));
|
||||
unsigned long image_background (struct image *, struct frame *,
|
||||
XImagePtr_or_DC ximg);
|
||||
int image_background_transparent (struct image *, struct frame *,
|
||||
XImagePtr_or_DC mask);
|
||||
|
||||
int image_ascent P_ ((struct image *, struct face *, struct glyph_slice *));
|
||||
int image_ascent (struct image *, struct face *, struct glyph_slice *);
|
||||
|
||||
#endif
|
||||
|
||||
/* Defined in sysdep.c */
|
||||
|
||||
void get_tty_size P_ ((int, int *, int *));
|
||||
void request_sigio P_ ((void));
|
||||
void unrequest_sigio P_ ((void));
|
||||
int tabs_safe_p P_ ((int));
|
||||
void init_baud_rate P_ ((int));
|
||||
void init_sigio P_ ((int));
|
||||
void get_tty_size (int, int *, int *);
|
||||
void request_sigio (void);
|
||||
void unrequest_sigio (void);
|
||||
int tabs_safe_p (int);
|
||||
void init_baud_rate (int);
|
||||
void init_sigio (int);
|
||||
|
||||
/* Defined in xfaces.c */
|
||||
|
||||
#ifdef HAVE_X_WINDOWS
|
||||
void x_free_colors P_ ((struct frame *, unsigned long *, int));
|
||||
void x_free_colors (struct frame *, unsigned long *, int);
|
||||
#endif
|
||||
|
||||
void update_face_from_frame_parameter P_ ((struct frame *, Lisp_Object,
|
||||
Lisp_Object));
|
||||
Lisp_Object tty_color_name P_ ((struct frame *, int));
|
||||
void clear_face_cache P_ ((int));
|
||||
unsigned long load_color P_ ((struct frame *, struct face *, Lisp_Object,
|
||||
enum lface_attribute_index));
|
||||
void unload_color P_ ((struct frame *, unsigned long));
|
||||
char *choose_face_font P_ ((struct frame *, Lisp_Object *, Lisp_Object,
|
||||
int *));
|
||||
int ascii_face_of_lisp_face P_ ((struct frame *, int));
|
||||
void prepare_face_for_display P_ ((struct frame *, struct face *));
|
||||
int xstrcasecmp P_ ((const unsigned char *, const unsigned char *));
|
||||
int lookup_face P_ ((struct frame *, Lisp_Object *));
|
||||
int lookup_named_face P_ ((struct frame *, Lisp_Object, int));
|
||||
int lookup_basic_face P_ ((struct frame *, int));
|
||||
int smaller_face P_ ((struct frame *, int, int));
|
||||
int face_with_height P_ ((struct frame *, int, int));
|
||||
int lookup_derived_face P_ ((struct frame *, Lisp_Object, int, int));
|
||||
void init_frame_faces P_ ((struct frame *));
|
||||
void free_frame_faces P_ ((struct frame *));
|
||||
void recompute_basic_faces P_ ((struct frame *));
|
||||
int face_at_buffer_position P_ ((struct window *w, EMACS_INT pos,
|
||||
EMACS_INT region_beg, EMACS_INT region_end,
|
||||
EMACS_INT *endptr, EMACS_INT limit,
|
||||
int mouse, int base_face_id));
|
||||
int face_for_overlay_string P_ ((struct window *w, EMACS_INT pos,
|
||||
EMACS_INT region_beg, EMACS_INT region_end,
|
||||
EMACS_INT *endptr, EMACS_INT limit,
|
||||
int mouse, Lisp_Object overlay));
|
||||
int face_at_string_position P_ ((struct window *w, Lisp_Object string,
|
||||
EMACS_INT pos, EMACS_INT bufpos,
|
||||
EMACS_INT region_beg, EMACS_INT region_end,
|
||||
EMACS_INT *endptr, enum face_id, int mouse));
|
||||
int merge_faces P_ ((struct frame *, Lisp_Object, int, int));
|
||||
int compute_char_face P_ ((struct frame *, int, Lisp_Object));
|
||||
void free_all_realized_faces P_ ((Lisp_Object));
|
||||
void free_realized_face P_ ((struct frame *, struct face *));
|
||||
void update_face_from_frame_parameter (struct frame *, Lisp_Object,
|
||||
Lisp_Object);
|
||||
Lisp_Object tty_color_name (struct frame *, int);
|
||||
void clear_face_cache (int);
|
||||
unsigned long load_color (struct frame *, struct face *, Lisp_Object,
|
||||
enum lface_attribute_index);
|
||||
void unload_color (struct frame *, unsigned long);
|
||||
char *choose_face_font (struct frame *, Lisp_Object *, Lisp_Object,
|
||||
int *);
|
||||
int ascii_face_of_lisp_face (struct frame *, int);
|
||||
void prepare_face_for_display (struct frame *, struct face *);
|
||||
int xstrcasecmp (const unsigned char *, const unsigned char *);
|
||||
int lookup_face (struct frame *, Lisp_Object *);
|
||||
int lookup_named_face (struct frame *, Lisp_Object, int);
|
||||
int lookup_basic_face (struct frame *, int);
|
||||
int smaller_face (struct frame *, int, int);
|
||||
int face_with_height (struct frame *, int, int);
|
||||
int lookup_derived_face (struct frame *, Lisp_Object, int, int);
|
||||
void init_frame_faces (struct frame *);
|
||||
void free_frame_faces (struct frame *);
|
||||
void recompute_basic_faces (struct frame *);
|
||||
int face_at_buffer_position (struct window *w, EMACS_INT pos,
|
||||
EMACS_INT region_beg, EMACS_INT region_end,
|
||||
EMACS_INT *endptr, EMACS_INT limit,
|
||||
int mouse, int base_face_id);
|
||||
int face_for_overlay_string (struct window *w, EMACS_INT pos,
|
||||
EMACS_INT region_beg, EMACS_INT region_end,
|
||||
EMACS_INT *endptr, EMACS_INT limit,
|
||||
int mouse, Lisp_Object overlay);
|
||||
int face_at_string_position (struct window *w, Lisp_Object string,
|
||||
EMACS_INT pos, EMACS_INT bufpos,
|
||||
EMACS_INT region_beg, EMACS_INT region_end,
|
||||
EMACS_INT *endptr, enum face_id, int mouse);
|
||||
int merge_faces (struct frame *, Lisp_Object, int, int);
|
||||
int compute_char_face (struct frame *, int, Lisp_Object);
|
||||
void free_all_realized_faces (Lisp_Object);
|
||||
void free_realized_face (struct frame *, struct face *);
|
||||
extern Lisp_Object Qforeground_color, Qbackground_color;
|
||||
extern Lisp_Object Qframe_set_background_mode;
|
||||
extern char unspecified_fg[], unspecified_bg[];
|
||||
|
@ -3135,24 +3135,24 @@ extern Lisp_Object Vface_remapping_alist;
|
|||
/* Defined in xfns.c */
|
||||
|
||||
#ifdef HAVE_X_WINDOWS
|
||||
void gamma_correct P_ ((struct frame *, XColor *));
|
||||
void gamma_correct (struct frame *, XColor *);
|
||||
#endif
|
||||
#ifdef WINDOWSNT
|
||||
void gamma_correct P_ ((struct frame *, COLORREF *));
|
||||
void gamma_correct (struct frame *, COLORREF *);
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_WINDOW_SYSTEM
|
||||
|
||||
int x_screen_planes P_ ((struct frame *));
|
||||
void x_implicitly_set_name P_ ((struct frame *, Lisp_Object, Lisp_Object));
|
||||
int x_screen_planes (struct frame *);
|
||||
void x_implicitly_set_name (struct frame *, Lisp_Object, Lisp_Object);
|
||||
|
||||
extern Lisp_Object tip_frame;
|
||||
extern Window tip_window;
|
||||
EXFUN (Fx_show_tip, 6);
|
||||
EXFUN (Fx_hide_tip, 0);
|
||||
extern void start_hourglass P_ ((void));
|
||||
extern void cancel_hourglass P_ ((void));
|
||||
extern int hourglass_started P_ ((void));
|
||||
extern void start_hourglass (void);
|
||||
extern void cancel_hourglass (void);
|
||||
extern int hourglass_started (void);
|
||||
extern int display_hourglass_p;
|
||||
extern int hourglass_shown_p;
|
||||
struct atimer; /* Defined in atimer.h. */
|
||||
|
@ -3161,8 +3161,8 @@ struct atimer; /* Defined in atimer.h. */
|
|||
extern struct atimer *hourglass_atimer;
|
||||
|
||||
/* Each GUI implements these. FIXME: move into RIF. */
|
||||
extern void show_hourglass P_ ((struct atimer *));
|
||||
extern void hide_hourglass P_ ((void));
|
||||
extern void show_hourglass (struct atimer *);
|
||||
extern void hide_hourglass (void);
|
||||
|
||||
/* Returns the background color of IMG, calculating one heuristically if
|
||||
necessary. If non-zero, XIMG is an existing XImage object to use for
|
||||
|
@ -3187,116 +3187,116 @@ extern void hide_hourglass P_ ((void));
|
|||
|
||||
/* Defined in xmenu.c */
|
||||
|
||||
int popup_activated P_ ((void));
|
||||
int popup_activated (void);
|
||||
|
||||
/* Defined in dispnew.c */
|
||||
|
||||
extern int inverse_video;
|
||||
extern int required_matrix_width P_ ((struct window *));
|
||||
extern int required_matrix_height P_ ((struct window *));
|
||||
extern Lisp_Object buffer_posn_from_coords P_ ((struct window *,
|
||||
int *, int *,
|
||||
struct display_pos *,
|
||||
Lisp_Object *,
|
||||
int *, int *, int *, int *));
|
||||
extern Lisp_Object mode_line_string P_ ((struct window *, enum window_part,
|
||||
int *, int *, int *,
|
||||
Lisp_Object *,
|
||||
int *, int *, int *, int *));
|
||||
extern Lisp_Object marginal_area_string P_ ((struct window *, enum window_part,
|
||||
int *, int *, int *,
|
||||
Lisp_Object *,
|
||||
int *, int *, int *, int *));
|
||||
extern void redraw_frame P_ ((struct frame *));
|
||||
extern void redraw_garbaged_frames P_ ((void));
|
||||
extern void cancel_line P_ ((int, struct frame *));
|
||||
extern void init_desired_glyphs P_ ((struct frame *));
|
||||
extern int scroll_frame_lines P_ ((struct frame *, int, int, int, int));
|
||||
extern int update_frame P_ ((struct frame *, int, int));
|
||||
extern int scrolling P_ ((struct frame *));
|
||||
extern void bitch_at_user P_ ((void));
|
||||
void adjust_glyphs P_ ((struct frame *));
|
||||
void free_glyphs P_ ((struct frame *));
|
||||
void free_window_matrices P_ ((struct window *));
|
||||
void check_glyph_memory P_ ((void));
|
||||
void mirrored_line_dance P_ ((struct glyph_matrix *, int, int, int *, char *));
|
||||
void clear_glyph_matrix P_ ((struct glyph_matrix *));
|
||||
void clear_current_matrices P_ ((struct frame *f));
|
||||
void clear_desired_matrices P_ ((struct frame *));
|
||||
void shift_glyph_matrix P_ ((struct window *, struct glyph_matrix *,
|
||||
int, int, int));
|
||||
void rotate_matrix P_ ((struct glyph_matrix *, int, int, int));
|
||||
void increment_matrix_positions P_ ((struct glyph_matrix *,
|
||||
int, int, int, int));
|
||||
void blank_row P_ ((struct window *, struct glyph_row *, int));
|
||||
void increment_row_positions P_ ((struct glyph_row *, int, int));
|
||||
void enable_glyph_matrix_rows P_ ((struct glyph_matrix *, int, int, int));
|
||||
void clear_glyph_row P_ ((struct glyph_row *));
|
||||
void prepare_desired_row P_ ((struct glyph_row *));
|
||||
int line_hash_code P_ ((struct glyph_row *));
|
||||
void set_window_update_flags P_ ((struct window *, int));
|
||||
void redraw_frame P_ ((struct frame *));
|
||||
void redraw_garbaged_frames P_ ((void));
|
||||
int scroll_cost P_ ((struct frame *, int, int, int));
|
||||
int update_frame P_ ((struct frame *, int, int));
|
||||
void update_single_window P_ ((struct window *, int));
|
||||
int scrolling P_ ((struct frame *));
|
||||
void do_pending_window_change P_ ((int));
|
||||
void change_frame_size P_ ((struct frame *, int, int, int, int, int));
|
||||
void bitch_at_user P_ ((void));
|
||||
void init_display P_ ((void));
|
||||
void syms_of_display P_ ((void));
|
||||
extern int required_matrix_width (struct window *);
|
||||
extern int required_matrix_height (struct window *);
|
||||
extern Lisp_Object buffer_posn_from_coords (struct window *,
|
||||
int *, int *,
|
||||
struct display_pos *,
|
||||
Lisp_Object *,
|
||||
int *, int *, int *, int *);
|
||||
extern Lisp_Object mode_line_string (struct window *, enum window_part,
|
||||
int *, int *, int *,
|
||||
Lisp_Object *,
|
||||
int *, int *, int *, int *);
|
||||
extern Lisp_Object marginal_area_string (struct window *, enum window_part,
|
||||
int *, int *, int *,
|
||||
Lisp_Object *,
|
||||
int *, int *, int *, int *);
|
||||
extern void redraw_frame (struct frame *);
|
||||
extern void redraw_garbaged_frames (void);
|
||||
extern void cancel_line (int, struct frame *);
|
||||
extern void init_desired_glyphs (struct frame *);
|
||||
extern int scroll_frame_lines (struct frame *, int, int, int, int);
|
||||
extern int update_frame (struct frame *, int, int);
|
||||
extern int scrolling (struct frame *);
|
||||
extern void bitch_at_user (void);
|
||||
void adjust_glyphs (struct frame *);
|
||||
void free_glyphs (struct frame *);
|
||||
void free_window_matrices (struct window *);
|
||||
void check_glyph_memory (void);
|
||||
void mirrored_line_dance (struct glyph_matrix *, int, int, int *, char *);
|
||||
void clear_glyph_matrix (struct glyph_matrix *);
|
||||
void clear_current_matrices (struct frame *f);
|
||||
void clear_desired_matrices (struct frame *);
|
||||
void shift_glyph_matrix (struct window *, struct glyph_matrix *,
|
||||
int, int, int);
|
||||
void rotate_matrix (struct glyph_matrix *, int, int, int);
|
||||
void increment_matrix_positions (struct glyph_matrix *,
|
||||
int, int, int, int);
|
||||
void blank_row (struct window *, struct glyph_row *, int);
|
||||
void increment_row_positions (struct glyph_row *, int, int);
|
||||
void enable_glyph_matrix_rows (struct glyph_matrix *, int, int, int);
|
||||
void clear_glyph_row (struct glyph_row *);
|
||||
void prepare_desired_row (struct glyph_row *);
|
||||
int line_hash_code (struct glyph_row *);
|
||||
void set_window_update_flags (struct window *, int);
|
||||
void redraw_frame (struct frame *);
|
||||
void redraw_garbaged_frames (void);
|
||||
int scroll_cost (struct frame *, int, int, int);
|
||||
int update_frame (struct frame *, int, int);
|
||||
void update_single_window (struct window *, int);
|
||||
int scrolling (struct frame *);
|
||||
void do_pending_window_change (int);
|
||||
void change_frame_size (struct frame *, int, int, int, int, int);
|
||||
void bitch_at_user (void);
|
||||
void init_display (void);
|
||||
void syms_of_display (void);
|
||||
extern Lisp_Object Qredisplay_dont_pause;
|
||||
void spec_glyph_lookup_face P_ ((struct window *, GLYPH *));
|
||||
void spec_glyph_lookup_face (struct window *, GLYPH *);
|
||||
|
||||
/* Defined in terminal.c */
|
||||
|
||||
extern void ring_bell P_ ((struct frame *));
|
||||
extern void update_begin P_ ((struct frame *));
|
||||
extern void update_end P_ ((struct frame *));
|
||||
extern void set_terminal_window P_ ((struct frame *, int));
|
||||
extern void cursor_to P_ ((struct frame *, int, int));
|
||||
extern void raw_cursor_to P_ ((struct frame *, int, int));
|
||||
extern void clear_to_end P_ ((struct frame *));
|
||||
extern void clear_frame P_ ((struct frame *));
|
||||
extern void clear_end_of_line P_ ((struct frame *, int));
|
||||
extern void write_glyphs P_ ((struct frame *, struct glyph *, int));
|
||||
extern void insert_glyphs P_ ((struct frame *, struct glyph *, int));
|
||||
extern void delete_glyphs P_ ((struct frame *, int));
|
||||
extern void ins_del_lines P_ ((struct frame *, int, int));
|
||||
extern void ring_bell (struct frame *);
|
||||
extern void update_begin (struct frame *);
|
||||
extern void update_end (struct frame *);
|
||||
extern void set_terminal_window (struct frame *, int);
|
||||
extern void cursor_to (struct frame *, int, int);
|
||||
extern void raw_cursor_to (struct frame *, int, int);
|
||||
extern void clear_to_end (struct frame *);
|
||||
extern void clear_frame (struct frame *);
|
||||
extern void clear_end_of_line (struct frame *, int);
|
||||
extern void write_glyphs (struct frame *, struct glyph *, int);
|
||||
extern void insert_glyphs (struct frame *, struct glyph *, int);
|
||||
extern void delete_glyphs (struct frame *, int);
|
||||
extern void ins_del_lines (struct frame *, int, int);
|
||||
|
||||
extern struct terminal *init_initial_terminal P_ ((void));
|
||||
extern struct terminal *init_initial_terminal (void);
|
||||
|
||||
|
||||
/* Defined in term.c */
|
||||
|
||||
extern void tty_set_terminal_modes P_ ((struct terminal *));
|
||||
extern void tty_reset_terminal_modes P_ ((struct terminal *));
|
||||
extern void tty_turn_off_insert P_ ((struct tty_display_info *));
|
||||
extern void tty_turn_off_highlight P_ ((struct tty_display_info *));
|
||||
extern int string_cost P_ ((char *));
|
||||
extern int per_line_cost P_ ((char *));
|
||||
extern void calculate_costs P_ ((struct frame *));
|
||||
extern void produce_glyphs P_ ((struct it *));
|
||||
extern void produce_special_glyphs P_ ((struct it *, enum display_element_type));
|
||||
extern int tty_capable_p P_ ((struct tty_display_info *, unsigned, unsigned long, unsigned long));
|
||||
extern void tty_set_terminal_modes (struct terminal *);
|
||||
extern void tty_reset_terminal_modes (struct terminal *);
|
||||
extern void tty_turn_off_insert (struct tty_display_info *);
|
||||
extern void tty_turn_off_highlight (struct tty_display_info *);
|
||||
extern int string_cost (char *);
|
||||
extern int per_line_cost (char *);
|
||||
extern void calculate_costs (struct frame *);
|
||||
extern void produce_glyphs (struct it *);
|
||||
extern void produce_special_glyphs (struct it *, enum display_element_type);
|
||||
extern int tty_capable_p (struct tty_display_info *, unsigned, unsigned long, unsigned long);
|
||||
extern void set_tty_color_mode (struct tty_display_info *, struct frame *);
|
||||
extern struct terminal *get_tty_terminal P_ ((Lisp_Object, int));
|
||||
extern struct terminal *get_named_tty P_ ((char *));
|
||||
extern struct terminal *get_tty_terminal (Lisp_Object, int);
|
||||
extern struct terminal *get_named_tty (char *);
|
||||
EXFUN (Ftty_type, 1);
|
||||
extern void create_tty_output P_ ((struct frame *));
|
||||
extern struct terminal *init_tty P_ ((char *, char *, int));
|
||||
extern void create_tty_output (struct frame *);
|
||||
extern struct terminal *init_tty (char *, char *, int);
|
||||
|
||||
|
||||
/* Defined in scroll.c */
|
||||
|
||||
extern int scrolling_max_lines_saved P_ ((int, int, int *, int *, int *));
|
||||
extern int scroll_cost P_ ((struct frame *, int, int, int));
|
||||
extern void do_line_insertion_deletion_costs P_ ((struct frame *, char *,
|
||||
char *, char *, char *,
|
||||
char *, char *, int));
|
||||
void scrolling_1 P_ ((struct frame *, int, int, int, int *, int *, int *,
|
||||
int *, int));
|
||||
extern int scrolling_max_lines_saved (int, int, int *, int *, int *);
|
||||
extern int scroll_cost (struct frame *, int, int, int);
|
||||
extern void do_line_insertion_deletion_costs (struct frame *, char *,
|
||||
char *, char *, char *,
|
||||
char *, char *, int);
|
||||
void scrolling_1 (struct frame *, int, int, int, int *, int *, int *,
|
||||
int *, int);
|
||||
|
||||
/* Defined in frame.c */
|
||||
|
||||
|
@ -3313,20 +3313,20 @@ enum resource_types
|
|||
RES_TYPE_BOOLEAN_NUMBER
|
||||
};
|
||||
|
||||
extern Lisp_Object x_get_arg P_ ((Display_Info *, Lisp_Object,
|
||||
Lisp_Object, char *, char *class,
|
||||
enum resource_types));
|
||||
extern Lisp_Object x_frame_get_arg P_ ((struct frame *, Lisp_Object,
|
||||
Lisp_Object, char *, char *,
|
||||
enum resource_types));
|
||||
extern Lisp_Object x_frame_get_and_record_arg P_ ((
|
||||
struct frame *, Lisp_Object,
|
||||
Lisp_Object, char *, char *,
|
||||
enum resource_types));
|
||||
extern Lisp_Object x_default_parameter P_ ((struct frame *, Lisp_Object,
|
||||
Lisp_Object, Lisp_Object,
|
||||
char *, char *,
|
||||
enum resource_types));
|
||||
extern Lisp_Object x_get_arg (Display_Info *, Lisp_Object,
|
||||
Lisp_Object, char *, char *class,
|
||||
enum resource_types);
|
||||
extern Lisp_Object x_frame_get_arg (struct frame *, Lisp_Object,
|
||||
Lisp_Object, char *, char *,
|
||||
enum resource_types);
|
||||
extern Lisp_Object x_frame_get_and_record_arg (
|
||||
struct frame *, Lisp_Object,
|
||||
Lisp_Object, char *, char *,
|
||||
enum resource_types);
|
||||
extern Lisp_Object x_default_parameter (struct frame *, Lisp_Object,
|
||||
Lisp_Object, Lisp_Object,
|
||||
char *, char *,
|
||||
enum resource_types);
|
||||
|
||||
#endif /* HAVE_WINDOW_SYSTEM */
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
#define DISP_INVIS_VECTOR(dp) ((dp)->extras[4])
|
||||
#define DISP_BORDER_GLYPH(dp) ((dp)->extras[5])
|
||||
|
||||
extern Lisp_Object disp_char_vector P_ ((struct Lisp_Char_Table *, int));
|
||||
extern Lisp_Object disp_char_vector (struct Lisp_Char_Table *, int);
|
||||
|
||||
#define DISP_CHAR_VECTOR(dp, c) \
|
||||
(ASCII_CHAR_P(c) \
|
||||
|
@ -44,10 +44,10 @@ extern Lisp_Object disp_char_vector P_ ((struct Lisp_Char_Table *, int));
|
|||
: disp_char_vector ((dp), (c)))
|
||||
|
||||
/* Defined in window.c. */
|
||||
extern struct Lisp_Char_Table *window_display_table P_ ((struct window *));
|
||||
extern struct Lisp_Char_Table *window_display_table (struct window *);
|
||||
|
||||
/* Defined in indent.c. */
|
||||
extern struct Lisp_Char_Table *buffer_display_table P_ ((void));
|
||||
extern struct Lisp_Char_Table *buffer_display_table (void);
|
||||
|
||||
/* Display table to use for vectors that don't specify their own. */
|
||||
extern Lisp_Object Vstandard_display_table;
|
||||
|
|
202
src/font.h
202
src/font.h
|
@ -507,7 +507,7 @@ struct font_driver
|
|||
|
||||
/* Return a cache of font-entities on frame F. The cache must be a
|
||||
cons whose cdr part is the actual cache area. */
|
||||
Lisp_Object (*get_cache) P_ ((FRAME_PTR F));
|
||||
Lisp_Object (*get_cache) (FRAME_PTR F);
|
||||
|
||||
/* List fonts exactly matching with FONT_SPEC on FRAME. The value
|
||||
is a list of font-entities. The font properties to be considered
|
||||
|
@ -530,7 +530,7 @@ struct font_driver
|
|||
|
||||
This and the following `match' are the only APIs that allocate
|
||||
font-entities. */
|
||||
Lisp_Object (*list) P_ ((Lisp_Object frame, Lisp_Object font_spec));
|
||||
Lisp_Object (*list) (Lisp_Object frame, Lisp_Object font_spec);
|
||||
|
||||
/* Return a font-entity most closely matching with FONT_SPEC on
|
||||
FRAME. Which font property to consider, and how to calculate the
|
||||
|
@ -539,92 +539,92 @@ struct font_driver
|
|||
|
||||
The properties that the font-entity has is the same as `list'
|
||||
method. */
|
||||
Lisp_Object (*match) P_ ((Lisp_Object frame, Lisp_Object font_spec));
|
||||
Lisp_Object (*match) (Lisp_Object frame, Lisp_Object font_spec);
|
||||
|
||||
/* Optional.
|
||||
List available families. The value is a list of family names
|
||||
(symbols). */
|
||||
Lisp_Object (*list_family) P_ ((Lisp_Object frame));
|
||||
Lisp_Object (*list_family) (Lisp_Object frame);
|
||||
|
||||
/* Optional (if FONT_EXTRA_INDEX is not Lisp_Save_Value).
|
||||
Free FONT_EXTRA_INDEX field of FONT_ENTITY. */
|
||||
void (*free_entity) P_ ((Lisp_Object font_entity));
|
||||
void (*free_entity) (Lisp_Object font_entity);
|
||||
|
||||
/* Open a font specified by FONT_ENTITY on frame F. If the font is
|
||||
scalable, open it with PIXEL_SIZE. */
|
||||
Lisp_Object (*open) P_ ((FRAME_PTR f, Lisp_Object font_entity,
|
||||
int pixel_size));
|
||||
Lisp_Object (*open) (FRAME_PTR f, Lisp_Object font_entity,
|
||||
int pixel_size);
|
||||
|
||||
/* Close FONT on frame F. */
|
||||
void (*close) P_ ((FRAME_PTR f, struct font *font));
|
||||
void (*close) (FRAME_PTR f, struct font *font);
|
||||
|
||||
/* Optional (if FACE->extra is not used).
|
||||
Prepare FACE for displaying characters by FONT on frame F by
|
||||
storing some data in FACE->extra. If successful, return 0.
|
||||
Otherwise, return -1. */
|
||||
int (*prepare_face) P_ ((FRAME_PTR f, struct face *face));
|
||||
int (*prepare_face) (FRAME_PTR f, struct face *face);
|
||||
|
||||
/* Optional.
|
||||
Done FACE for displaying characters by FACE->font on frame F. */
|
||||
void (*done_face) P_ ((FRAME_PTR f, struct face *face));
|
||||
void (*done_face) (FRAME_PTR f, struct face *face);
|
||||
|
||||
/* Optional.
|
||||
If FONT (FONT-ENTITY or FONT-OBJECT) has a glyph for character C
|
||||
(Unicode code point), return 1. If not, return 0. If FONT is
|
||||
FONT-ENTITY and it must be opened to check it, return -1. */
|
||||
int (*has_char) P_ ((Lisp_Object font, int c));
|
||||
int (*has_char) (Lisp_Object font, int c);
|
||||
|
||||
/* Return a glyph code of FONT for characer C (Unicode code point).
|
||||
If FONT doesn't have such a glyph, return FONT_INVALID_CODE. */
|
||||
unsigned (*encode_char) P_ ((struct font *font, int c));
|
||||
unsigned (*encode_char) (struct font *font, int c);
|
||||
|
||||
/* Computate the total metrics of the NGLYPHS glyphs specified by
|
||||
the font FONT and the sequence of glyph codes CODE, and store the
|
||||
result in METRICS. */
|
||||
int (*text_extents) P_ ((struct font *font,
|
||||
unsigned *code, int nglyphs,
|
||||
struct font_metrics *metrics));
|
||||
int (*text_extents) (struct font *font,
|
||||
unsigned *code, int nglyphs,
|
||||
struct font_metrics *metrics);
|
||||
|
||||
/* Optional.
|
||||
Draw glyphs between FROM and TO of S->char2b at (X Y) pixel
|
||||
position of frame F with S->FACE and S->GC. If WITH_BACKGROUND
|
||||
is nonzero, fill the background in advance. It is assured that
|
||||
WITH_BACKGROUND is zero when (FROM > 0 || TO < S->nchars). */
|
||||
int (*draw) P_ ((struct glyph_string *s, int from, int to,
|
||||
int x, int y, int with_background));
|
||||
int (*draw) (struct glyph_string *s, int from, int to,
|
||||
int x, int y, int with_background);
|
||||
|
||||
/* Optional.
|
||||
Store bitmap data for glyph-code CODE of FONT in BITMAP. It is
|
||||
intended that this method is callled from the other font-driver
|
||||
for actual drawing. */
|
||||
int (*get_bitmap) P_ ((struct font *font, unsigned code,
|
||||
struct font_bitmap *bitmap,
|
||||
int bits_per_pixel));
|
||||
int (*get_bitmap) (struct font *font, unsigned code,
|
||||
struct font_bitmap *bitmap,
|
||||
int bits_per_pixel);
|
||||
|
||||
/* Optional.
|
||||
Free bitmap data in BITMAP. */
|
||||
void (*free_bitmap) P_ ((struct font *font, struct font_bitmap *bitmap));
|
||||
void (*free_bitmap) (struct font *font, struct font_bitmap *bitmap);
|
||||
|
||||
/* Optional.
|
||||
Return an outline data for glyph-code CODE of FONT. The format
|
||||
of the outline data depends on the font-driver. */
|
||||
void *(*get_outline) P_ ((struct font *font, unsigned code));
|
||||
void *(*get_outline) (struct font *font, unsigned code);
|
||||
|
||||
/* Optional.
|
||||
Free OUTLINE (that is obtained by the above method). */
|
||||
void (*free_outline) P_ ((struct font *font, void *outline));
|
||||
void (*free_outline) (struct font *font, void *outline);
|
||||
|
||||
/* Optional.
|
||||
Get coordinates of the INDEXth anchor point of the glyph whose
|
||||
code is CODE. Store the coordinates in *X and *Y. Return 0 if
|
||||
the operations was successfull. Otherwise return -1. */
|
||||
int (*anchor_point) P_ ((struct font *font, unsigned code, int index,
|
||||
int *x, int *y));
|
||||
int (*anchor_point) (struct font *font, unsigned code, int index,
|
||||
int *x, int *y);
|
||||
|
||||
/* Optional.
|
||||
Return a list describing which scripts/languages FONT
|
||||
supports by which GSUB/GPOS features of OpenType tables. */
|
||||
Lisp_Object (*otf_capability) P_ ((struct font *font));
|
||||
Lisp_Object (*otf_capability) (struct font *font);
|
||||
|
||||
/* Optional.
|
||||
Apply FONT's OTF-FEATURES to the glyph string.
|
||||
|
@ -641,20 +641,20 @@ struct font_driver
|
|||
Return the number of output codes. If none of the features are
|
||||
applicable to the input data, return 0. If GSTRING-OUT is too
|
||||
short, return -1. */
|
||||
int (*otf_drive) P_ ((struct font *font, Lisp_Object features,
|
||||
Lisp_Object gstring_in, int from, int to,
|
||||
Lisp_Object gstring_out, int idx, int alternate_subst));
|
||||
int (*otf_drive) (struct font *font, Lisp_Object features,
|
||||
Lisp_Object gstring_in, int from, int to,
|
||||
Lisp_Object gstring_out, int idx, int alternate_subst);
|
||||
|
||||
/* Optional.
|
||||
Make the font driver ready for frame F. Usually this function
|
||||
makes some data specific to F and stores it in F by calling
|
||||
font_put_frame_data (). */
|
||||
int (*start_for_frame) P_ ((FRAME_PTR f));
|
||||
int (*start_for_frame) (FRAME_PTR f);
|
||||
|
||||
/* Optional.
|
||||
End using the driver for frame F. Usually this function free
|
||||
some data stored for F. */
|
||||
int (*end_for_frame) P_ ((FRAME_PTR f));
|
||||
int (*end_for_frame) (FRAME_PTR f);
|
||||
|
||||
/* Optional.
|
||||
|
||||
|
@ -670,14 +670,14 @@ struct font_driver
|
|||
a new glyph object and storing it in GSTRING. If (M) is greater
|
||||
than the length of GSTRING, nil should be return. In that case,
|
||||
this function is called again with the larger GSTRING. */
|
||||
Lisp_Object (*shape) P_ ((Lisp_Object lgstring));
|
||||
Lisp_Object (*shape) (Lisp_Object lgstring);
|
||||
|
||||
/* Optional.
|
||||
|
||||
If FONT is usable on frame F, return 0. Otherwise return -1.
|
||||
This method is used only for debugging. If this method is NULL,
|
||||
Emacs assumes that the font is usable on any frame. */
|
||||
int (*check) P_ ((FRAME_PTR F, struct font *font));
|
||||
int (*check) (FRAME_PTR F, struct font *font);
|
||||
|
||||
/* Optional.
|
||||
|
||||
|
@ -685,18 +685,18 @@ struct font_driver
|
|||
FONT. VARIATIONS is an array of 256 elements. If the variation
|
||||
selector N (1..256) defines a glyph, that glyph code is stored in
|
||||
the (N-1)th element of VARIATIONS. */
|
||||
int (*get_variation_glyphs) P_ ((struct font *font,
|
||||
int c, unsigned variations[256]));
|
||||
int (*get_variation_glyphs) (struct font *font,
|
||||
int c, unsigned variations[256]);
|
||||
|
||||
void (*filter_properties) P_ ((Lisp_Object font, Lisp_Object properties));
|
||||
void (*filter_properties) (Lisp_Object font, Lisp_Object properties);
|
||||
|
||||
/* Optional.
|
||||
|
||||
Return non-zero if FONT_OBJECT can be used as a (cached) font
|
||||
for ENTITY on frame F. */
|
||||
int (*cached_font_ok) P_ ((struct frame *f,
|
||||
Lisp_Object font_object,
|
||||
Lisp_Object entity));
|
||||
int (*cached_font_ok) (struct frame *f,
|
||||
Lisp_Object font_object,
|
||||
Lisp_Object entity);
|
||||
};
|
||||
|
||||
|
||||
|
@ -739,80 +739,80 @@ EXFUN (Ffont_family_list, 1);
|
|||
EXFUN (Fclear_font_cache, 0);
|
||||
EXFUN (Ffont_xlfd_name, 2);
|
||||
|
||||
extern Lisp_Object font_make_spec P_ ((void));
|
||||
extern Lisp_Object font_make_entity P_ ((void));
|
||||
extern Lisp_Object font_make_object P_ ((int, Lisp_Object, int));
|
||||
extern Lisp_Object font_make_spec (void);
|
||||
extern Lisp_Object font_make_entity (void);
|
||||
extern Lisp_Object font_make_object (int, Lisp_Object, int);
|
||||
|
||||
extern Lisp_Object find_font_encoding P_ ((Lisp_Object));
|
||||
extern int font_registry_charsets P_ ((Lisp_Object, struct charset **,
|
||||
struct charset **));
|
||||
extern int font_style_to_value P_ ((enum font_property_index prop,
|
||||
Lisp_Object name, int noerror));
|
||||
extern Lisp_Object font_style_symbolic P_ ((Lisp_Object font,
|
||||
enum font_property_index prop,
|
||||
int for_face));
|
||||
extern Lisp_Object find_font_encoding (Lisp_Object);
|
||||
extern int font_registry_charsets (Lisp_Object, struct charset **,
|
||||
struct charset **);
|
||||
extern int font_style_to_value (enum font_property_index prop,
|
||||
Lisp_Object name, int noerror);
|
||||
extern Lisp_Object font_style_symbolic (Lisp_Object font,
|
||||
enum font_property_index prop,
|
||||
int for_face);
|
||||
|
||||
extern int font_match_p P_ ((Lisp_Object spec, Lisp_Object font));
|
||||
extern Lisp_Object font_list_entities P_ ((Lisp_Object frame,
|
||||
Lisp_Object spec));
|
||||
extern int font_match_p (Lisp_Object spec, Lisp_Object font);
|
||||
extern Lisp_Object font_list_entities (Lisp_Object frame,
|
||||
Lisp_Object spec);
|
||||
|
||||
extern Lisp_Object font_get_name P_ ((Lisp_Object font_object));
|
||||
extern Lisp_Object font_spec_from_name P_ ((Lisp_Object font_name));
|
||||
extern Lisp_Object font_get_frame P_ ((Lisp_Object font_object));
|
||||
extern int font_has_char P_ ((FRAME_PTR, Lisp_Object, int));
|
||||
extern unsigned font_encode_char P_ ((Lisp_Object, int));
|
||||
extern Lisp_Object font_get_name (Lisp_Object font_object);
|
||||
extern Lisp_Object font_spec_from_name (Lisp_Object font_name);
|
||||
extern Lisp_Object font_get_frame (Lisp_Object font_object);
|
||||
extern int font_has_char (FRAME_PTR, Lisp_Object, int);
|
||||
extern unsigned font_encode_char (Lisp_Object, int);
|
||||
|
||||
extern void font_clear_prop P_ ((Lisp_Object *attrs,
|
||||
enum font_property_index prop));
|
||||
extern void font_update_lface P_ ((FRAME_PTR f, Lisp_Object *attrs));
|
||||
extern Lisp_Object font_find_for_lface P_ ((FRAME_PTR f, Lisp_Object *lface,
|
||||
Lisp_Object spec, int c));
|
||||
extern Lisp_Object font_open_for_lface P_ ((FRAME_PTR f, Lisp_Object entity,
|
||||
Lisp_Object *lface,
|
||||
Lisp_Object spec));
|
||||
extern Lisp_Object font_load_for_lface P_ ((FRAME_PTR f, Lisp_Object *lface,
|
||||
Lisp_Object spec));
|
||||
extern void font_prepare_for_face P_ ((FRAME_PTR f, struct face *face));
|
||||
extern void font_done_for_face P_ ((FRAME_PTR f, struct face *face));
|
||||
extern void font_clear_prop (Lisp_Object *attrs,
|
||||
enum font_property_index prop);
|
||||
extern void font_update_lface (FRAME_PTR f, Lisp_Object *attrs);
|
||||
extern Lisp_Object font_find_for_lface (FRAME_PTR f, Lisp_Object *lface,
|
||||
Lisp_Object spec, int c);
|
||||
extern Lisp_Object font_open_for_lface (FRAME_PTR f, Lisp_Object entity,
|
||||
Lisp_Object *lface,
|
||||
Lisp_Object spec);
|
||||
extern Lisp_Object font_load_for_lface (FRAME_PTR f, Lisp_Object *lface,
|
||||
Lisp_Object spec);
|
||||
extern void font_prepare_for_face (FRAME_PTR f, struct face *face);
|
||||
extern void font_done_for_face (FRAME_PTR f, struct face *face);
|
||||
|
||||
extern Lisp_Object font_open_by_spec P_ ((FRAME_PTR f, Lisp_Object spec));
|
||||
extern Lisp_Object font_open_by_name P_ ((FRAME_PTR f, char *name));
|
||||
extern Lisp_Object font_open_by_spec (FRAME_PTR f, Lisp_Object spec);
|
||||
extern Lisp_Object font_open_by_name (FRAME_PTR f, char *name);
|
||||
extern void font_close_object (FRAME_PTR f, Lisp_Object font_object);
|
||||
|
||||
extern Lisp_Object font_intern_prop P_ ((char *str, int len, int force_symbol));
|
||||
extern void font_update_sort_order P_ ((int *order));
|
||||
extern Lisp_Object font_intern_prop (char *str, int len, int force_symbol);
|
||||
extern void font_update_sort_order (int *order);
|
||||
|
||||
extern void font_parse_family_registry P_ ((Lisp_Object family,
|
||||
Lisp_Object registry,
|
||||
Lisp_Object spec));
|
||||
extern Lisp_Object font_spec_from_family_registry P_ ((Lisp_Object family,
|
||||
Lisp_Object registry));
|
||||
extern void font_parse_family_registry (Lisp_Object family,
|
||||
Lisp_Object registry,
|
||||
Lisp_Object spec);
|
||||
extern Lisp_Object font_spec_from_family_registry (Lisp_Object family,
|
||||
Lisp_Object registry);
|
||||
|
||||
extern int font_parse_xlfd P_ ((char *name, Lisp_Object font));
|
||||
extern int font_unparse_xlfd P_ ((Lisp_Object font, int pixel_size,
|
||||
char *name, int bytes));
|
||||
extern int font_parse_fcname P_ ((char *name, Lisp_Object font));
|
||||
extern int font_unparse_fcname P_ ((Lisp_Object font, int pixel_size,
|
||||
char *name, int bytes));
|
||||
extern int font_unparse_gtkname P_ ((Lisp_Object, struct frame *, char *, int));
|
||||
extern void register_font_driver P_ ((struct font_driver *driver, FRAME_PTR f));
|
||||
extern void free_font_driver_list P_ ((FRAME_PTR f));
|
||||
extern Lisp_Object font_update_drivers P_ ((FRAME_PTR f, Lisp_Object list));
|
||||
extern Lisp_Object font_at P_ ((int c, EMACS_INT pos, struct face *face,
|
||||
struct window *w, Lisp_Object object));
|
||||
extern int font_parse_xlfd (char *name, Lisp_Object font);
|
||||
extern int font_unparse_xlfd (Lisp_Object font, int pixel_size,
|
||||
char *name, int bytes);
|
||||
extern int font_parse_fcname (char *name, Lisp_Object font);
|
||||
extern int font_unparse_fcname (Lisp_Object font, int pixel_size,
|
||||
char *name, int bytes);
|
||||
extern int font_unparse_gtkname (Lisp_Object, struct frame *, char *, int);
|
||||
extern void register_font_driver (struct font_driver *driver, FRAME_PTR f);
|
||||
extern void free_font_driver_list (FRAME_PTR f);
|
||||
extern Lisp_Object font_update_drivers (FRAME_PTR f, Lisp_Object list);
|
||||
extern Lisp_Object font_at (int c, EMACS_INT pos, struct face *face,
|
||||
struct window *w, Lisp_Object object);
|
||||
extern Lisp_Object font_range (EMACS_INT, EMACS_INT *,
|
||||
struct window *, struct face *,
|
||||
Lisp_Object);
|
||||
extern void font_fill_lglyph_metrics P_ ((Lisp_Object, Lisp_Object));
|
||||
extern void font_fill_lglyph_metrics (Lisp_Object, Lisp_Object);
|
||||
|
||||
extern Lisp_Object font_put_extra P_ ((Lisp_Object font, Lisp_Object prop,
|
||||
Lisp_Object val));
|
||||
extern Lisp_Object font_put_extra (Lisp_Object font, Lisp_Object prop,
|
||||
Lisp_Object val);
|
||||
|
||||
extern int font_put_frame_data P_ ((FRAME_PTR f,
|
||||
struct font_driver *driver,
|
||||
void *data));
|
||||
extern void *font_get_frame_data P_ ((FRAME_PTR f,
|
||||
struct font_driver *driver));
|
||||
extern int font_put_frame_data (FRAME_PTR f,
|
||||
struct font_driver *driver,
|
||||
void *data);
|
||||
extern void *font_get_frame_data (FRAME_PTR f,
|
||||
struct font_driver *driver);
|
||||
|
||||
#ifdef HAVE_FREETYPE
|
||||
extern struct font_driver ftfont_driver;
|
||||
|
@ -837,8 +837,8 @@ extern struct font_driver nsfont_driver;
|
|||
#endif
|
||||
|
||||
extern Lisp_Object Vfont_log;
|
||||
extern void font_add_log P_ ((char *, Lisp_Object, Lisp_Object));
|
||||
extern void font_deferred_log P_ ((char *, Lisp_Object, Lisp_Object));
|
||||
extern void font_add_log (char *, Lisp_Object, Lisp_Object);
|
||||
extern void font_deferred_log (char *, Lisp_Object, Lisp_Object);
|
||||
|
||||
#define FONT_ADD_LOG(ACTION, ARG, RESULT) \
|
||||
do { \
|
||||
|
|
|
@ -28,22 +28,22 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
#define EMACS_FONTSET_H
|
||||
|
||||
/* Check if any window system is used now. */
|
||||
extern void (*check_window_system_func) P_ ((void));
|
||||
extern void (*check_window_system_func) (void);
|
||||
|
||||
struct face;
|
||||
|
||||
extern void free_face_fontset P_ ((FRAME_PTR, struct face *));
|
||||
extern Lisp_Object fontset_font_pattern P_ ((FRAME_PTR, struct face *, int));
|
||||
extern int face_suitable_for_char_p P_ ((struct face *, int));
|
||||
extern int face_for_char P_ ((FRAME_PTR, struct face *, int,
|
||||
int, Lisp_Object));
|
||||
extern Lisp_Object font_for_char P_ ((struct face *, int, int, Lisp_Object));
|
||||
extern void free_face_fontset (FRAME_PTR, struct face *);
|
||||
extern Lisp_Object fontset_font_pattern (FRAME_PTR, struct face *, int);
|
||||
extern int face_suitable_for_char_p (struct face *, int);
|
||||
extern int face_for_char (FRAME_PTR, struct face *, int,
|
||||
int, Lisp_Object);
|
||||
extern Lisp_Object font_for_char (struct face *, int, int, Lisp_Object);
|
||||
|
||||
extern int make_fontset_for_ascii_face P_ ((FRAME_PTR, int, struct face *));
|
||||
extern int fontset_from_font P_ ((Lisp_Object));
|
||||
extern int fs_query_fontset P_ ((Lisp_Object, int));
|
||||
extern int make_fontset_for_ascii_face (FRAME_PTR, int, struct face *);
|
||||
extern int fontset_from_font (Lisp_Object);
|
||||
extern int fs_query_fontset (Lisp_Object, int);
|
||||
EXFUN (Fquery_fontset, 2);
|
||||
extern Lisp_Object list_fontsets P_ ((struct frame *, Lisp_Object, int));
|
||||
extern Lisp_Object list_fontsets (struct frame *, Lisp_Object, int);
|
||||
|
||||
extern Lisp_Object Vuse_default_ascent;
|
||||
extern Lisp_Object Vignore_relative_composition;
|
||||
|
@ -52,12 +52,12 @@ extern Lisp_Object Vfontset_alias_alist;
|
|||
extern Lisp_Object Vvertical_centering_font_regexp;
|
||||
extern Lisp_Object Votf_script_alist;
|
||||
|
||||
extern Lisp_Object fontset_name P_ ((int));
|
||||
extern Lisp_Object fontset_ascii P_ ((int));
|
||||
extern int fontset_height P_ ((int));
|
||||
extern Lisp_Object fontset_name (int);
|
||||
extern Lisp_Object fontset_ascii (int);
|
||||
extern int fontset_height (int);
|
||||
|
||||
struct font;
|
||||
extern int face_for_font P_ ((struct frame *, Lisp_Object, struct face *));
|
||||
extern int face_for_font (struct frame *, Lisp_Object, struct face *);
|
||||
|
||||
#endif /* EMACS_FONTSET_H */
|
||||
|
||||
|
|
80
src/frame.h
80
src/frame.h
|
@ -828,19 +828,19 @@ extern Lisp_Object Qnoelisp;
|
|||
|
||||
extern struct frame *last_nonminibuf_frame;
|
||||
|
||||
extern struct frame *make_initial_frame P_ ((void));
|
||||
extern struct frame *make_terminal_frame P_ ((struct terminal *));
|
||||
extern struct frame *make_frame P_ ((int));
|
||||
extern struct frame *make_initial_frame (void);
|
||||
extern struct frame *make_terminal_frame (struct terminal *);
|
||||
extern struct frame *make_frame (int);
|
||||
#ifdef HAVE_WINDOW_SYSTEM
|
||||
extern struct frame *make_minibuffer_frame P_ ((void));
|
||||
extern struct frame *make_frame_without_minibuffer P_ ((Lisp_Object,
|
||||
struct kboard *,
|
||||
Lisp_Object));
|
||||
extern struct frame *make_minibuffer_frame (void);
|
||||
extern struct frame *make_frame_without_minibuffer (Lisp_Object,
|
||||
struct kboard *,
|
||||
Lisp_Object);
|
||||
#endif /* HAVE_WINDOW_SYSTEM */
|
||||
extern int other_visible_frames P_ ((struct frame *));
|
||||
extern void frame_make_pointer_invisible P_ ((void));
|
||||
extern void frame_make_pointer_visible P_ ((void));
|
||||
extern Lisp_Object delete_frame P_ ((Lisp_Object, Lisp_Object));
|
||||
extern int other_visible_frames (struct frame *);
|
||||
extern void frame_make_pointer_invisible (void);
|
||||
extern void frame_make_pointer_visible (void);
|
||||
extern Lisp_Object delete_frame (Lisp_Object, Lisp_Object);
|
||||
|
||||
extern Lisp_Object Vframe_list;
|
||||
extern Lisp_Object Vdefault_frame_alist;
|
||||
|
@ -1081,11 +1081,11 @@ extern Lisp_Object Qdisplay;
|
|||
|
||||
/* These are in xterm.c, w32term.c, etc. */
|
||||
|
||||
extern void x_set_scroll_bar_default_width P_ ((struct frame *));
|
||||
extern void x_set_offset P_ ((struct frame *, int, int, int));
|
||||
extern void x_wm_set_icon_position P_ ((struct frame *, int, int));
|
||||
extern void x_set_scroll_bar_default_width (struct frame *);
|
||||
extern void x_set_offset (struct frame *, int, int, int);
|
||||
extern void x_wm_set_icon_position (struct frame *, int, int);
|
||||
|
||||
extern Lisp_Object x_new_font P_ ((struct frame *, Lisp_Object, int));
|
||||
extern Lisp_Object x_new_font (struct frame *, Lisp_Object, int);
|
||||
|
||||
/* These are in frame.c */
|
||||
|
||||
|
@ -1095,38 +1095,38 @@ extern Lisp_Object Vx_resource_class;
|
|||
|
||||
extern Lisp_Object Qface_set_after_frame_default;
|
||||
|
||||
extern void x_fullscreen_adjust P_ ((struct frame *f, int *, int *,
|
||||
int *, int *));
|
||||
extern void x_fullscreen_adjust (struct frame *f, int *, int *,
|
||||
int *, int *);
|
||||
|
||||
extern void x_set_frame_parameters P_ ((struct frame *, Lisp_Object));
|
||||
extern void x_report_frame_params P_ ((struct frame *, Lisp_Object *));
|
||||
extern void x_set_frame_parameters (struct frame *, Lisp_Object);
|
||||
extern void x_report_frame_params (struct frame *, Lisp_Object *);
|
||||
|
||||
extern void x_set_fullscreen P_ ((struct frame *, Lisp_Object, Lisp_Object));
|
||||
extern void x_set_line_spacing P_ ((struct frame *, Lisp_Object, Lisp_Object));
|
||||
extern void x_set_screen_gamma P_ ((struct frame *, Lisp_Object, Lisp_Object));
|
||||
extern void x_set_font P_ ((struct frame *, Lisp_Object, Lisp_Object));
|
||||
extern void x_set_font_backend P_ ((struct frame *, Lisp_Object, Lisp_Object));
|
||||
extern void x_set_fringe_width P_ ((struct frame *, Lisp_Object, Lisp_Object));
|
||||
extern void x_set_border_width P_ ((struct frame *, Lisp_Object, Lisp_Object));
|
||||
extern void x_set_internal_border_width P_ ((struct frame *, Lisp_Object,
|
||||
Lisp_Object));
|
||||
extern void x_set_visibility P_ ((struct frame *, Lisp_Object, Lisp_Object));
|
||||
extern void x_set_autoraise P_ ((struct frame *, Lisp_Object, Lisp_Object));
|
||||
extern void x_set_autolower P_ ((struct frame *, Lisp_Object, Lisp_Object));
|
||||
extern void x_set_unsplittable P_ ((struct frame *, Lisp_Object, Lisp_Object));
|
||||
extern void x_set_vertical_scroll_bars P_ ((struct frame *, Lisp_Object,
|
||||
Lisp_Object));
|
||||
extern void x_set_scroll_bar_width P_ ((struct frame *, Lisp_Object,
|
||||
Lisp_Object));
|
||||
extern void x_set_fullscreen (struct frame *, Lisp_Object, Lisp_Object);
|
||||
extern void x_set_line_spacing (struct frame *, Lisp_Object, Lisp_Object);
|
||||
extern void x_set_screen_gamma (struct frame *, Lisp_Object, Lisp_Object);
|
||||
extern void x_set_font (struct frame *, Lisp_Object, Lisp_Object);
|
||||
extern void x_set_font_backend (struct frame *, Lisp_Object, Lisp_Object);
|
||||
extern void x_set_fringe_width (struct frame *, Lisp_Object, Lisp_Object);
|
||||
extern void x_set_border_width (struct frame *, Lisp_Object, Lisp_Object);
|
||||
extern void x_set_internal_border_width (struct frame *, Lisp_Object,
|
||||
Lisp_Object);
|
||||
extern void x_set_visibility (struct frame *, Lisp_Object, Lisp_Object);
|
||||
extern void x_set_autoraise (struct frame *, Lisp_Object, Lisp_Object);
|
||||
extern void x_set_autolower (struct frame *, Lisp_Object, Lisp_Object);
|
||||
extern void x_set_unsplittable (struct frame *, Lisp_Object, Lisp_Object);
|
||||
extern void x_set_vertical_scroll_bars (struct frame *, Lisp_Object,
|
||||
Lisp_Object);
|
||||
extern void x_set_scroll_bar_width (struct frame *, Lisp_Object,
|
||||
Lisp_Object);
|
||||
|
||||
extern Lisp_Object x_icon_type P_ ((struct frame *));
|
||||
extern Lisp_Object x_icon_type (struct frame *);
|
||||
|
||||
extern int x_figure_window_size P_ ((struct frame *, Lisp_Object, int));
|
||||
extern int x_figure_window_size (struct frame *, Lisp_Object, int);
|
||||
|
||||
extern Lisp_Object Vframe_alpha_lower_limit;
|
||||
extern void x_set_alpha P_ ((struct frame *, Lisp_Object, Lisp_Object));
|
||||
extern void x_set_alpha (struct frame *, Lisp_Object, Lisp_Object);
|
||||
|
||||
extern void validate_x_resource_name P_ ((void));
|
||||
extern void validate_x_resource_name (void);
|
||||
|
||||
extern Lisp_Object display_x_get_resource (Display_Info *,
|
||||
Lisp_Object attribute,
|
||||
|
|
126
src/gtkutil.h
126
src/gtkutil.h
|
@ -122,89 +122,89 @@ typedef struct _widget_value
|
|||
extern int use_old_gtk_file_dialog;
|
||||
#endif
|
||||
|
||||
extern widget_value *malloc_widget_value P_ ((void));
|
||||
extern void free_widget_value P_ ((widget_value *));
|
||||
extern widget_value *malloc_widget_value (void);
|
||||
extern void free_widget_value (widget_value *);
|
||||
|
||||
extern int xg_uses_old_file_dialog P_ ((void));
|
||||
extern int xg_uses_old_file_dialog (void);
|
||||
|
||||
extern char *xg_get_file_name P_ ((FRAME_PTR f,
|
||||
char *prompt,
|
||||
char *default_filename,
|
||||
int mustmatch_p,
|
||||
int only_dir_p));
|
||||
extern char *xg_get_file_name (FRAME_PTR f,
|
||||
char *prompt,
|
||||
char *default_filename,
|
||||
int mustmatch_p,
|
||||
int only_dir_p);
|
||||
|
||||
extern char *xg_get_font_name P_ ((FRAME_PTR f, char *));
|
||||
extern char *xg_get_font_name (FRAME_PTR f, char *);
|
||||
|
||||
extern GtkWidget *xg_create_widget P_ ((char *type,
|
||||
char *name,
|
||||
FRAME_PTR f,
|
||||
widget_value *val,
|
||||
GCallback select_cb,
|
||||
GCallback deactivate_cb,
|
||||
GCallback hightlight_cb));
|
||||
extern GtkWidget *xg_create_widget (char *type,
|
||||
char *name,
|
||||
FRAME_PTR f,
|
||||
widget_value *val,
|
||||
GCallback select_cb,
|
||||
GCallback deactivate_cb,
|
||||
GCallback hightlight_cb);
|
||||
|
||||
extern void xg_modify_menubar_widgets P_ ((GtkWidget *menubar,
|
||||
FRAME_PTR f,
|
||||
widget_value *val,
|
||||
int deep_p,
|
||||
GCallback select_cb,
|
||||
GCallback deactivate_cb,
|
||||
GCallback hightlight_cb));
|
||||
extern void xg_modify_menubar_widgets (GtkWidget *menubar,
|
||||
FRAME_PTR f,
|
||||
widget_value *val,
|
||||
int deep_p,
|
||||
GCallback select_cb,
|
||||
GCallback deactivate_cb,
|
||||
GCallback hightlight_cb);
|
||||
|
||||
extern int xg_update_frame_menubar P_ ((FRAME_PTR f));
|
||||
extern int xg_update_frame_menubar (FRAME_PTR f);
|
||||
|
||||
extern int xg_have_tear_offs P_ ((void));
|
||||
extern int xg_have_tear_offs (void);
|
||||
|
||||
extern int xg_get_scroll_id_for_window P_ ((Display *dpy, Window wid));
|
||||
extern int xg_get_scroll_id_for_window (Display *dpy, Window wid);
|
||||
|
||||
extern void xg_create_scroll_bar P_ ((FRAME_PTR f,
|
||||
struct scroll_bar *bar,
|
||||
GCallback scroll_callback,
|
||||
GCallback end_callback,
|
||||
char *scroll_bar_name));
|
||||
extern void xg_remove_scroll_bar P_ ((FRAME_PTR f, int scrollbar_id));
|
||||
extern void xg_create_scroll_bar (FRAME_PTR f,
|
||||
struct scroll_bar *bar,
|
||||
GCallback scroll_callback,
|
||||
GCallback end_callback,
|
||||
char *scroll_bar_name);
|
||||
extern void xg_remove_scroll_bar (FRAME_PTR f, int scrollbar_id);
|
||||
|
||||
extern void xg_update_scrollbar_pos P_ ((FRAME_PTR f,
|
||||
int scrollbar_id,
|
||||
int top,
|
||||
int left,
|
||||
int width,
|
||||
int height));
|
||||
extern void xg_update_scrollbar_pos (FRAME_PTR f,
|
||||
int scrollbar_id,
|
||||
int top,
|
||||
int left,
|
||||
int width,
|
||||
int height);
|
||||
|
||||
extern void xg_set_toolkit_scroll_bar_thumb P_ ((struct scroll_bar *bar,
|
||||
int portion,
|
||||
int position,
|
||||
int whole));
|
||||
extern int xg_event_is_for_scrollbar P_ ((FRAME_PTR f, XEvent *event));
|
||||
extern void xg_set_toolkit_scroll_bar_thumb (struct scroll_bar *bar,
|
||||
int portion,
|
||||
int position,
|
||||
int whole);
|
||||
extern int xg_event_is_for_scrollbar (FRAME_PTR f, XEvent *event);
|
||||
|
||||
extern void update_frame_tool_bar P_ ((FRAME_PTR f));
|
||||
extern void free_frame_tool_bar P_ ((FRAME_PTR f));
|
||||
extern void update_frame_tool_bar (FRAME_PTR f);
|
||||
extern void free_frame_tool_bar (FRAME_PTR f);
|
||||
|
||||
extern void xg_frame_resized P_ ((FRAME_PTR f,
|
||||
int pixelwidth,
|
||||
int pixelheight));
|
||||
extern void xg_frame_set_char_size P_ ((FRAME_PTR f, int cols, int rows));
|
||||
extern GtkWidget * xg_win_to_widget P_ ((Display *dpy, Window wdesc));
|
||||
extern void xg_frame_resized (FRAME_PTR f,
|
||||
int pixelwidth,
|
||||
int pixelheight);
|
||||
extern void xg_frame_set_char_size (FRAME_PTR f, int cols, int rows);
|
||||
extern GtkWidget * xg_win_to_widget (Display *dpy, Window wdesc);
|
||||
|
||||
extern void xg_display_open P_ ((char *display_name, Display **dpy));
|
||||
extern void xg_display_close P_ ((Display *dpy));
|
||||
extern GdkCursor * xg_create_default_cursor P_ ((Display *dpy));
|
||||
extern void xg_display_open (char *display_name, Display **dpy);
|
||||
extern void xg_display_close (Display *dpy);
|
||||
extern GdkCursor * xg_create_default_cursor (Display *dpy);
|
||||
|
||||
extern int xg_create_frame_widgets P_ ((FRAME_PTR f));
|
||||
extern void x_wm_set_size_hint P_ ((FRAME_PTR f,
|
||||
long flags,
|
||||
int user_position));
|
||||
extern void xg_set_background_color P_ ((FRAME_PTR f, unsigned long bg));
|
||||
extern int xg_create_frame_widgets (FRAME_PTR f);
|
||||
extern void x_wm_set_size_hint (FRAME_PTR f,
|
||||
long flags,
|
||||
int user_position);
|
||||
extern void xg_set_background_color (FRAME_PTR f, unsigned long bg);
|
||||
|
||||
extern void xg_set_frame_icon P_ ((FRAME_PTR f,
|
||||
Pixmap icon_pixmap,
|
||||
Pixmap icon_mask));
|
||||
extern void xg_set_frame_icon (FRAME_PTR f,
|
||||
Pixmap icon_pixmap,
|
||||
Pixmap icon_mask);
|
||||
|
||||
/* Mark all callback data that are Lisp_object:s during GC. */
|
||||
extern void xg_mark_data P_ ((void));
|
||||
extern void xg_mark_data (void);
|
||||
|
||||
/* Initialize GTK specific parts. */
|
||||
extern void xg_initialize P_ ((void));
|
||||
extern void xg_initialize (void);
|
||||
|
||||
/* Setting scrollbar values invokes the callback. Use this variable
|
||||
to indicate that the callback should do nothing. */
|
||||
|
|
28
src/indent.h
28
src/indent.h
|
@ -49,16 +49,16 @@ struct position
|
|||
EMACS_INT tab_offset;
|
||||
};
|
||||
|
||||
struct position *compute_motion P_ ((EMACS_INT from, EMACS_INT fromvpos,
|
||||
EMACS_INT fromhpos, int did_motion,
|
||||
EMACS_INT to, EMACS_INT tovpos,
|
||||
EMACS_INT tohpos,
|
||||
EMACS_INT width, EMACS_INT hscroll,
|
||||
EMACS_INT tab_offset, struct window *));
|
||||
struct position *vmotion P_ ((EMACS_INT from, EMACS_INT vtarget,
|
||||
struct window *));
|
||||
EMACS_INT skip_invisible P_ ((EMACS_INT pos, EMACS_INT *next_boundary_p,
|
||||
EMACS_INT to, Lisp_Object window));
|
||||
struct position *compute_motion (EMACS_INT from, EMACS_INT fromvpos,
|
||||
EMACS_INT fromhpos, int did_motion,
|
||||
EMACS_INT to, EMACS_INT tovpos,
|
||||
EMACS_INT tohpos,
|
||||
EMACS_INT width, EMACS_INT hscroll,
|
||||
EMACS_INT tab_offset, struct window *);
|
||||
struct position *vmotion (EMACS_INT from, EMACS_INT vtarget,
|
||||
struct window *);
|
||||
EMACS_INT skip_invisible (EMACS_INT pos, EMACS_INT *next_boundary_p,
|
||||
EMACS_INT to, Lisp_Object window);
|
||||
|
||||
/* Value of point when current_column was called */
|
||||
extern EMACS_INT last_known_column_point;
|
||||
|
@ -68,12 +68,12 @@ extern EMACS_INT last_known_column_point;
|
|||
/* Return true if the display table DISPTAB specifies the same widths
|
||||
for characters as WIDTHTAB. We use this to decide when to
|
||||
invalidate the buffer's column_cache. */
|
||||
int disptab_matches_widthtab P_ ((struct Lisp_Char_Table *disptab,
|
||||
struct Lisp_Vector *widthtab));
|
||||
int disptab_matches_widthtab (struct Lisp_Char_Table *disptab,
|
||||
struct Lisp_Vector *widthtab);
|
||||
|
||||
/* Recompute BUF's width table, using the display table DISPTAB. */
|
||||
void recompute_width_table P_ ((struct buffer *buf,
|
||||
struct Lisp_Char_Table *disptab));
|
||||
void recompute_width_table (struct buffer *buf,
|
||||
struct Lisp_Char_Table *disptab);
|
||||
|
||||
|
||||
/* arch-tag: f9feb373-5bff-4f4f-9198-94805d00cfd7
|
||||
|
|
114
src/intervals.h
114
src/intervals.h
|
@ -243,49 +243,49 @@ struct interval
|
|||
|
||||
/* Declared in alloc.c */
|
||||
|
||||
extern INTERVAL make_interval P_ ((void));
|
||||
extern INTERVAL make_interval (void);
|
||||
|
||||
/* Declared in intervals.c */
|
||||
|
||||
extern INTERVAL create_root_interval P_ ((Lisp_Object));
|
||||
extern void copy_properties P_ ((INTERVAL, INTERVAL));
|
||||
extern int intervals_equal P_ ((INTERVAL, INTERVAL));
|
||||
extern void traverse_intervals P_ ((INTERVAL, int,
|
||||
void (*) (INTERVAL, Lisp_Object),
|
||||
Lisp_Object));
|
||||
extern void traverse_intervals_noorder P_ ((INTERVAL,
|
||||
void (*) (INTERVAL, Lisp_Object),
|
||||
Lisp_Object));
|
||||
extern INTERVAL split_interval_right P_ ((INTERVAL, int));
|
||||
extern INTERVAL split_interval_left P_ ((INTERVAL, int));
|
||||
extern INTERVAL find_interval P_ ((INTERVAL, int));
|
||||
extern INTERVAL next_interval P_ ((INTERVAL));
|
||||
extern INTERVAL previous_interval P_ ((INTERVAL));
|
||||
extern INTERVAL merge_interval_left P_ ((INTERVAL));
|
||||
extern INTERVAL merge_interval_right P_ ((INTERVAL));
|
||||
extern void delete_interval P_ ((INTERVAL));
|
||||
extern INLINE void offset_intervals P_ ((struct buffer *, int, int));
|
||||
extern void graft_intervals_into_buffer P_ ((INTERVAL, int, int,
|
||||
struct buffer *, int));
|
||||
extern void verify_interval_modification P_ ((struct buffer *, int, int));
|
||||
extern INTERVAL balance_intervals P_ ((INTERVAL));
|
||||
extern INLINE void copy_intervals_to_string P_ ((Lisp_Object, struct buffer *,
|
||||
int, int));
|
||||
extern INTERVAL copy_intervals P_ ((INTERVAL, int, int));
|
||||
extern int compare_string_intervals P_ ((Lisp_Object, Lisp_Object));
|
||||
extern Lisp_Object textget P_ ((Lisp_Object, Lisp_Object));
|
||||
extern Lisp_Object lookup_char_property P_ ((Lisp_Object, Lisp_Object, int));
|
||||
extern void move_if_not_intangible P_ ((int));
|
||||
extern int get_property_and_range P_ ((int, Lisp_Object, Lisp_Object *,
|
||||
EMACS_INT *, EMACS_INT *, Lisp_Object));
|
||||
extern Lisp_Object get_local_map P_ ((int, struct buffer *, Lisp_Object));
|
||||
extern INTERVAL update_interval P_ ((INTERVAL, int));
|
||||
extern void set_intervals_multibyte P_ ((int));
|
||||
extern INTERVAL validate_interval_range P_ ((Lisp_Object, Lisp_Object *,
|
||||
Lisp_Object *, int));
|
||||
extern INTERVAL create_root_interval (Lisp_Object);
|
||||
extern void copy_properties (INTERVAL, INTERVAL);
|
||||
extern int intervals_equal (INTERVAL, INTERVAL);
|
||||
extern void traverse_intervals (INTERVAL, int,
|
||||
void (*) (INTERVAL, Lisp_Object),
|
||||
Lisp_Object);
|
||||
extern void traverse_intervals_noorder (INTERVAL,
|
||||
void (*) (INTERVAL, Lisp_Object),
|
||||
Lisp_Object);
|
||||
extern INTERVAL split_interval_right (INTERVAL, int);
|
||||
extern INTERVAL split_interval_left (INTERVAL, int);
|
||||
extern INTERVAL find_interval (INTERVAL, int);
|
||||
extern INTERVAL next_interval (INTERVAL);
|
||||
extern INTERVAL previous_interval (INTERVAL);
|
||||
extern INTERVAL merge_interval_left (INTERVAL);
|
||||
extern INTERVAL merge_interval_right (INTERVAL);
|
||||
extern void delete_interval (INTERVAL);
|
||||
extern INLINE void offset_intervals (struct buffer *, int, int);
|
||||
extern void graft_intervals_into_buffer (INTERVAL, int, int,
|
||||
struct buffer *, int);
|
||||
extern void verify_interval_modification (struct buffer *, int, int);
|
||||
extern INTERVAL balance_intervals (INTERVAL);
|
||||
extern INLINE void copy_intervals_to_string (Lisp_Object, struct buffer *,
|
||||
int, int);
|
||||
extern INTERVAL copy_intervals (INTERVAL, int, int);
|
||||
extern int compare_string_intervals (Lisp_Object, Lisp_Object);
|
||||
extern Lisp_Object textget (Lisp_Object, Lisp_Object);
|
||||
extern Lisp_Object lookup_char_property (Lisp_Object, Lisp_Object, int);
|
||||
extern void move_if_not_intangible (int);
|
||||
extern int get_property_and_range (int, Lisp_Object, Lisp_Object *,
|
||||
EMACS_INT *, EMACS_INT *, Lisp_Object);
|
||||
extern Lisp_Object get_local_map (int, struct buffer *, Lisp_Object);
|
||||
extern INTERVAL update_interval (INTERVAL, int);
|
||||
extern void set_intervals_multibyte (int);
|
||||
extern INTERVAL validate_interval_range (Lisp_Object, Lisp_Object *,
|
||||
Lisp_Object *, int);
|
||||
|
||||
/* Defined in xdisp.c */
|
||||
extern int invisible_p P_ ((Lisp_Object, Lisp_Object));
|
||||
extern int invisible_p (Lisp_Object, Lisp_Object);
|
||||
|
||||
/* Declared in textprop.c */
|
||||
|
||||
|
@ -323,27 +323,27 @@ EXFUN (Fremove_text_properties, 4);
|
|||
EXFUN (Ftext_property_any, 5);
|
||||
EXFUN (Ftext_property_not_all, 5);
|
||||
EXFUN (Fprevious_single_char_property_change, 4);
|
||||
extern Lisp_Object copy_text_properties P_ ((Lisp_Object, Lisp_Object,
|
||||
Lisp_Object, Lisp_Object,
|
||||
Lisp_Object, Lisp_Object));
|
||||
extern Lisp_Object set_text_properties P_ ((Lisp_Object, Lisp_Object,
|
||||
Lisp_Object, Lisp_Object,
|
||||
Lisp_Object));
|
||||
extern void set_text_properties_1 P_ ((Lisp_Object, Lisp_Object,
|
||||
Lisp_Object, Lisp_Object, INTERVAL));
|
||||
extern Lisp_Object copy_text_properties (Lisp_Object, Lisp_Object,
|
||||
Lisp_Object, Lisp_Object,
|
||||
Lisp_Object, Lisp_Object);
|
||||
extern Lisp_Object set_text_properties (Lisp_Object, Lisp_Object,
|
||||
Lisp_Object, Lisp_Object,
|
||||
Lisp_Object);
|
||||
extern void set_text_properties_1 (Lisp_Object, Lisp_Object,
|
||||
Lisp_Object, Lisp_Object, INTERVAL);
|
||||
|
||||
Lisp_Object text_property_list P_ ((Lisp_Object, Lisp_Object, Lisp_Object,
|
||||
Lisp_Object));
|
||||
int add_text_properties_from_list P_ ((Lisp_Object, Lisp_Object, Lisp_Object));
|
||||
Lisp_Object extend_property_ranges P_ ((Lisp_Object, Lisp_Object));
|
||||
Lisp_Object get_char_property_and_overlay P_ ((Lisp_Object, Lisp_Object,
|
||||
Lisp_Object, Lisp_Object*));
|
||||
extern int text_property_stickiness P_ ((Lisp_Object prop, Lisp_Object pos,
|
||||
Lisp_Object buffer));
|
||||
extern Lisp_Object get_pos_property P_ ((Lisp_Object pos, Lisp_Object prop,
|
||||
Lisp_Object object));
|
||||
Lisp_Object text_property_list (Lisp_Object, Lisp_Object, Lisp_Object,
|
||||
Lisp_Object);
|
||||
int add_text_properties_from_list (Lisp_Object, Lisp_Object, Lisp_Object);
|
||||
Lisp_Object extend_property_ranges (Lisp_Object, Lisp_Object);
|
||||
Lisp_Object get_char_property_and_overlay (Lisp_Object, Lisp_Object,
|
||||
Lisp_Object, Lisp_Object*);
|
||||
extern int text_property_stickiness (Lisp_Object prop, Lisp_Object pos,
|
||||
Lisp_Object buffer);
|
||||
extern Lisp_Object get_pos_property (Lisp_Object pos, Lisp_Object prop,
|
||||
Lisp_Object object);
|
||||
|
||||
extern void syms_of_textprop P_ ((void));
|
||||
extern void syms_of_textprop (void);
|
||||
|
||||
#include "composite.h"
|
||||
|
||||
|
|
|
@ -300,7 +300,7 @@ enum menu_item_idx
|
|||
MENU_ITEMS_ITEM_LENGTH
|
||||
};
|
||||
|
||||
extern Lisp_Object unuse_menu_items P_ ((Lisp_Object dummy));
|
||||
extern Lisp_Object unuse_menu_items (Lisp_Object dummy);
|
||||
|
||||
/* This is how to deal with multibyte text if HAVE_MULTILINGUAL_MENU
|
||||
isn't defined. The use of HAVE_MULTILINGUAL_MENU could probably be
|
||||
|
@ -366,8 +366,8 @@ typedef struct _widget_value
|
|||
struct _widget_value* next;
|
||||
} widget_value;
|
||||
|
||||
extern widget_value *xmalloc_widget_value P_ ((void));
|
||||
extern widget_value *digest_single_submenu P_ ((int, int, int));
|
||||
extern widget_value *xmalloc_widget_value (void);
|
||||
extern widget_value *digest_single_submenu (int, int, int);
|
||||
#endif /* HAVE_NS || HAVE_NTGUI */
|
||||
|
||||
|
||||
|
@ -430,10 +430,10 @@ extern Lisp_Object Qmode_line, Qvertical_line, Qheader_line;
|
|||
/* Forward declaration for prototypes. */
|
||||
struct input_event;
|
||||
|
||||
extern Lisp_Object parse_modifiers P_ ((Lisp_Object));
|
||||
extern Lisp_Object reorder_modifiers P_ ((Lisp_Object));
|
||||
extern Lisp_Object read_char P_ ((int, int, Lisp_Object *, Lisp_Object,
|
||||
int *, EMACS_TIME *));
|
||||
extern Lisp_Object parse_modifiers (Lisp_Object);
|
||||
extern Lisp_Object reorder_modifiers (Lisp_Object);
|
||||
extern Lisp_Object read_char (int, int, Lisp_Object *, Lisp_Object,
|
||||
int *, EMACS_TIME *);
|
||||
extern int parse_solitary_modifier (Lisp_Object symbol);
|
||||
|
||||
|
||||
|
@ -445,50 +445,50 @@ extern Lisp_Object Vkey_translation_map;
|
|||
|
||||
extern int parse_menu_item (Lisp_Object, int);
|
||||
|
||||
extern void echo_now P_ ((void));
|
||||
extern void init_kboard P_ ((KBOARD *));
|
||||
extern void delete_kboard P_ ((KBOARD *));
|
||||
extern void not_single_kboard_state P_ ((KBOARD *));
|
||||
extern void push_kboard P_ ((struct kboard *));
|
||||
extern void push_frame_kboard P_ ((struct frame *));
|
||||
extern void pop_kboard P_ ((void));
|
||||
extern void temporarily_switch_to_single_kboard P_ ((struct frame *));
|
||||
extern void record_asynch_buffer_change P_ ((void));
|
||||
extern SIGTYPE input_poll_signal P_ ((int));
|
||||
extern void start_polling P_ ((void));
|
||||
extern void stop_polling P_ ((void));
|
||||
extern void set_poll_suppress_count P_ ((int));
|
||||
extern void gobble_input P_ ((int));
|
||||
extern int input_polling_used P_ ((void));
|
||||
extern void clear_input_pending P_ ((void));
|
||||
extern int requeued_events_pending_p P_ ((void));
|
||||
extern void bind_polling_period P_ ((int));
|
||||
extern void stuff_buffered_input P_ ((Lisp_Object));
|
||||
extern void clear_waiting_for_input P_ ((void));
|
||||
extern void swallow_events P_ ((int));
|
||||
extern int help_char_p P_ ((Lisp_Object));
|
||||
extern void quit_throw_to_read_char P_ ((void)) NO_RETURN;
|
||||
extern void cmd_error_internal P_ ((Lisp_Object, char *));
|
||||
extern int lucid_event_type_list_p P_ ((Lisp_Object));
|
||||
extern void kbd_buffer_store_event P_ ((struct input_event *));
|
||||
extern void kbd_buffer_store_event_hold P_ ((struct input_event *,
|
||||
struct input_event *));
|
||||
extern void kbd_buffer_unget_event P_ ((struct input_event *));
|
||||
extern void echo_now (void);
|
||||
extern void init_kboard (KBOARD *);
|
||||
extern void delete_kboard (KBOARD *);
|
||||
extern void not_single_kboard_state (KBOARD *);
|
||||
extern void push_kboard (struct kboard *);
|
||||
extern void push_frame_kboard (struct frame *);
|
||||
extern void pop_kboard (void);
|
||||
extern void temporarily_switch_to_single_kboard (struct frame *);
|
||||
extern void record_asynch_buffer_change (void);
|
||||
extern SIGTYPE input_poll_signal (int);
|
||||
extern void start_polling (void);
|
||||
extern void stop_polling (void);
|
||||
extern void set_poll_suppress_count (int);
|
||||
extern void gobble_input (int);
|
||||
extern int input_polling_used (void);
|
||||
extern void clear_input_pending (void);
|
||||
extern int requeued_events_pending_p (void);
|
||||
extern void bind_polling_period (int);
|
||||
extern void stuff_buffered_input (Lisp_Object);
|
||||
extern void clear_waiting_for_input (void);
|
||||
extern void swallow_events (int);
|
||||
extern int help_char_p (Lisp_Object);
|
||||
extern void quit_throw_to_read_char (void) NO_RETURN;
|
||||
extern void cmd_error_internal (Lisp_Object, char *);
|
||||
extern int lucid_event_type_list_p (Lisp_Object);
|
||||
extern void kbd_buffer_store_event (struct input_event *);
|
||||
extern void kbd_buffer_store_event_hold (struct input_event *,
|
||||
struct input_event *);
|
||||
extern void kbd_buffer_unget_event (struct input_event *);
|
||||
#ifdef POLL_FOR_INPUT
|
||||
extern void poll_for_input_1 P_ ((void));
|
||||
extern void poll_for_input_1 (void);
|
||||
#endif
|
||||
extern void show_help_echo P_ ((Lisp_Object, Lisp_Object, Lisp_Object,
|
||||
Lisp_Object, int));
|
||||
extern void gen_help_event P_ ((Lisp_Object, Lisp_Object, Lisp_Object,
|
||||
Lisp_Object, int));
|
||||
extern void kbd_buffer_store_help_event P_ ((Lisp_Object, Lisp_Object));
|
||||
extern Lisp_Object menu_item_eval_property P_ ((Lisp_Object));
|
||||
extern int kbd_buffer_events_waiting P_ ((int));
|
||||
extern void add_user_signal P_ ((int, const char *));
|
||||
extern void show_help_echo (Lisp_Object, Lisp_Object, Lisp_Object,
|
||||
Lisp_Object, int);
|
||||
extern void gen_help_event (Lisp_Object, Lisp_Object, Lisp_Object,
|
||||
Lisp_Object, int);
|
||||
extern void kbd_buffer_store_help_event (Lisp_Object, Lisp_Object);
|
||||
extern Lisp_Object menu_item_eval_property (Lisp_Object);
|
||||
extern int kbd_buffer_events_waiting (int);
|
||||
extern void add_user_signal (int, const char *);
|
||||
|
||||
extern int tty_read_avail_input P_ ((struct terminal *, int,
|
||||
struct input_event *));
|
||||
extern EMACS_TIME timer_check P_ ((int));
|
||||
extern int tty_read_avail_input (struct terminal *, int,
|
||||
struct input_event *);
|
||||
extern EMACS_TIME timer_check (int);
|
||||
|
||||
/* arch-tag: 769cbade-1ba9-4950-b886-db265b061aa3
|
||||
(do not change this comment) */
|
||||
|
|
24
src/keymap.h
24
src/keymap.h
|
@ -33,21 +33,21 @@ EXFUN (Fkey_description, 2);
|
|||
EXFUN (Fsingle_key_description, 2);
|
||||
EXFUN (Fwhere_is_internal, 5);
|
||||
EXFUN (Fcurrent_active_maps, 2);
|
||||
extern Lisp_Object access_keymap P_ ((Lisp_Object, Lisp_Object, int, int, int));
|
||||
extern Lisp_Object get_keyelt P_ ((Lisp_Object, int));
|
||||
extern Lisp_Object get_keymap P_ ((Lisp_Object, int, int));
|
||||
extern Lisp_Object access_keymap (Lisp_Object, Lisp_Object, int, int, int);
|
||||
extern Lisp_Object get_keyelt (Lisp_Object, int);
|
||||
extern Lisp_Object get_keymap (Lisp_Object, int, int);
|
||||
EXFUN (Fset_keymap_parent, 2);
|
||||
extern void describe_map_tree P_ ((Lisp_Object, int, Lisp_Object, Lisp_Object,
|
||||
char *, int, int, int, int));
|
||||
extern int current_minor_maps P_ ((Lisp_Object **, Lisp_Object **));
|
||||
extern void initial_define_key P_ ((Lisp_Object, int, char *));
|
||||
extern void initial_define_lispy_key P_ ((Lisp_Object, char *, char *));
|
||||
extern void syms_of_keymap P_ ((void));
|
||||
extern void keys_of_keymap P_ ((void));
|
||||
extern void describe_map_tree (Lisp_Object, int, Lisp_Object, Lisp_Object,
|
||||
char *, int, int, int, int);
|
||||
extern int current_minor_maps (Lisp_Object **, Lisp_Object **);
|
||||
extern void initial_define_key (Lisp_Object, int, char *);
|
||||
extern void initial_define_lispy_key (Lisp_Object, char *, char *);
|
||||
extern void syms_of_keymap (void);
|
||||
extern void keys_of_keymap (void);
|
||||
|
||||
typedef void (*map_keymap_function_t)
|
||||
P_ ((Lisp_Object key, Lisp_Object val, Lisp_Object args, void* data));
|
||||
extern void map_keymap P_ ((Lisp_Object map, map_keymap_function_t fun, Lisp_Object largs, void* cargs, int autoload));
|
||||
(Lisp_Object key, Lisp_Object val, Lisp_Object args, void* data);
|
||||
extern void map_keymap (Lisp_Object map, map_keymap_function_t fun, Lisp_Object largs, void* cargs, int autoload);
|
||||
extern void map_keymap_canonical (Lisp_Object map,
|
||||
map_keymap_function_t fun,
|
||||
Lisp_Object args, void *data);
|
||||
|
|
876
src/lisp.h
876
src/lisp.h
File diff suppressed because it is too large
Load diff
|
@ -41,16 +41,16 @@ extern Lisp_Object executing_kbd_macro;
|
|||
|
||||
/* Finish defining the current keyboard macro. */
|
||||
|
||||
extern void end_kbd_macro P_ ((void));
|
||||
extern void end_kbd_macro (void);
|
||||
|
||||
/* Declare that all chars stored so far in the kbd macro being defined
|
||||
really belong to it. This is done in between editor commands. */
|
||||
|
||||
extern void finalize_kbd_macro_chars P_ ((void));
|
||||
extern void finalize_kbd_macro_chars (void);
|
||||
|
||||
/* Store a character into kbd macro being defined */
|
||||
|
||||
extern void store_kbd_macro_char P_ ((Lisp_Object));
|
||||
extern void store_kbd_macro_char (Lisp_Object);
|
||||
|
||||
/* arch-tag: 8edb7088-682f-4d1f-a4d9-0fbb7284234e
|
||||
(do not change this comment) */
|
||||
|
|
20
src/md5.h
20
src/md5.h
|
@ -97,21 +97,21 @@ struct md5_ctx
|
|||
|
||||
/* Initialize structure containing state of computation.
|
||||
(RFC 1321, 3.3: Step 3) */
|
||||
extern void md5_init_ctx __P ((struct md5_ctx *ctx));
|
||||
extern void md5_init_ctx (struct md5_ctx *ctx);
|
||||
|
||||
/* Starting with the result of former calls of this function (or the
|
||||
initialization function update the context for the next LEN bytes
|
||||
starting at BUFFER.
|
||||
It is necessary that LEN is a multiple of 64!!! */
|
||||
extern void md5_process_block __P ((const void *buffer, size_t len,
|
||||
struct md5_ctx *ctx));
|
||||
extern void md5_process_block (const void *buffer, size_t len,
|
||||
struct md5_ctx *ctx);
|
||||
|
||||
/* Starting with the result of former calls of this function (or the
|
||||
initialization function update the context for the next LEN bytes
|
||||
starting at BUFFER.
|
||||
It is NOT required that LEN is a multiple of 64. */
|
||||
extern void md5_process_bytes __P ((const void *buffer, size_t len,
|
||||
struct md5_ctx *ctx));
|
||||
extern void md5_process_bytes (const void *buffer, size_t len,
|
||||
struct md5_ctx *ctx);
|
||||
|
||||
/* Process the remaining bytes in the buffer and put result from CTX
|
||||
in first 16 bytes following RESBUF. The result is always in little
|
||||
|
@ -120,7 +120,7 @@ extern void md5_process_bytes __P ((const void *buffer, size_t len,
|
|||
|
||||
IMPORTANT: On some systems it is required that RESBUF is correctly
|
||||
aligned for a 32 bits value. */
|
||||
extern void *md5_finish_ctx __P ((struct md5_ctx *ctx, void *resbuf));
|
||||
extern void *md5_finish_ctx (struct md5_ctx *ctx, void *resbuf);
|
||||
|
||||
|
||||
/* Put result from CTX in first 16 bytes following RESBUF. The result is
|
||||
|
@ -129,20 +129,20 @@ extern void *md5_finish_ctx __P ((struct md5_ctx *ctx, void *resbuf));
|
|||
|
||||
IMPORTANT: On some systems it is required that RESBUF is correctly
|
||||
aligned for a 32 bits value. */
|
||||
extern void *md5_read_ctx __P ((const struct md5_ctx *ctx, void *resbuf));
|
||||
extern void *md5_read_ctx (const struct md5_ctx *ctx, void *resbuf);
|
||||
|
||||
|
||||
/* Compute MD5 message digest for bytes read from STREAM. The
|
||||
resulting message digest number will be written into the 16 bytes
|
||||
beginning at RESBLOCK. */
|
||||
extern int md5_stream __P ((FILE *stream, void *resblock));
|
||||
extern int md5_stream (FILE *stream, void *resblock);
|
||||
|
||||
/* Compute MD5 message digest for LEN bytes beginning at BUFFER. The
|
||||
result is always in little endian byte order, so that a byte-wise
|
||||
output yields to the wanted ASCII representation of the message
|
||||
digest. */
|
||||
extern void *md5_buffer __P ((const char *buffer, size_t len,
|
||||
void *resblock));
|
||||
extern void *md5_buffer (const char *buffer, size_t len,
|
||||
void *resblock);
|
||||
|
||||
#endif /* md5.h */
|
||||
|
||||
|
|
20
src/menu.h
20
src/menu.h
|
@ -21,17 +21,17 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
|
||||
extern Lisp_Object Vmenu_updating_frame;
|
||||
|
||||
extern void init_menu_items P_ ((void));
|
||||
extern void finish_menu_items P_ ((void));
|
||||
extern void discard_menu_items P_ ((void));
|
||||
extern void save_menu_items P_ ((void));
|
||||
extern int parse_single_submenu P_ ((Lisp_Object, Lisp_Object, Lisp_Object));
|
||||
extern void list_of_panes P_ ((Lisp_Object));
|
||||
extern void init_menu_items (void);
|
||||
extern void finish_menu_items (void);
|
||||
extern void discard_menu_items (void);
|
||||
extern void save_menu_items (void);
|
||||
extern int parse_single_submenu (Lisp_Object, Lisp_Object, Lisp_Object);
|
||||
extern void list_of_panes (Lisp_Object);
|
||||
#if defined (USE_X_TOOLKIT) || defined (USE_GTK) || defined (HAVE_NTGUI)
|
||||
extern void free_menubar_widget_value_tree P_ ((widget_value *));
|
||||
extern void update_submenu_strings P_ ((widget_value *));
|
||||
extern void find_and_call_menu_selection P_ ((FRAME_PTR, int,
|
||||
Lisp_Object, void *));
|
||||
extern void free_menubar_widget_value_tree (widget_value *);
|
||||
extern void update_submenu_strings (widget_value *);
|
||||
extern void find_and_call_menu_selection (FRAME_PTR, int,
|
||||
Lisp_Object, void *);
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_X_WINDOWS
|
||||
|
|
|
@ -70,9 +70,9 @@ struct window;
|
|||
|
||||
/* Defined in xfns.c; emulated on msdos.c */
|
||||
|
||||
extern void x_set_menu_bar_lines P_ ((struct frame *, Lisp_Object, Lisp_Object));
|
||||
extern int x_pixel_width P_ ((struct frame *));
|
||||
extern int x_pixel_height P_ ((struct frame *));
|
||||
extern void x_set_menu_bar_lines (struct frame *, Lisp_Object, Lisp_Object);
|
||||
extern int x_pixel_width (struct frame *);
|
||||
extern int x_pixel_height (struct frame *);
|
||||
|
||||
#define XFreeGC (void)
|
||||
#define x_destroy_bitmap(p1,p2)
|
||||
|
|
|
@ -760,8 +760,8 @@ extern unsigned long ns_get_pixel (void *img, int x, int y);
|
|||
extern void ns_put_pixel (void *img, int x, int y, unsigned long argb);
|
||||
extern void ns_set_alpha (void *img, int x, int y, unsigned char a);
|
||||
|
||||
extern int x_display_pixel_height P_ ((struct ns_display_info *));
|
||||
extern int x_display_pixel_width P_ ((struct ns_display_info *));
|
||||
extern int x_display_pixel_height (struct ns_display_info *);
|
||||
extern int x_display_pixel_width (struct ns_display_info *);
|
||||
|
||||
/* This in nsterm.m */
|
||||
extern unsigned long ns_get_rgb_color (struct frame *f,
|
||||
|
|
|
@ -72,7 +72,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
{ if (PURE_P (obj)) \
|
||||
pure_write_error (); }
|
||||
|
||||
extern void pure_write_error P_ ((void)) NO_RETURN;
|
||||
extern void pure_write_error (void) NO_RETURN;
|
||||
|
||||
/* Define PURE_P. */
|
||||
|
||||
|
|
|
@ -61,17 +61,17 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
|
||||
|
||||
/* Allocate, initialize and return a new, empty region cache. */
|
||||
struct region_cache *new_region_cache P_ ((void));
|
||||
struct region_cache *new_region_cache (void);
|
||||
|
||||
/* Free a region cache. */
|
||||
void free_region_cache P_ ((struct region_cache *));
|
||||
void free_region_cache (struct region_cache *);
|
||||
|
||||
/* Assert that the region of BUF between START and END (absolute
|
||||
buffer positions) is "known," for the purposes of CACHE (e.g. "has
|
||||
no newlines", in the case of the line cache). */
|
||||
extern void know_region_cache P_ ((struct buffer *BUF,
|
||||
struct region_cache *CACHE,
|
||||
int START, int END));
|
||||
extern void know_region_cache (struct buffer *BUF,
|
||||
struct region_cache *CACHE,
|
||||
int START, int END);
|
||||
|
||||
/* Indicate that a section of BUF has changed, to invalidate CACHE.
|
||||
HEAD is the number of chars unchanged at the beginning of the buffer.
|
||||
|
@ -81,9 +81,9 @@ extern void know_region_cache P_ ((struct buffer *BUF,
|
|||
(This way of specifying regions makes more sense than absolute
|
||||
buffer positions in the presence of insertions and deletions; the
|
||||
args to pass are the same before and after such an operation.) */
|
||||
extern void invalidate_region_cache P_ ((struct buffer *BUF,
|
||||
struct region_cache *CACHE,
|
||||
int HEAD, int TAIL));
|
||||
extern void invalidate_region_cache (struct buffer *BUF,
|
||||
struct region_cache *CACHE,
|
||||
int HEAD, int TAIL);
|
||||
|
||||
/* The scanning functions.
|
||||
|
||||
|
@ -97,18 +97,18 @@ extern void invalidate_region_cache P_ ((struct buffer *BUF,
|
|||
/* Return true if the text immediately after POS in BUF is known, for
|
||||
the purposes of CACHE. If NEXT is non-zero, set *NEXT to the nearest
|
||||
position after POS where the knownness changes. */
|
||||
extern int region_cache_forward P_ ((struct buffer *BUF,
|
||||
struct region_cache *CACHE,
|
||||
int POS,
|
||||
int *NEXT));
|
||||
extern int region_cache_forward (struct buffer *BUF,
|
||||
struct region_cache *CACHE,
|
||||
int POS,
|
||||
int *NEXT);
|
||||
|
||||
/* Return true if the text immediately before POS in BUF is known, for
|
||||
the purposes of CACHE. If NEXT is non-zero, set *NEXT to the nearest
|
||||
position before POS where the knownness changes. */
|
||||
extern int region_cache_backward P_ ((struct buffer *BUF,
|
||||
struct region_cache *CACHE,
|
||||
int POS,
|
||||
int *NEXT));
|
||||
extern int region_cache_backward (struct buffer *BUF,
|
||||
struct region_cache *CACHE,
|
||||
int POS,
|
||||
int *NEXT);
|
||||
|
||||
/* arch-tag: 70f79125-ef22-4f58-9aec-a48ca2791435
|
||||
(do not change this comment) */
|
||||
|
|
|
@ -19,7 +19,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
|
||||
|
||||
extern Lisp_Object Qsyntax_table_p;
|
||||
extern void update_syntax_table P_ ((int, int, int, Lisp_Object));
|
||||
extern void update_syntax_table (int, int, int, Lisp_Object);
|
||||
|
||||
/* The standard syntax table is stored where it will automatically
|
||||
be used in all new buffers. */
|
||||
|
@ -346,9 +346,9 @@ struct gl_state_s
|
|||
|
||||
extern struct gl_state_s gl_state;
|
||||
extern int parse_sexp_lookup_properties;
|
||||
extern INTERVAL interval_of P_ ((int, Lisp_Object));
|
||||
extern INTERVAL interval_of (int, Lisp_Object);
|
||||
|
||||
extern int scan_words P_ ((int, int));
|
||||
extern int scan_words (int, int);
|
||||
|
||||
/* arch-tag: 28833cca-cd73-4741-8c85-a3111166a0e0
|
||||
(do not change this comment) */
|
||||
|
|
|
@ -17,7 +17,7 @@ GNU General Public License for more details.
|
|||
You should have received a copy of the GNU General Public License
|
||||
along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
extern void init_signals P_ ((void));
|
||||
extern void init_signals (void);
|
||||
|
||||
#if defined (HAVE_GTK_AND_PTHREAD) || defined (HAVE_NS)
|
||||
#include <pthread.h>
|
||||
|
@ -78,10 +78,10 @@ extern sigset_t sys_sigmask ();
|
|||
appears to be assumed in the source, for example data.c:arith_error. */
|
||||
typedef RETSIGTYPE (*signal_handler_t) (/*int*/);
|
||||
|
||||
signal_handler_t sys_signal P_ ((int signal_number, signal_handler_t action));
|
||||
sigset_t sys_sigblock P_ ((sigset_t new_mask));
|
||||
sigset_t sys_sigunblock P_ ((sigset_t new_mask));
|
||||
sigset_t sys_sigsetmask P_ ((sigset_t new_mask));
|
||||
signal_handler_t sys_signal (int signal_number, signal_handler_t action);
|
||||
sigset_t sys_sigblock (sigset_t new_mask);
|
||||
sigset_t sys_sigunblock (sigset_t new_mask);
|
||||
sigset_t sys_sigsetmask (sigset_t new_mask);
|
||||
|
||||
#define sys_sigdel(MASK,SIG) sigdelset (&MASK,SIG)
|
||||
|
||||
|
|
|
@ -136,17 +136,17 @@ extern time_t timezone;
|
|||
#define EMACS_SET_SECS_USECS(time, secs, usecs) \
|
||||
(EMACS_SET_SECS (time, secs), EMACS_SET_USECS (time, usecs))
|
||||
|
||||
extern int set_file_times __P ((const char *, EMACS_TIME, EMACS_TIME));
|
||||
extern int set_file_times (const char *, EMACS_TIME, EMACS_TIME);
|
||||
|
||||
/* defined in keyboard.c */
|
||||
extern void set_waiting_for_input __P ((EMACS_TIME *));
|
||||
extern void set_waiting_for_input (EMACS_TIME *);
|
||||
|
||||
/* When lisp.h is not included Lisp_Object is not defined (this can
|
||||
happen when this files is used outside the src directory).
|
||||
Use GCPRO1 to determine if lisp.h was included. */
|
||||
#ifdef GCPRO1
|
||||
/* defined in dired.c */
|
||||
extern Lisp_Object make_time __P ((time_t));
|
||||
extern Lisp_Object make_time (time_t);
|
||||
#endif
|
||||
|
||||
/* Compare times T1 and T2. Value is 0 if T1 and T2 are the same.
|
||||
|
|
|
@ -39,7 +39,7 @@ enum scroll_bar_part {
|
|||
/* If the value of the frame parameter changed, whis hook is called.
|
||||
For example, if going from fullscreen to not fullscreen this hook
|
||||
may do something OS dependent, like extended window manager hints on X11. */
|
||||
extern void (*fullscreen_hook) P_ ((struct frame *f));
|
||||
extern void (*fullscreen_hook) (struct frame *f);
|
||||
|
||||
|
||||
/* Input queue declarations and hooks. */
|
||||
|
@ -415,28 +415,28 @@ struct terminal
|
|||
|
||||
/* Text display hooks. */
|
||||
|
||||
void (*cursor_to_hook) P_ ((struct frame *f, int vpos, int hpos));
|
||||
void (*raw_cursor_to_hook) P_ ((struct frame *, int, int));
|
||||
void (*cursor_to_hook) (struct frame *f, int vpos, int hpos);
|
||||
void (*raw_cursor_to_hook) (struct frame *, int, int);
|
||||
|
||||
void (*clear_to_end_hook) P_ ((struct frame *));
|
||||
void (*clear_frame_hook) P_ ((struct frame *));
|
||||
void (*clear_end_of_line_hook) P_ ((struct frame *, int));
|
||||
void (*clear_to_end_hook) (struct frame *);
|
||||
void (*clear_frame_hook) (struct frame *);
|
||||
void (*clear_end_of_line_hook) (struct frame *, int);
|
||||
|
||||
void (*ins_del_lines_hook) P_ ((struct frame *f, int, int));
|
||||
void (*ins_del_lines_hook) (struct frame *f, int, int);
|
||||
|
||||
void (*insert_glyphs_hook) P_ ((struct frame *f, struct glyph *s, int n));
|
||||
void (*write_glyphs_hook) P_ ((struct frame *f, struct glyph *s, int n));
|
||||
void (*delete_glyphs_hook) P_ ((struct frame *, int));
|
||||
void (*insert_glyphs_hook) (struct frame *f, struct glyph *s, int n);
|
||||
void (*write_glyphs_hook) (struct frame *f, struct glyph *s, int n);
|
||||
void (*delete_glyphs_hook) (struct frame *, int);
|
||||
|
||||
void (*ring_bell_hook) P_ ((struct frame *f));
|
||||
void (*toggle_invisible_pointer_hook) P_ ((struct frame *f, int invisible));
|
||||
void (*ring_bell_hook) (struct frame *f);
|
||||
void (*toggle_invisible_pointer_hook) (struct frame *f, int invisible);
|
||||
|
||||
void (*reset_terminal_modes_hook) P_ ((struct terminal *));
|
||||
void (*set_terminal_modes_hook) P_ ((struct terminal *));
|
||||
void (*reset_terminal_modes_hook) (struct terminal *);
|
||||
void (*set_terminal_modes_hook) (struct terminal *);
|
||||
|
||||
void (*update_begin_hook) P_ ((struct frame *));
|
||||
void (*update_end_hook) P_ ((struct frame *));
|
||||
void (*set_terminal_window_hook) P_ ((struct frame *, int));
|
||||
void (*update_begin_hook) (struct frame *);
|
||||
void (*update_end_hook) (struct frame *);
|
||||
void (*set_terminal_window_hook) (struct frame *, int);
|
||||
|
||||
/* Multi-frame and mouse support hooks. */
|
||||
|
||||
|
@ -458,12 +458,12 @@ struct terminal
|
|||
|
||||
This should clear mouse_moved until the next motion
|
||||
event arrives. */
|
||||
void (*mouse_position_hook) P_ ((struct frame **f, int,
|
||||
Lisp_Object *bar_window,
|
||||
enum scroll_bar_part *part,
|
||||
Lisp_Object *x,
|
||||
Lisp_Object *y,
|
||||
unsigned long *time));
|
||||
void (*mouse_position_hook) (struct frame **f, int,
|
||||
Lisp_Object *bar_window,
|
||||
enum scroll_bar_part *part,
|
||||
Lisp_Object *x,
|
||||
Lisp_Object *y,
|
||||
unsigned long *time);
|
||||
|
||||
/* The window system handling code should set this if the mouse has
|
||||
moved since the last call to the mouse_position_hook. Calling that
|
||||
|
@ -473,7 +473,7 @@ struct terminal
|
|||
/* When a frame's focus redirection is changed, this hook tells the
|
||||
window system code to re-decide where to put the highlight. Under
|
||||
X, this means that Emacs lies about where the focus is. */
|
||||
void (*frame_rehighlight_hook) P_ ((struct frame *));
|
||||
void (*frame_rehighlight_hook) (struct frame *);
|
||||
|
||||
/* If we're displaying frames using a window system that can stack
|
||||
frames on top of each other, this hook allows you to bring a frame
|
||||
|
@ -485,12 +485,12 @@ struct terminal
|
|||
If RAISE is non-zero, F is brought to the front, before all other
|
||||
windows. If RAISE is zero, F is sent to the back, behind all other
|
||||
windows. */
|
||||
void (*frame_raise_lower_hook) P_ ((struct frame *f, int raise));
|
||||
void (*frame_raise_lower_hook) (struct frame *f, int raise);
|
||||
|
||||
/* If the value of the frame parameter changed, whis hook is called.
|
||||
For example, if going from fullscreen to not fullscreen this hook
|
||||
may do something OS dependent, like extended window manager hints on X11. */
|
||||
void (*fullscreen_hook) P_ ((struct frame *f));
|
||||
void (*fullscreen_hook) (struct frame *f);
|
||||
|
||||
|
||||
/* Scroll bar hooks. */
|
||||
|
@ -520,9 +520,9 @@ struct terminal
|
|||
indicate that we are displaying PORTION characters out of a total
|
||||
of WHOLE characters, starting at POSITION. If WINDOW doesn't yet
|
||||
have a scroll bar, create one for it. */
|
||||
void (*set_vertical_scroll_bar_hook) P_ ((struct window *window,
|
||||
int portion, int whole,
|
||||
int position));
|
||||
void (*set_vertical_scroll_bar_hook) (struct window *window,
|
||||
int portion, int whole,
|
||||
int position);
|
||||
|
||||
|
||||
/* The following three hooks are used when we're doing a thorough
|
||||
|
@ -545,11 +545,11 @@ struct terminal
|
|||
If non-zero, this hook should be safe to apply to any frame,
|
||||
whether or not it can support scroll bars, and whether or not it is
|
||||
currently displaying them. */
|
||||
void (*condemn_scroll_bars_hook) P_ ((struct frame *frame));
|
||||
void (*condemn_scroll_bars_hook) (struct frame *frame);
|
||||
|
||||
/* Unmark WINDOW's scroll bar for deletion in this judgement cycle.
|
||||
Note that it's okay to redeem a scroll bar that is not condemned. */
|
||||
void (*redeem_scroll_bar_hook) P_ ((struct window *window));
|
||||
void (*redeem_scroll_bar_hook) (struct window *window);
|
||||
|
||||
/* Remove all scroll bars on FRAME that haven't been saved since the
|
||||
last call to `*condemn_scroll_bars_hook'.
|
||||
|
@ -562,7 +562,7 @@ struct terminal
|
|||
If non-zero, this hook should be safe to apply to any frame,
|
||||
whether or not it can support scroll bars, and whether or not it is
|
||||
currently displaying them. */
|
||||
void (*judge_scroll_bars_hook) P_ ((struct frame *FRAME));
|
||||
void (*judge_scroll_bars_hook) (struct frame *FRAME);
|
||||
|
||||
|
||||
/* Called to read input events.
|
||||
|
@ -584,17 +584,17 @@ struct terminal
|
|||
Therefore, in most cases EXPECTED should be simply ignored.
|
||||
|
||||
XXX This documentation needs to be updated. */
|
||||
int (*read_socket_hook) P_ ((struct terminal *terminal,
|
||||
int expected,
|
||||
struct input_event *hold_quit));
|
||||
int (*read_socket_hook) (struct terminal *terminal,
|
||||
int expected,
|
||||
struct input_event *hold_quit);
|
||||
|
||||
/* Called when a frame's display becomes entirely up to date. */
|
||||
void (*frame_up_to_date_hook) P_ ((struct frame *));
|
||||
void (*frame_up_to_date_hook) (struct frame *);
|
||||
|
||||
|
||||
/* Called to delete the device-specific portions of a frame that is
|
||||
on this terminal device. */
|
||||
void (*delete_frame_hook) P_ ((struct frame *));
|
||||
void (*delete_frame_hook) (struct frame *);
|
||||
|
||||
/* Called after the last frame on this terminal is deleted, or when
|
||||
the display device was closed (hangup).
|
||||
|
@ -606,7 +606,7 @@ struct terminal
|
|||
on the terminal. delete_frame ensures that there are no live
|
||||
frames on the terminal when it calls this hook, so infinite
|
||||
recursion is prevented. */
|
||||
void (*delete_terminal_hook) P_ ((struct terminal *));
|
||||
void (*delete_terminal_hook) (struct terminal *);
|
||||
};
|
||||
|
||||
|
||||
|
@ -647,10 +647,10 @@ extern struct terminal *terminal_list;
|
|||
/* Return true if the terminal device is not suspended. */
|
||||
#define TERMINAL_ACTIVE_P(d) (((d)->type != output_termcap && (d)->type !=output_msdos_raw) || (d)->display_info.tty->input)
|
||||
|
||||
extern Lisp_Object get_terminal_param P_ ((struct terminal *, Lisp_Object));
|
||||
extern struct terminal *get_terminal P_ ((Lisp_Object terminal, int));
|
||||
extern struct terminal *create_terminal P_ ((void));
|
||||
extern void delete_terminal P_ ((struct terminal *));
|
||||
extern Lisp_Object get_terminal_param (struct terminal *, Lisp_Object);
|
||||
extern struct terminal *get_terminal (Lisp_Object terminal, int);
|
||||
extern struct terminal *create_terminal (void);
|
||||
extern void delete_terminal (struct terminal *);
|
||||
|
||||
/* The initial terminal device, created by initial_term_init. */
|
||||
extern struct terminal *initial_terminal;
|
||||
|
|
|
@ -228,14 +228,14 @@ extern Lisp_Object Vx_pixel_size_width_font_regexp;
|
|||
|
||||
struct w32_display_info *x_display_info_for_name ();
|
||||
|
||||
Lisp_Object display_x_get_resource P_ ((struct w32_display_info *,
|
||||
Lisp_Object, Lisp_Object,
|
||||
Lisp_Object, Lisp_Object));
|
||||
Lisp_Object display_x_get_resource (struct w32_display_info *,
|
||||
Lisp_Object, Lisp_Object,
|
||||
Lisp_Object, Lisp_Object);
|
||||
|
||||
extern struct w32_display_info *w32_term_init ();
|
||||
|
||||
extern int x_display_pixel_height P_ ((struct w32_display_info *));
|
||||
extern int x_display_pixel_width P_ ((struct w32_display_info *));
|
||||
extern int x_display_pixel_height (struct w32_display_info *);
|
||||
extern int x_display_pixel_width (struct w32_display_info *);
|
||||
|
||||
|
||||
#define PIX_TYPE COLORREF
|
||||
|
|
|
@ -94,8 +94,8 @@ extern WidgetClass emacsFrameClass;
|
|||
extern struct _DisplayContext* display_context;
|
||||
|
||||
/* Special entrypoints */
|
||||
void EmacsFrameSetCharSize P_ ((Widget, int, int));
|
||||
void widget_store_internal_border P_ ((Widget widget));
|
||||
void EmacsFrameSetCharSize (Widget, int, int);
|
||||
void widget_store_internal_border (Widget widget);
|
||||
|
||||
#endif /* _EmacsFrame_h */
|
||||
|
||||
|
|
64
src/window.h
64
src/window.h
|
@ -785,25 +785,25 @@ EXFUN (Fwindow_vscroll, 2);
|
|||
EXFUN (Fset_window_margins, 3);
|
||||
EXFUN (Fwindow_live_p, 1);
|
||||
EXFUN (Fset_window_point, 2);
|
||||
extern Lisp_Object make_window P_ ((void));
|
||||
extern void delete_window P_ ((Lisp_Object));
|
||||
extern Lisp_Object window_from_coordinates P_ ((struct frame *, int, int,
|
||||
enum window_part *,
|
||||
int *, int*, int));
|
||||
extern Lisp_Object make_window (void);
|
||||
extern void delete_window (Lisp_Object);
|
||||
extern Lisp_Object window_from_coordinates (struct frame *, int, int,
|
||||
enum window_part *,
|
||||
int *, int*, int);
|
||||
EXFUN (Fwindow_dedicated_p, 1);
|
||||
extern int window_height P_ ((Lisp_Object));
|
||||
extern int window_width P_ ((Lisp_Object));
|
||||
extern int window_height (Lisp_Object);
|
||||
extern int window_width (Lisp_Object);
|
||||
EXFUN (Fwindow_full_width_p, 1);
|
||||
extern void set_window_height P_ ((Lisp_Object, int, int));
|
||||
extern void set_window_width P_ ((Lisp_Object, int, int));
|
||||
extern void change_window_heights P_ ((Lisp_Object, int));
|
||||
extern void delete_all_subwindows P_ ((struct window *));
|
||||
extern void freeze_window_starts P_ ((struct frame *, int));
|
||||
extern void foreach_window P_ ((struct frame *,
|
||||
int (* fn) (struct window *, void *),
|
||||
void *));
|
||||
extern void grow_mini_window P_ ((struct window *, int));
|
||||
extern void shrink_mini_window P_ ((struct window *));
|
||||
extern void set_window_height (Lisp_Object, int, int);
|
||||
extern void set_window_width (Lisp_Object, int, int);
|
||||
extern void change_window_heights (Lisp_Object, int);
|
||||
extern void delete_all_subwindows (struct window *);
|
||||
extern void freeze_window_starts (struct frame *, int);
|
||||
extern void foreach_window (struct frame *,
|
||||
int (* fn) (struct window *, void *),
|
||||
void *);
|
||||
extern void grow_mini_window (struct window *, int);
|
||||
extern void shrink_mini_window (struct window *);
|
||||
|
||||
void run_window_configuration_change_hook (struct frame *f);
|
||||
|
||||
|
@ -811,8 +811,8 @@ void run_window_configuration_change_hook (struct frame *f);
|
|||
means it's allowed to run hooks. See make_frame for a case where
|
||||
it's not allowed. */
|
||||
|
||||
void set_window_buffer P_ ((Lisp_Object window, Lisp_Object buffer,
|
||||
int run_hooks_p, int keep_margins_p));
|
||||
void set_window_buffer (Lisp_Object window, Lisp_Object buffer,
|
||||
int run_hooks_p, int keep_margins_p);
|
||||
|
||||
/* Prompt to display in front of the minibuffer contents. */
|
||||
|
||||
|
@ -862,13 +862,13 @@ extern int buffer_shared;
|
|||
/* If *ROWS or *COLS are too small a size for FRAME, set them to the
|
||||
minimum allowable size. */
|
||||
|
||||
extern void check_frame_size P_ ((struct frame *frame, int *rows, int *cols));
|
||||
extern void check_frame_size (struct frame *frame, int *rows, int *cols);
|
||||
|
||||
/* Return a pointer to the glyph W's physical cursor is on. Value is
|
||||
null if W's current matrix is invalid, so that no meaningfull glyph
|
||||
can be returned. */
|
||||
|
||||
struct glyph *get_phys_cursor_glyph P_ ((struct window *w));
|
||||
struct glyph *get_phys_cursor_glyph (struct window *w);
|
||||
|
||||
/* Value is non-zero if WINDOW is a live window. */
|
||||
|
||||
|
@ -891,24 +891,24 @@ EXFUN (Fsave_window_excursion, UNEVALLED);
|
|||
EXFUN (Fsplit_window, 3);
|
||||
EXFUN (Fset_window_configuration, 1);
|
||||
EXFUN (Fcurrent_window_configuration, 1);
|
||||
extern int compare_window_configurations P_ ((Lisp_Object, Lisp_Object, int));
|
||||
extern int compare_window_configurations (Lisp_Object, Lisp_Object, int);
|
||||
EXFUN (Fcoordinates_in_window_p, 2);
|
||||
EXFUN (Fwindow_at, 3);
|
||||
EXFUN (Fpos_visible_in_window_p, 3);
|
||||
extern void mark_window_cursors_off P_ ((struct window *));
|
||||
extern int window_internal_height P_ ((struct window *));
|
||||
extern int window_internal_width P_ ((struct window *));
|
||||
extern void mark_window_cursors_off (struct window *);
|
||||
extern int window_internal_height (struct window *);
|
||||
extern int window_internal_width (struct window *);
|
||||
EXFUN (Frecenter, 1);
|
||||
EXFUN (Fscroll_other_window, 1);
|
||||
EXFUN (Fset_window_start, 3);
|
||||
extern void temp_output_buffer_show P_ ((Lisp_Object));
|
||||
extern void replace_buffer_in_all_windows P_ ((Lisp_Object));
|
||||
extern void init_window_once P_ ((void));
|
||||
extern void init_window P_ ((void));
|
||||
extern void syms_of_window P_ ((void));
|
||||
extern void keys_of_window P_ ((void));
|
||||
extern void temp_output_buffer_show (Lisp_Object);
|
||||
extern void replace_buffer_in_all_windows (Lisp_Object);
|
||||
extern void init_window_once (void);
|
||||
extern void init_window (void);
|
||||
extern void syms_of_window (void);
|
||||
extern void keys_of_window (void);
|
||||
|
||||
extern int window_box_text_cols P_ ((struct window *w));
|
||||
extern int window_box_text_cols (struct window *w);
|
||||
|
||||
#endif /* not WINDOW_H_INCLUDED */
|
||||
|
||||
|
|
|
@ -24,13 +24,13 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
|
|||
#include "systime.h"
|
||||
#include "sysselect.h"
|
||||
|
||||
extern int xg_select P_ ((int max_fds,
|
||||
SELECT_TYPE *rfds,
|
||||
SELECT_TYPE *wfds,
|
||||
SELECT_TYPE *efds,
|
||||
EMACS_TIME *timeout));
|
||||
extern int xg_select (int max_fds,
|
||||
SELECT_TYPE *rfds,
|
||||
SELECT_TYPE *wfds,
|
||||
SELECT_TYPE *efds,
|
||||
EMACS_TIME *timeout);
|
||||
|
||||
extern void xgselect_initialize P_ ((void));
|
||||
extern void xgselect_initialize (void);
|
||||
|
||||
#endif /* XGSELECT_H */
|
||||
|
||||
|
|
|
@ -24,11 +24,11 @@ EXFUN (Ffont_get_system_font, 0);
|
|||
EXFUN (Ffont_get_system_normal_font, 0);
|
||||
EXFUN (Ftool_bar_get_system_style, 0);
|
||||
|
||||
extern void xsettings_initialize P_ ((struct x_display_info *dpyinfo));
|
||||
extern void xft_settings_event P_ ((struct x_display_info *dpyinfo,
|
||||
XEvent *));
|
||||
extern const char *xsettings_get_system_font P_ ((void));
|
||||
extern const char *xsettings_get_system_normal_font P_ ((void));
|
||||
extern void xsettings_initialize (struct x_display_info *dpyinfo);
|
||||
extern void xft_settings_event (struct x_display_info *dpyinfo,
|
||||
XEvent *);
|
||||
extern const char *xsettings_get_system_font (void);
|
||||
extern const char *xsettings_get_system_normal_font (void);
|
||||
|
||||
|
||||
#endif /* XSETTINGS_H */
|
||||
|
|
268
src/xterm.h
268
src/xterm.h
|
@ -378,13 +378,13 @@ extern int use_xim;
|
|||
#endif
|
||||
|
||||
/* This checks to make sure we have a display. */
|
||||
extern void check_x P_ ((void));
|
||||
extern void check_x (void);
|
||||
|
||||
extern struct frame *x_window_to_frame P_ ((struct x_display_info *, int));
|
||||
extern struct frame *x_window_to_frame (struct x_display_info *, int);
|
||||
|
||||
extern struct frame *x_any_window_to_frame P_ ((struct x_display_info *, int));
|
||||
extern struct frame *x_menubar_window_to_frame P_ ((struct x_display_info *, int));
|
||||
extern struct frame *x_top_window_to_frame P_ ((struct x_display_info *, int));
|
||||
extern struct frame *x_any_window_to_frame (struct x_display_info *, int);
|
||||
extern struct frame *x_menubar_window_to_frame (struct x_display_info *, int);
|
||||
extern struct frame *x_top_window_to_frame (struct x_display_info *, int);
|
||||
|
||||
#if ! defined (USE_X_TOOLKIT) && ! defined (USE_GTK)
|
||||
#define x_any_window_to_frame x_window_to_frame
|
||||
|
@ -403,14 +403,14 @@ extern Lisp_Object x_display_name_list;
|
|||
/* Regexp matching a font name whose width is the same as `PIXEL_SIZE'. */
|
||||
extern Lisp_Object Vx_pixel_size_width_font_regexp;
|
||||
|
||||
extern struct x_display_info *x_display_info_for_display P_ ((Display *));
|
||||
extern struct x_display_info *x_display_info_for_name P_ ((Lisp_Object));
|
||||
extern void x_set_frame_alpha P_ ((struct frame *));
|
||||
extern struct x_display_info *x_display_info_for_display (Display *);
|
||||
extern struct x_display_info *x_display_info_for_name (Lisp_Object);
|
||||
extern void x_set_frame_alpha (struct frame *);
|
||||
|
||||
extern struct x_display_info *x_term_init P_ ((Lisp_Object, char *, char *));
|
||||
extern int x_display_ok P_ ((const char *));
|
||||
extern struct x_display_info *x_term_init (Lisp_Object, char *, char *);
|
||||
extern int x_display_ok (const char *);
|
||||
|
||||
extern void select_visual P_ ((struct x_display_info *));
|
||||
extern void select_visual (struct x_display_info *);
|
||||
|
||||
|
||||
struct font;
|
||||
|
@ -915,168 +915,168 @@ struct image;
|
|||
|
||||
/* From xselect.c. */
|
||||
|
||||
void x_handle_selection_notify P_ ((XSelectionEvent *));
|
||||
void x_handle_property_notify P_ ((XPropertyEvent *));
|
||||
void x_handle_selection_notify (XSelectionEvent *);
|
||||
void x_handle_property_notify (XPropertyEvent *);
|
||||
|
||||
/* From xfns.c. */
|
||||
|
||||
Lisp_Object display_x_get_resource P_ ((struct x_display_info *,
|
||||
Lisp_Object, Lisp_Object,
|
||||
Lisp_Object, Lisp_Object));
|
||||
struct frame *check_x_frame P_ ((Lisp_Object));
|
||||
Lisp_Object display_x_get_resource (struct x_display_info *,
|
||||
Lisp_Object, Lisp_Object,
|
||||
Lisp_Object, Lisp_Object);
|
||||
struct frame *check_x_frame (Lisp_Object);
|
||||
EXFUN (Fx_display_color_p, 1);
|
||||
EXFUN (Fx_display_grayscale_p, 1);
|
||||
extern void x_free_gcs P_ ((struct frame *));
|
||||
extern void x_free_gcs (struct frame *);
|
||||
|
||||
/* From xrdb.c. */
|
||||
|
||||
char *x_get_customization_string P_ ((XrmDatabase, char *, char *));
|
||||
XrmDatabase x_load_resources P_ ((Display *, char *, char *, char *));
|
||||
int x_get_resource P_ ((XrmDatabase, char *, char *,
|
||||
XrmRepresentation, XrmValue *));
|
||||
void x_delete_display P_ ((struct x_display_info *));
|
||||
void x_make_frame_visible P_ ((struct frame *));
|
||||
void x_iconify_frame P_ ((struct frame *));
|
||||
void x_wm_set_size_hint P_ ((struct frame *, long, int));
|
||||
int x_text_icon P_ ((struct frame *, char *));
|
||||
int x_bitmap_icon P_ ((struct frame *, Lisp_Object));
|
||||
void x_set_window_size P_ ((struct frame *, int, int, int));
|
||||
void x_wm_set_window_state P_ ((struct frame *, int));
|
||||
int x_alloc_nearest_color P_ ((struct frame *, Colormap, XColor *));
|
||||
char *x_get_customization_string (XrmDatabase, char *, char *);
|
||||
XrmDatabase x_load_resources (Display *, char *, char *, char *);
|
||||
int x_get_resource (XrmDatabase, char *, char *,
|
||||
XrmRepresentation, XrmValue *);
|
||||
void x_delete_display (struct x_display_info *);
|
||||
void x_make_frame_visible (struct frame *);
|
||||
void x_iconify_frame (struct frame *);
|
||||
void x_wm_set_size_hint (struct frame *, long, int);
|
||||
int x_text_icon (struct frame *, char *);
|
||||
int x_bitmap_icon (struct frame *, Lisp_Object);
|
||||
void x_set_window_size (struct frame *, int, int, int);
|
||||
void x_wm_set_window_state (struct frame *, int);
|
||||
int x_alloc_nearest_color (struct frame *, Colormap, XColor *);
|
||||
|
||||
/* Defined in xterm.c */
|
||||
|
||||
extern void cancel_mouse_face P_ ((struct frame *));
|
||||
extern void x_scroll_bar_clear P_ ((struct frame *));
|
||||
extern int x_text_icon P_ ((struct frame *, char *));
|
||||
extern int x_bitmap_icon P_ ((struct frame *, Lisp_Object));
|
||||
extern void x_catch_errors P_ ((Display *));
|
||||
extern void x_check_errors P_ ((Display *, char *));
|
||||
extern int x_had_errors_p P_ ((Display *));
|
||||
extern int x_catching_errors P_ ((void));
|
||||
extern void x_uncatch_errors P_ ((void));
|
||||
extern void x_clear_errors P_ ((Display *));
|
||||
extern void x_set_window_size P_ ((struct frame *, int, int, int));
|
||||
extern void x_set_mouse_position P_ ((struct frame *, int, int));
|
||||
extern void x_set_mouse_pixel_position P_ ((struct frame *, int, int));
|
||||
extern void x_ewmh_activate_frame P_ ((struct frame *));
|
||||
extern void x_raise_frame P_ ((struct frame *));
|
||||
extern void x_lower_frame P_ ((struct frame *));
|
||||
extern void x_make_frame_visible P_ ((struct frame *));
|
||||
extern void x_make_frame_invisible P_ ((struct frame *));
|
||||
extern void x_iconify_frame P_ ((struct frame *));
|
||||
extern void x_free_frame_resources P_ ((struct frame *));
|
||||
extern void x_destroy_window P_ ((struct frame *));
|
||||
extern void x_wm_set_size_hint P_ ((struct frame *, long, int));
|
||||
extern void x_wm_set_window_state P_ ((struct frame *, int));
|
||||
extern void x_wm_set_icon_pixmap P_ ((struct frame *, int));
|
||||
extern void x_delete_display P_ ((struct x_display_info *));
|
||||
extern void x_delete_terminal P_ ((struct terminal *terminal));
|
||||
extern void x_initialize P_ ((void));
|
||||
extern unsigned long x_copy_color P_ ((struct frame *, unsigned long));
|
||||
extern void cancel_mouse_face (struct frame *);
|
||||
extern void x_scroll_bar_clear (struct frame *);
|
||||
extern int x_text_icon (struct frame *, char *);
|
||||
extern int x_bitmap_icon (struct frame *, Lisp_Object);
|
||||
extern void x_catch_errors (Display *);
|
||||
extern void x_check_errors (Display *, char *);
|
||||
extern int x_had_errors_p (Display *);
|
||||
extern int x_catching_errors (void);
|
||||
extern void x_uncatch_errors (void);
|
||||
extern void x_clear_errors (Display *);
|
||||
extern void x_set_window_size (struct frame *, int, int, int);
|
||||
extern void x_set_mouse_position (struct frame *, int, int);
|
||||
extern void x_set_mouse_pixel_position (struct frame *, int, int);
|
||||
extern void x_ewmh_activate_frame (struct frame *);
|
||||
extern void x_raise_frame (struct frame *);
|
||||
extern void x_lower_frame (struct frame *);
|
||||
extern void x_make_frame_visible (struct frame *);
|
||||
extern void x_make_frame_invisible (struct frame *);
|
||||
extern void x_iconify_frame (struct frame *);
|
||||
extern void x_free_frame_resources (struct frame *);
|
||||
extern void x_destroy_window (struct frame *);
|
||||
extern void x_wm_set_size_hint (struct frame *, long, int);
|
||||
extern void x_wm_set_window_state (struct frame *, int);
|
||||
extern void x_wm_set_icon_pixmap (struct frame *, int);
|
||||
extern void x_delete_display (struct x_display_info *);
|
||||
extern void x_delete_terminal (struct terminal *terminal);
|
||||
extern void x_initialize (void);
|
||||
extern unsigned long x_copy_color (struct frame *, unsigned long);
|
||||
#ifdef USE_X_TOOLKIT
|
||||
extern XtAppContext Xt_app_con;
|
||||
extern int x_alloc_lighter_color_for_widget __P ((Widget, Display*, Colormap,
|
||||
unsigned long *,
|
||||
double, int));
|
||||
extern void x_activate_timeout_atimer P_ ((void));
|
||||
extern int x_alloc_lighter_color_for_widget (Widget, Display*, Colormap,
|
||||
unsigned long *,
|
||||
double, int);
|
||||
extern void x_activate_timeout_atimer (void);
|
||||
#endif
|
||||
extern void x_query_colors P_ ((struct frame *f, XColor *, int));
|
||||
extern void x_query_color P_ ((struct frame *f, XColor *));
|
||||
extern void x_clear_area P_ ((Display *, Window, int, int, int, int, int));
|
||||
extern void set_vertical_scroll_bar P_ ((struct window *));
|
||||
extern void x_query_colors (struct frame *f, XColor *, int);
|
||||
extern void x_query_color (struct frame *f, XColor *);
|
||||
extern void x_clear_area (Display *, Window, int, int, int, int, int);
|
||||
extern void set_vertical_scroll_bar (struct window *);
|
||||
|
||||
extern int x_dispatch_event P_ ((XEvent *, Display *));
|
||||
extern unsigned int x_x_to_emacs_modifiers P_ ((struct x_display_info *,
|
||||
unsigned));
|
||||
extern int x_display_pixel_height P_ ((struct x_display_info *));
|
||||
extern int x_display_pixel_width P_ ((struct x_display_info *));
|
||||
extern int x_dispatch_event (XEvent *, Display *);
|
||||
extern unsigned int x_x_to_emacs_modifiers (struct x_display_info *,
|
||||
unsigned);
|
||||
extern int x_display_pixel_height (struct x_display_info *);
|
||||
extern int x_display_pixel_width (struct x_display_info *);
|
||||
|
||||
extern void x_set_sticky P_ ((struct frame *, Lisp_Object, Lisp_Object));
|
||||
extern void x_wait_for_event P_ ((struct frame *, int));
|
||||
extern void x_set_sticky (struct frame *, Lisp_Object, Lisp_Object);
|
||||
extern void x_wait_for_event (struct frame *, int);
|
||||
|
||||
/* Defined in xselect.c */
|
||||
|
||||
extern void x_handle_property_notify P_ ((XPropertyEvent *));
|
||||
extern void x_handle_selection_notify P_ ((XSelectionEvent *));
|
||||
extern void x_handle_selection_event P_ ((struct input_event *));
|
||||
extern void x_clear_frame_selections P_ ((struct frame *));
|
||||
extern void x_handle_property_notify (XPropertyEvent *);
|
||||
extern void x_handle_selection_notify (XSelectionEvent *);
|
||||
extern void x_handle_selection_event (struct input_event *);
|
||||
extern void x_clear_frame_selections (struct frame *);
|
||||
|
||||
extern int x_handle_dnd_message P_ ((struct frame *,
|
||||
XClientMessageEvent *,
|
||||
struct x_display_info *,
|
||||
struct input_event *bufp));
|
||||
extern int x_check_property_data P_ ((Lisp_Object));
|
||||
extern void x_fill_property_data P_ ((Display *,
|
||||
Lisp_Object,
|
||||
void *,
|
||||
int));
|
||||
extern Lisp_Object x_property_data_to_lisp P_ ((struct frame *,
|
||||
unsigned char *,
|
||||
Atom,
|
||||
int,
|
||||
unsigned long));
|
||||
extern int x_handle_dnd_message (struct frame *,
|
||||
XClientMessageEvent *,
|
||||
struct x_display_info *,
|
||||
struct input_event *bufp);
|
||||
extern int x_check_property_data (Lisp_Object);
|
||||
extern void x_fill_property_data (Display *,
|
||||
Lisp_Object,
|
||||
void *,
|
||||
int);
|
||||
extern Lisp_Object x_property_data_to_lisp (struct frame *,
|
||||
unsigned char *,
|
||||
Atom,
|
||||
int,
|
||||
unsigned long);
|
||||
|
||||
/* Defined in xfns.c */
|
||||
|
||||
extern struct x_display_info * check_x_display_info P_ ((Lisp_Object frame));
|
||||
extern struct x_display_info * check_x_display_info (Lisp_Object frame);
|
||||
|
||||
#ifdef USE_GTK
|
||||
extern int xg_set_icon P_ ((struct frame *, Lisp_Object));
|
||||
extern int xg_set_icon_from_xpm_data P_ ((struct frame *, char**));
|
||||
extern int xg_set_icon (struct frame *, Lisp_Object);
|
||||
extern int xg_set_icon_from_xpm_data (struct frame *, char**);
|
||||
#endif /* USE_GTK */
|
||||
|
||||
extern void x_real_positions P_ ((struct frame *, int *, int *));
|
||||
extern int defined_color P_ ((struct frame *, char *, XColor *, int));
|
||||
extern void x_set_border_pixel P_ ((struct frame *, int));
|
||||
extern void x_set_menu_bar_lines P_ ((struct frame *, Lisp_Object, Lisp_Object));
|
||||
extern void x_implicitly_set_name P_ ((struct frame *, Lisp_Object, Lisp_Object));
|
||||
extern void xic_free_xfontset P_ ((struct frame *));
|
||||
extern void create_frame_xic P_ ((struct frame *));
|
||||
extern void destroy_frame_xic P_ ((struct frame *));
|
||||
extern void xic_set_preeditarea P_ ((struct window *, int, int));
|
||||
extern void xic_set_statusarea P_ ((struct frame *));
|
||||
extern void xic_set_xfontset P_ ((struct frame *, char *));
|
||||
extern int x_pixel_width P_ ((struct frame *));
|
||||
extern int x_pixel_height P_ ((struct frame *));
|
||||
extern int x_char_width P_ ((struct frame *));
|
||||
extern int x_char_height P_ ((struct frame *));
|
||||
extern int x_screen_planes P_ ((struct frame *));
|
||||
extern void x_sync P_ ((struct frame *));
|
||||
extern int x_defined_color P_ ((struct frame *, char *, XColor *, int));
|
||||
extern void x_real_positions (struct frame *, int *, int *);
|
||||
extern int defined_color (struct frame *, char *, XColor *, int);
|
||||
extern void x_set_border_pixel (struct frame *, int);
|
||||
extern void x_set_menu_bar_lines (struct frame *, Lisp_Object, Lisp_Object);
|
||||
extern void x_implicitly_set_name (struct frame *, Lisp_Object, Lisp_Object);
|
||||
extern void xic_free_xfontset (struct frame *);
|
||||
extern void create_frame_xic (struct frame *);
|
||||
extern void destroy_frame_xic (struct frame *);
|
||||
extern void xic_set_preeditarea (struct window *, int, int);
|
||||
extern void xic_set_statusarea (struct frame *);
|
||||
extern void xic_set_xfontset (struct frame *, char *);
|
||||
extern int x_pixel_width (struct frame *);
|
||||
extern int x_pixel_height (struct frame *);
|
||||
extern int x_char_width (struct frame *);
|
||||
extern int x_char_height (struct frame *);
|
||||
extern int x_screen_planes (struct frame *);
|
||||
extern void x_sync (struct frame *);
|
||||
extern int x_defined_color (struct frame *, char *, XColor *, int);
|
||||
#ifdef HAVE_X_I18N
|
||||
extern void free_frame_xic P_ ((struct frame *));
|
||||
extern void free_frame_xic (struct frame *);
|
||||
#endif
|
||||
extern void x_set_tool_bar_lines P_ ((struct frame *, Lisp_Object, Lisp_Object));
|
||||
extern void x_set_tool_bar_lines (struct frame *, Lisp_Object, Lisp_Object);
|
||||
|
||||
/* Defined in xfaces.c */
|
||||
|
||||
extern int compute_glyph_face P_ ((struct frame *, int, int));
|
||||
extern int compute_glyph_face_1 P_ ((struct frame *, Lisp_Object, int));
|
||||
extern void x_free_dpy_colors P_ ((Display *, Screen *, Colormap,
|
||||
unsigned long *, int));
|
||||
extern int compute_glyph_face (struct frame *, int, int);
|
||||
extern int compute_glyph_face_1 (struct frame *, Lisp_Object, int);
|
||||
extern void x_free_dpy_colors (Display *, Screen *, Colormap,
|
||||
unsigned long *, int);
|
||||
|
||||
/* Defined in xmenu.c */
|
||||
|
||||
extern void x_menu_set_in_use P_ ((int));
|
||||
extern void x_menu_wait_for_event P_ ((void *data));
|
||||
extern void x_activate_menubar P_ ((struct frame *));
|
||||
extern int popup_activated P_ ((void));
|
||||
extern void initialize_frame_menubar P_ ((struct frame *));
|
||||
extern void free_frame_menubar P_ ((struct frame *));
|
||||
extern void x_menu_set_in_use (int);
|
||||
extern void x_menu_wait_for_event (void *data);
|
||||
extern void x_activate_menubar (struct frame *);
|
||||
extern int popup_activated (void);
|
||||
extern void initialize_frame_menubar (struct frame *);
|
||||
extern void free_frame_menubar (struct frame *);
|
||||
|
||||
/* Defined in widget.c */
|
||||
|
||||
#ifdef USE_X_TOOLKIT
|
||||
extern void widget_store_internal_border P_ ((Widget));
|
||||
extern void widget_store_internal_border (Widget);
|
||||
#endif
|
||||
|
||||
/* Defined in xsmfns.c */
|
||||
#ifdef HAVE_X_SM
|
||||
extern void x_session_initialize P_ ((struct x_display_info *dpyinfo));
|
||||
extern int x_session_check_input P_ ((struct input_event *bufp));
|
||||
extern int x_session_have_connection P_ ((void));
|
||||
extern void x_session_close P_ ((void));
|
||||
extern void x_session_initialize (struct x_display_info *dpyinfo);
|
||||
extern int x_session_check_input (struct input_event *bufp);
|
||||
extern int x_session_have_connection (void);
|
||||
extern void x_session_close (void);
|
||||
#endif
|
||||
|
||||
/* XEmbed implementation. */
|
||||
|
@ -1129,10 +1129,10 @@ enum xembed_accelerator
|
|||
|
||||
/* Defined in xterm.c */
|
||||
|
||||
extern void xembed_set_info P_ ((struct frame *f, enum xembed_info flags));
|
||||
extern void xembed_send_message P_ ((struct frame *f, Time time,
|
||||
enum xembed_message message,
|
||||
long detail, long data1, long data2));
|
||||
extern void xembed_set_info (struct frame *f, enum xembed_info flags);
|
||||
extern void xembed_send_message (struct frame *f, Time time,
|
||||
enum xembed_message message,
|
||||
long detail, long data1, long data2);
|
||||
|
||||
/* Is the frame embedded into another application? */
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue