1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-31 01:20:37 -08:00
Commit graph

99043 commits

Author SHA1 Message Date
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
Paul Eggert
ee05f96119 * coding.c (decode_coding_emacs_mule): Mark variables that gcc
-Wuninitialized does not deduce are never used uninitialized.
2011-03-07 23:34:38 -08:00
Paul Eggert
5f58e762f9 * coding.c: (ISO_CODE_LF, ISO_CODE_CR, CODING_ISO_FLAG_EUC_TW_SHIFT):
(ONE_MORE_BYTE_NO_CHECK, UTF_BOM, UTF_16_INVALID_P):
(SHIFT_OUT_OK, ENCODE_CONTROL_SEQUENCE_INTRODUCER):
(ENCODE_DIRECTION_R2L, ENCODE_DIRECTION_L2R):
Remove unused macros.
2011-03-07 23:23:55 -08:00
Paul Eggert
c4a63b128d * coding.c: (decode_coding_object, encode_coding_object, detect_coding_system):
Mark variables that gcc -Wuninitialized does not deduce are never
used uninitialized.
2011-03-07 23:12:45 -08:00
Paul Eggert
413bb2db75 * coding.c (decode_coding_iso_2022): Add "default: abort ();" as a safety check. 2011-03-07 21:28:41 -08:00
Paul Eggert
e2f1bab963 * coding.c (emacs_mule_char, encode_invocation_designation):
Now static, since they're not used elsewhere.
2011-03-07 20:41:22 -08:00
Paul Eggert
2735d0606b * coding.c (Fdefine_coding_system_internal): Don't redeclare 'i' inside
a block, when the outer 'i' will do.
(decode_coding_utf_8, decode_coding_utf_16, detect_coding_emacs_mule):
(emacs_mule_char, decode_coding_emacs_mule, detect_coding_iso_2022):
(decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5):
(decode_coding_raw_text, decode_coding_charset, get_translation_table):
(Fdecode_sjis_char, Fdefine_coding_system_internal):
Rename locals to avoid shadowing.
* character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
2011-03-07 20:37:19 -08:00
Paul Eggert
f38b440c4b * coding.c (coding_set_source, coding_set_destination):
Use "else { /* comment */ }" rather than "else /* comment */;"
for clarity, and to avoid gcc -Wempty-body warning.
2011-03-07 17:41:19 -08:00
Paul Eggert
0ac2c2991c * charset.c (load_charset): Abort instead of using uninitialized var. 2011-03-07 16:46:23 -08:00
Paul Eggert
89ef49dfda * charset.c (load_charset_map): Mark variables that gcc -Wuninitialized
does not deduce are never used uninitialized.
2011-03-07 16:36:30 -08:00
Paul Eggert
726929c43a * charset.c: Include <limits.h>.
(Fsort_charsets): Redo min/max calculation to shorten the code a bit
and to avoid gcc -Wuninitialized warning.
2011-03-07 16:35:37 -08:00