Commit graph

30366 commits

Author SHA1 Message Date
Eli Zaretskii
7ac80be95a Fix compilation warnings on MS-DOS due to constifying of pointers in xmenu.c.
src/msdos.c (XMenuAddPane): 3rd argument is `const char *' now.
 Adapt all references accordingly.
 src/msdos.h (XMenuAddPane): 3rd argument is `const char *' now.
2011-03-12 12:51:31 +02:00
Tom Tromey
ef1fd07e4e * buffer.c (syms_of_buffer): Remove obsolete comment. 2011-03-11 09:49:16 -07:00
Eli Zaretskii
7ef4b50c04 Fix MS-Windows build broken by 2011-03-11T07:24:21Z!eggert@cs.ucla.edu.
src/term.c (encode_terminal_code): Now external again, used by
 w32console.c and msdos.c.
 src/termhooks.h (encode_terminal_code): Declare prototype.
 src/msdos.c (encode_terminal_code): Don't declare prototype.
 src/makefile.w32-in ($(BLD)/term.$(O), ($(BLD)/tparam.$(O)): Depend
 on $(SRC)/tparam.h, see 2011-03-11T07:24:21Z!eggert@cs.ucla.edu.
2011-03-11 11:41:56 +02:00
Paul Eggert
1714f52b9d Fix some minor problems found by GCC 4.5.2's static checks. 2011-03-10 23:24:21 -08:00
Paul Eggert
83316bf404 Merge: Minor changes for problems found by GCC 4.5.2's static checks. 2011-03-10 22:57:50 -08:00
Paul Eggert
53df7c1162 Add bug#s. 2011-03-10 22:41:50 -08:00
Paul Eggert
40714c5307 * fringe.c: Add comment. 2011-03-10 22:23:26 -08:00
Paul Eggert
4b1ec86341 * fringe.c (update_window_fringes): Mark locals as initialized 2011-03-10 22:06:36 -08:00
Andreas Schwab
c40f8d15c0 * .gdbinit (pwinx, xbuffer): Fix access to buffer name. 2011-03-11 01:19:57 +01:00
Paul Eggert
500188f483 * fringe.c (update_window_fringes): Initialize top_row_ends_at_zv_p and
bot_row_ends_at_zv_p, with a FIXME comment.
2011-03-10 13:46:21 -08:00
Paul Eggert
bf60f61682 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap): Now static. 2011-03-09 18:02:40 -08:00
Paul Eggert
524c7aa610 * alloc.c (mark_fringe_data): Move decl from here ...
* lisp.h (mark_fringe_data) [HAVE_WINDOW_SYSTEM]: ... to here,
to check its interface.
(init_fringe_once): Do not declare unless HAVE_WINDOW_SYSTEM.
2011-03-09 18:01:53 -08:00
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
Juanma Barranquero
cfe0661dbe * src/search.c (compile_pattern_1): Remove unused argument.
(compile_pattern): Don't pass it.
2011-03-09 17:18:51 +01: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