1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-21 07:30:50 -08:00
Commit graph

99053 commits

Author SHA1 Message Date
Paul Eggert
58d2d47908 * xfns.c (Fx_create_frame, x_create_tip_frame, Fx_show_tip):
(Fx_backspace_delete_keys_p):
Use them to avoid shadowing, and rename vars to avoid shadowing.
(x_decode_color, x_set_name, x_window): Now static.
2011-03-09 17:58:37 -08:00
Paul Eggert
a9a06e0b10 * fontset.c (FONTSET_SPEC, FONTSET_REPERTORY, RFONT_DEF_REPERTORY): Remove; unused. 2011-03-09 17:48:47 -08:00
Paul Eggert
cc6e5db1ae * fontset.c (fontset_font): Mark local as initialized. 2011-03-09 17:44:38 -08:00
Paul Eggert
7519b8cd68 * fontset.c (Fset_fontset_font): Rename local to avoid shadowing. 2011-03-09 17:43:19 -08:00
Paul Eggert
a5c0af8162 * fontset.c (free_realized_fontset): Now static. 2011-03-09 17:41:18 -08:00
Paul Eggert
b471602178 * xrdb.c: Include "xterm.h", to check x_load_resources's interface. 2011-03-09 17:40:21 -08:00
Paul Eggert
aa0daa9f93 * xselect.c (x_own_selection, Fx_disown_selection_internal): Rename locals
to avoid shadowing.
(x_handle_dnd_message): Remove local to avoid shadowing.
2011-03-09 17:36:58 -08:00
Paul Eggert
7b83e2f1ff * xselect.c (TRACE3) [!defined TRACE_SELECTION]: Remove; not used. 2011-03-09 17:31:57 -08:00
Paul Eggert
811e9bacd8 * xselect.c (x_disown_buffer_selections): Remove; not used. 2011-03-09 17:30:22 -08:00
Paul Eggert
7e3ab3026e * lisp.h (GCPRO1_VAR, UNGCPRO_VAR): New macros,
so that the caller can use some name other than gcpro1.
(GCPRO1, UNGCPRO): Reimplement in terms of the new macros.
(Fx_create_frame, x_create_tip_frame, Fx_show_tip):
(Fx_backspace_delete_keys_p): Rename locals to avoid shadowing.
Some of these renamings use the new GCPRO1_VAR and UNGCPRO_VAR
macros.
2011-03-09 17:28:06 -08:00
Paul Eggert
06b0c8a0dd * xfns.c: (x_real_positions, xg_set_icon_from_xpm_data, x_create_tip_frame):
Remove unused locals.
2011-03-09 17:06:01 -08:00
Paul Eggert
c0951e534c * xfns.c (Fx_file_dialog, Fx_select_font): Fix pointer signedness. 2011-03-09 17:03:29 -08:00
Paul Eggert
6b43790020 * xfns.c (Fx_create_frame): Add braces to silence GCC warning. 2011-03-09 16:59:17 -08:00
Paul Eggert
f78faa98a2 * xfns.c (x_decode_color, x_set_name, x_window): Now static. 2011-03-09 16:58:10 -08:00
Paul Eggert
2a8fade062 * xterm.c (x_connection_closed): Tell GCC not to suggest NO_RETURN. 2011-03-09 09:39:28 -08:00
Paul Eggert
28f1c69813 * xterm.c (x_delete_glyphs, x_ins_del_lines): Mark with NO_RETURN. 2011-03-09 09:30:24 -08:00
Paul Eggert
a6067996d8 * xterm.c: (x_draw_image_foreground, redo_mouse_highlight, XTmouse_position):
(x_scroll_bar_report_motion, handle_one_xevent, x_draw_bar_cursor):
(x_error_catcher, x_connection_closed, x_error_handler):
(x_error_quitter, xembed_send_message, x_iconify_frame):
(my_log_handler): Rename locals to avoid shadowing.
2011-03-09 01:12:38 -08:00
Paul Eggert
38d0b34afe * xterm.c (XEMBED_VERSION, xembed_set_info): Don't define unless needed.
(x_fatal_error_signal): Remove; not used.
2011-03-08 23:17:17 -08:00
Paul Eggert
ed7bf3a5ee * xterm.c (x_iconify_frame, x_free_frame_resources): Don't declare locals
unless they are used.
2011-03-08 23:11:42 -08:00
Paul Eggert
2b07bcffb0 * xterm.c: Don't declare local "event" unless it's used. 2011-03-08 23:07:42 -08:00
Paul Eggert
7411c6867f * xterm.c (XTread_socket): Don't define label "out" unless it's used. 2011-03-08 23:05:07 -08:00
Paul Eggert
cdf4ba58eb * xterm.c: (x_shift_glyphs_for_insert, XTflash, XTring_bell):
(x_calc_absolute_position): Now static.
2011-03-08 23:02:55 -08:00
Paul Eggert
e2b134730c * xterm.h (x_mouse_leave): New decl. 2011-03-08 23:01:14 -08:00
Paul Eggert
77f2391201 * xterm.c (x_copy_dpy_color, x_focus_on_frame, x_unfocus_frame):
Remove unused functions.
2011-03-08 22:40:38 -08:00
Paul Eggert
73719eba5c * xfaces.c (STRDUPA, LSTRDUPA, FONT_POINT_SIZE_QUANTUM): Remove; not used.
(LFACEP): Define only if XASSERTS, as it's not needed otherwise.
2011-03-08 22:29:34 -08:00
Paul Eggert
1e9966ea02 * xfaces.c (Fx_list_fonts): Mark variable that gcc -Wuninitialized
does not deduce is never used uninitialized.
2011-03-08 22:25:19 -08:00
Paul Eggert
5967d05138 * xfaces.c (free_realized_faces_for_fontset): Remove; not used. 2011-03-08 22:23:48 -08:00
Paul Eggert
6b463e581f * xfaces.c (tty_defined_color, merge_face_heights): Now static. 2011-03-08 22:22:39 -08:00
Paul Eggert
c2ed9c8b0c * term.c (encode_terminal_code): Mark vars for gcc -Wuninitialized. 2011-03-08 22:21:25 -08:00
Paul Eggert
071048a3f5 * xfaces.c (clear_face_cache, Fx_list_fonts, Fface_font): Rename
or move locals to avoid shadowing.
2011-03-08 22:17:32 -08:00
Paul Eggert
426994c304 * terminal.c (store_terminal_param): Now static. 2011-03-08 22:07:27 -08:00
Paul Eggert
b024a9466a * term.c, tparam.h (tgetflag, tgetnum, tgetstr): Move the const to the .h file 2011-03-08 21:46:35 -08:00
Paul Eggert
e6ca654368 * alloc.c (mark_ttys): Move decl from here ...
* lisp.h (mark_ttys): ... to here, so that it's checked against defn.
2011-03-08 21:40:59 -08:00
Paul Eggert
7f3f1250d4 * term.c (term_mouse_position): Rename local to avoid shadowing. 2011-03-08 18:15:18 -08:00
Paul Eggert
fbceeba21b * cm.c (calccost, cmgoto): Use const pointers where appropriate.
* cm.h (struct cm): Likewise.
* dispextern.h (do_line_insertion_deletion_costs): Likewise.
* scroll.c (ins_del_costs, do_line_insertion_deletion_costs): Likewise.
* term.c (tty_ins_del_lines, calculate_costs, struct fkey_table):
(term_get_fkeys_1, append_glyphless_glyph, produce_glyphless_glyph):
(turn_on_face, init_tty): Likewise.
* termchar.h (struct tty_display_info): Likewise.
* term.c (tgetflag, tgetnum, tgetstr): Redefine to use const pointers.
2011-03-08 18:12:00 -08:00
Paul Eggert
5093859588 * tparam.h: New file.
* term.c, tparam.h: Include it.
* deps.mk (term.o, tparam.o): Depend on tparam.h.
* term.c (tputs, tgetent, tgetflag, tgetnum, tparam, tgetstr):
Move these decls to tparam.h, and make them agree with what
is actually in tparam.c.  The previous trick of using incompatible
decls in different modules does not conform to the C standard.
All callers of tparam changed to use tparam's actual API.
* tparam.c (tparam1, tparam, tgoto):
Use const pointers where appropriate.
2011-03-08 10:26:34 -08:00
Paul Eggert
75f8807fe6 * term.c (encode_terminal_code): Remove unused local 2011-03-08 09:31:51 -08:00
Paul Eggert
72abad3405 * term.c (encode_terminal_code): Now static. 2011-03-08 09:30:15 -08:00
Paul Eggert
6be7d3dab6 * cm.c (cmgoto): Mark variables that gcc -Wuninitialized does not
deduce are never used uninitialized.
2011-03-08 09:28:17 -08:00
Paul Eggert
630d689243 * bidi.c (BIDI_BOB): Remove unused macro. 2011-03-08 09:25:52 -08:00
Paul Eggert
5b555da1c9 * dispextern.h (bidi_dump_cached_states): Likewise. 2011-03-08 00:26:27 -08:00
Paul Eggert
7d3b386272 * bidi.c (bidi_check_type): Now static, since it's not used elsewhere. 2011-03-08 00:23:12 -08:00
Paul Eggert
bbcd0949d9 * chartab.c (ASET_RANGE, GET_SUB_CHAR_TABLE): Remove unused macros. 2011-03-08 00:13:36 -08:00
Paul Eggert
5c156ace08 * chartab.c: (sub_char_table_ref_and_range, char_table_ref_and_range):
Rename locals to avoid shadowing.
2011-03-08 00:12:00 -08:00
Paul Eggert
fb93dbc227 * chartab.c (copy_sub_char_table): Now static, since it's not used
elsewhere.
2011-03-08 00:08:41 -08:00
Paul Eggert
d0891610cb * character.c (string_count_byte8): Likewise. 2011-03-07 23:49:41 -08:00
Paul Eggert
fb90da1b9b * ccl.c (CCL_WRITE_STRING, CCL_ENCODE_CHAR, Fccl_execute_on_string):
(Fregister_code_conversion_map): Rename locals to avoid shadowing.
2011-03-07 23:48:20 -08:00
Paul Eggert
9f3b5e6926 * category.c (copy_category_table): Now static, since it's not used elsewhere. 2011-03-07 23:39:53 -08:00
Paul Eggert
232b38b960 * category.c (hash_get_category_set): Remove unused local var. 2011-03-07 23:38:52 -08:00
Paul Eggert
160b01f65a * coding.c (detect_coding_iso_2022): Initialize a local variable that might
be used uninitialized.  Leave a FIXME because it's not clear that
this initialization is needed.
2011-03-07 23:36:31 -08:00