1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-25 15:00:45 -08:00
Commit graph

9763 commits

Author SHA1 Message Date
Paul Eggert
a0977c4454 * process.c (serial_open, serial_configure): Move decls from here ...
* systty.h: ... to here, so that they can be checked.
2011-03-14 15:49:41 -07:00
Paul Eggert
a884fdcc41 * fns.c (get_random, seed_random): Move extern decls from here ...
* lisp.h: ... to here, so that they can be checked.
2011-03-14 15:42:10 -07:00
Paul Eggert
b8950c9480 * sysdep.c (wait_for_termination_signal): Remove; unused. 2011-03-14 15:37:08 -07:00
Paul Eggert
604efe86a9 * sysdep.c (reset_io): Now static. 2011-03-14 15:36:12 -07:00
Paul Eggert
c1141155ba * keymap.c: (get_keymap, access_keymap, Fdefine_key, Fwhere_is_internal):
(describe_map_tree):
Rename locals to avoid shadowing.
2011-03-14 08:53:19 -07:00
Paul Eggert
dbbb842771 * keymap.c (DENSE_TABLE_SIZE): Remove; unused. 2011-03-14 08:42:21 -07:00
Paul Eggert
1004a21a8f * keymap.c (Fwhere_is_internal): Don't test CONSP (sequences) unnecessarily. 2011-03-14 08:40:57 -07:00
Paul Eggert
38fc62d95a * keymap.c (keymap_parent, keymap_memberp, map_keymap_internal):
(copy_keymap_item, append_key, push_text_char_description):
Now static.
2011-03-14 08:32:56 -07:00
Paul Eggert
c8a06054fc * keyboard.c (read_char): Mark local as initialized. 2011-03-14 08:28:09 -07:00
Paul Eggert
3ac946723d * keyboard.c (Fexit_recursive_edit, Fabort_recursive_edit): Mark with NO_RETURN. 2011-03-14 08:25:21 -07:00
Paul Eggert
560a553af5 * keyboard.c (read_key_sequence): Mark locals as initialized. 2011-03-14 08:19:28 -07:00
Paul Eggert
69a058fab1 * keyboard.c: (read_char, kbd_buffer_get_event, make_lispy_position):
(make_lispy_event, make_lispy_movement, apply_modifiers):
(decode_keyboard_code, tty_read_avail_input, menu_bar_items):
(parse_tool_bar_item, read_key_sequence, Fread_key_sequence):
(Fread_key_sequence_vector): Rename locals to avoid shadowing.
2011-03-14 08:15:30 -07:00
Paul Eggert
da2f2dd9c2 * keyboard.h (mark_kboards): Move decl here ...
* alloc.c (mark_kboards): ... from here.
2011-03-13 22:55:38 -07:00
Paul Eggert
2f2650daaa * keyboard.c: Declare functions static if they are not used elsewhere.
(echo_char, echo_dash, cmd_error, top_level_2):
(poll_for_input, handle_async_input): Now static.
2011-03-13 22:51:17 -07:00
Paul Eggert
a053e86cc5 * keyboard.h (make_ctrl_char): New decl. 2011-03-13 22:49:51 -07:00
Paul Eggert
4752793e22 * lisp.h (force_auto_save_soon): New decl. 2011-03-13 22:48:15 -07:00
Paul Eggert
c03cd23f45 * emacs.c (main): Add casts to avoid warnings
if GCC considers string literals to be constants.
2011-03-13 22:36:36 -07:00
Paul Eggert
244fc23d16 * emacs.c (DEFINE_DUMMY_FUNCTION): New macro.
(__do_global_ctors, __do_global_ctors_aux, __do_global_dtors, __main):
Use it.
2011-03-13 20:49:40 -07:00
Paul Eggert
74f10ca71b * emacs.c (init_cmdargs): Rename local to avoid shadowing. 2011-03-13 20:43:36 -07:00
Paul Eggert
022e70d41f * lisp.h (fatal_error_signal): Add decl, since it's exported. 2011-03-13 20:31:16 -07:00
Paul Eggert
49cebccaa7 * dbusbind.c (Fdbus_register_service, Fdbus_register_method): Remove unused vars. 2011-03-13 20:25:51 -07:00
Paul Eggert
78320123c1 * dbusbind.c (Fdbus_init_bus): Add cast to avoid warning
if GCC considers string literals to be constants.
2011-03-13 20:23:23 -07:00
Paul Eggert
59d6fe8344 * dbusbind.c: Pointer signedness fixes.
(xd_signature, xd_append_arg, xd_initialize):
(Fdbus_call_method, Fdbus_call_method_asynchronously):
(Fdbus_method_return_internal, Fdbus_method_error_internal):
(Fdbus_send_signal, xd_read_message_1, Fdbus_register_service):
(Fdbus_register_signal): Use SSDATA when the context wants char *.
2011-03-13 20:21:32 -07:00
Chong Yidong
cffc6f3bd9 Fix BUF_* macros to handle indirect buffers properly (Bug#8219).
* buffer.h (BUF_BEGV, BUF_BEGV_BYTE, BUF_ZV, BUF_ZV_BYTE, BUF_PT)
(BUF_PT_BYTE): Rewrite to handle indirect buffers (Bug#8219).
These macros can no longer be used for assignment.

* buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Assign
struct members directly, instead of using BUF_BEGV etc.
(record_buffer_markers, fetch_buffer_markers): New functions for
recording and fetching special buffer markers.
(set_buffer_internal_1, set_buffer_temp): Use them.

* lread.c (unreadchar): Use SET_BUF_PT_BOTH.

* insdel.c (adjust_point): Use SET_BUF_PT_BOTH.

* intervals.c (temp_set_point_both): Use SET_BUF_PT_BOTH.
(get_local_map): Use SET_BUF_BEGV_BOTH and SET_BUF_ZV_BOTH.

* xdisp.c (hscroll_window_tree):
(reconsider_clip_changes): Use PT instead of BUF_PT.
2011-03-13 18:25:16 -04:00
Eli Zaretskii
d251f04bea MS-Windows followup for 2011-03-13T06:43:00Z!eggert@cs.ucla.edu.
src/makefile.w32-in ($(BLD)/editfns.$(O)): Depend on
 $(EMACS_ROOT)/lib/intprops.h.
2011-03-13 19:49:38 +02:00
Paul Eggert
3eca462920 Merge from mainline. 2011-03-13 10:28:15 -07:00
Paul Eggert
01e0b5adf4 * gtkutil.c (gdk_window_get_screen): Make it clear that this macro is needed
only if USE_GTK_TOOLTIP.
2011-03-13 00:42:12 -08:00
Paul Eggert
65dc836c9e * gtkutil.c: (get_utf8_string, xg_get_file_with_chooser):
Rename locals to avoid shadowing.
(create_dialog): Move locals to avoid shadowing.
2011-03-13 00:39:13 -08:00
Paul Eggert
1e5524e7cf * gtkutil.c (int_gtk_range_get_value): New function, which avoids a diagnostic
from gcc -Wbad-function-cast.
(xg_set_toolkit_scroll_bar_thumb): Use it.
(xg_tool_bar_callback, xg_tool_item_stale_p): Rewrite to avoid
diagnostic from gcc -Wbad-function-cast.
2011-03-13 00:31:16 -08:00
Paul Eggert
b0afc268e8 * gtkutil.c (xg_free_frame_widgets): Make it clear that a local variable is
needed only if USE_GTK_TOOLTIP.
2011-03-13 00:15:55 -08:00
Paul Eggert
7c86ee9804 * gtkutil.c (xg_get_pixbuf_from_pixmap): Add cast from char *
to unsigned char * to avoid compiler diagnostic.
2011-03-13 00:14:30 -08:00
Paul Eggert
41729b81ac * xgselect.c (xg_select): Remove unused var. 2011-03-13 00:05:40 -08:00
Paul Eggert
ec6cf4c6ff * image.c (my_png_error, my_error_exit): Mark with NO_RETURN. 2011-03-13 00:04:44 -08:00
Paul Eggert
f0c77cd1b2 * image.c (four_corners_best): Mark locals as initialized.
(gif_load): Initialize transparent_p to zero (Bug#8238).
Mark another local as initialized.
2011-03-12 23:50:17 -08:00
Paul Eggert
d32df629a2 Improve quality of tests for time stamp overflow. 2011-03-12 22:43:00 -08:00
Paul Eggert
313c1e544a * editfns.c (lisp_time_argument): Check for time stamp overflow. 2011-03-12 22:27:18 -08:00
Glenn Morris
09d9db2c49 Merge from emacs-23; up to 2010-06-03T22:16:02Z!dann@ics.uci.edu 2011-03-12 11:19:47 -08:00
Eli Zaretskii
ecb0f94d18 src/ChangeLog: Fix last entry for deps.mk. 2011-03-12 14:05:05 +02:00
Eli Zaretskii
058e5dad0e Make termcap.c implementations consistent with tparam.h prototypes.
src/termcap.c [MSDOS]: Include "msdos.h.
 (find_capability, tgetnum, tgetflag, tgetstr, tputs, tgetent):
 Constify `char *' arguments and their references according to
 prototypes in tparam.h.
 src/deps.mk (termcap.o): Depend on tparam.h and msdos.h.
2011-03-12 14:03:24 +02:00
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
Paul Eggert
b8d9bd41b7 Improve quality of tests for time stamp overflow. For example,
without this patch (encode-time 0 0 0 1 1 1152921504606846976)
returns the obviously-bogus value (-948597 62170) on my RHEL 5.5
x86-64 host.  With it, it reports time overflow.
* deps.mk (editfns.o): Depend on ../lib/intprops.h.
* editfns.c: Include limits.h and intprops.h.
(TIME_T_MIN, TIME_T_MAX): New macros.
(time_overflow): Move earlier, to before first use.
(hi_time, lo_time): New functions, for an accurate test for
out-of-range times.
(Fcurrent_time, Fget_internal_run_time, make_time): Use them.
(Fget_internal_run_time): Don't assume time_t fits in int.
(make_time): Use list2 instead of Fcons twice.
(Fdecode_time): More accurate test for out-of-range times.
(check_tm_member): New function.
(Fencode_time): Use it, to test for out-of-range times.
2011-03-11 22:49:53 -08:00
Paul Eggert
fe31d94c97 * editfns.c (time_overflow): New function, refactoring common code.
(Fformat_time_string, Fdecode_time, Fencode_time):
(Fcurrent_time_string): Use it.
2011-03-11 12:31:59 -08:00
Paul Eggert
8be6f3188d Move 'make_time' to be next to its inverse 'lisp_time_argument'.
* dired.c (make_time): Move to ...
* editfns.c (make_time): ... here.
* systime.h: Note the move.
2011-03-11 12:24:09 -08:00
Tom Tromey
ef1fd07e4e * buffer.c (syms_of_buffer): Remove obsolete comment. 2011-03-11 09:49:16 -07:00
Juanma Barranquero
1e048ad1a6 Backport 2011-03-08T01:52:20Z!lekktu@gmail.com from trunk.
* src/w32xfns.c (select_palette): Check success of RealizePalette against
  GDI_ERROR, not zero.
2011-03-11 16:42:12 +01: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
6ae141d682 * image.c: (clear_image_cache, xbm_read_bitmap_data, x_detect_edges):
(jpeg_load, gif_load): Rename locals to avoid shadowing.
2011-03-11 00:20:11 -08:00
Paul Eggert
2037898d7a * image.c (gif_load): Fix pointer signedness. 2011-03-11 00:01:09 -08:00
Paul Eggert
77a765fd78 * image.c (x_edge_detection): Remove unnecessary cast that
gcc -Wbad-function-cast diagnoses.
2011-03-10 23:59:36 -08:00
Paul Eggert
e22cffbc1c * image.c (xpm_load): Redo to avoid "discards qualifiers" gcc warning. 2011-03-10 23:54:50 -08:00