* xterm.c (x_copy_dpy_color, x_focus_on_frame, x_unfocus_frame):
[bpt/emacs.git] / src / ChangeLog
index b6bc36e..fcb3cbc 100644 (file)
@@ -1,4 +1,18 @@
-2011-03-08  Paul Eggert  <eggert@cs.ucla.edu>
+2011-03-09  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * xterm.c (x_copy_dpy_color, x_focus_on_frame, x_unfocus_frame):
+       Remove unused functions.
+
+       * xfaces.c (clear_face_cache, Fx_list_fonts, Fface_font): Rename
+       or move locals to avoid shadowing.
+       (tty_defined_color, merge_face_heights): Now static.
+       (free_realized_faces_for_fontset): Remove; not used.
+       (Fx_list_fonts): Mark variable that gcc -Wuninitialized
+       does not deduce is never used uninitialized.
+       (STRDUPA, LSTRDUPA, FONT_POINT_SIZE_QUANTUM): Remove; not used.
+       (LFACEP): Define only if XASSERTS, as it's not needed otherwise.
+
+       * terminal.c (store_terminal_param): Now static.
 
        * xmenu.c (menu_highlight_callback): Now static.
        (set_frame_menubar): Remove unused local.
@@ -27,6 +41,7 @@
        does not deduce are never used uninitialized.
        * window.h (check_all_windows): New decl, to forestall
        gcc -Wmissing-prototypes diagnostic.
+       * dispextern.h (bidi_dump_cached_states): Likewise.
 
        * charset.h (CHECK_CHARSET_GET_CHARSET): Rename locals to avoid
        shadowing.
        (ASET_RANGE, GET_SUB_CHAR_TABLE): Remove unused macros.
 
        * bidi.c (bidi_check_type): Now static, since it's not used elsewhere.
+       (BIDI_BOB): Remove unused macro.
+
+       * cm.c (cmgoto): Mark variables that gcc -Wuninitialized does not
+       deduce are never used uninitialized.
+       * term.c (encode_terminal_code): Likewise.
+
+       * term.c (encode_terminal_code): Now static.  Remove unused local.
+
+       * 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.
+
+       * 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 (term_mouse_position): Rename local to avoid shadowing.
+
+       * alloc.c (mark_ttys): Move decl from here ...
+       * lisp.h (mark_ttys): ... to here, so that it's checked against defn.
 
 2011-03-06  Chong Yidong  <cyd@stupidchicken.com>