1. 01 Nov, 2010 1 commit
  2. 01 Oct, 2010 2 commits
    • Eli Zaretskii's avatar
      Fix initial frame dimensions on MS-DOS. · 0ebf79de
      Eli Zaretskii authored
       term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
       screen dimensions in tty->Wcm.
      0ebf79de
    • Dan Nicolaescu's avatar
      Do not include stdlib.h and string.h, config.h does it. · 4cacd822
      Dan Nicolaescu authored
      * src/xfont.c:
      * src/w32term.c:
      * src/w32reg.c:
      * src/w32inevt.c:
      * src/w32heap.c:
      * src/w32console.c:
      * src/w16select.c:
      * src/unexsol.c:
      * src/term.c:
      * src/sound.c:
      * src/scroll.c (m):
      * src/gtkutil.c:
      * src/font.c:
      * src/filelock.c:
      * src/fileio.c:
      * src/dosfns.c:
      * src/dbusbind.c:
      * src/bidi.c:
      * src/callproc.c:
      * src/process.c:
      * src/msdos.c:
      * src/charset.c: Do not include stdlib.h and string.h, config.h does it.
      
      * configure.in: Include stdlib.h and string.h unconditionally.
      4cacd822
  3. 27 Sep, 2010 1 commit
  4. 26 Sep, 2010 1 commit
  5. 25 Sep, 2010 1 commit
    • Eli Zaretskii's avatar
      Fix int/EMACS_INT use in process.c and term.c. · f877c546
      Eli Zaretskii authored
       term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
       for buffer positions.
       process.c (read_process_output, send_process)
       (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
       and string positions and size.
      f877c546
  6. 11 Sep, 2010 1 commit
  7. 31 Aug, 2010 1 commit
  8. 29 Aug, 2010 1 commit
  9. 20 Aug, 2010 1 commit
  10. 09 Aug, 2010 1 commit
    • Dan Nicolaescu's avatar
      Use const char* instead of char*. · 8ea90aa3
      Dan Nicolaescu authored
      Reduce the number of warnings with -Wwrite-strings.
      * src/xrdb.c (get_environ_db, get_system_name):
      * src/unexelf.c (find_section):
      * src/term.c (string_cost, string_cost_one_line, per_line_cost)
      (get_named_tty, init_tty):
      * src/sysdep.c (sys_subshell):
      * src/sound.c (sound_perror, sound_warning, vox_open, vox_init)
      (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
      * src/search.c (Freplace_match):
      * src/process.c (Fmake_network_process, send_process, init_process):
      * src/lread.c (Fload, init_lread):
      * src/keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
      * src/keyboard.c (parse_tool_bar_item, struct event_head):
      * src/gtkutil.h (xg_get_font_name):
      * src/gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
      (make_widget_for_menu_item, make_menu_item, create_menus)
      (xg_make_tool_item):
      * src/font.c (parse_matrix, font_parse_name):
      * src/floatfns.c (rounding_driver, float_error_fn_name):
      * src/filelock.c (get_boot_time_1, lock_file_1):
      * src/fileio.c (barf_or_query_if_file_exists, check_writable):
      * src/editfns.c (get_system_name, get_operating_system_release)
      (Fencode_time, Fset_time_zone_rule):
      * src/dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
      * src/buffer.c (defvar_per_buffer): Use const.
      8ea90aa3
  11. 06 Aug, 2010 2 commits
    • Dan Nicolaescu's avatar
      Use const for some arrays and functions. · 648801d1
      Dan Nicolaescu authored
      * src/xterm.h (xg_set_icon_from_xpm_data):
      * src/xfns.c (xg_set_icon_from_xpm_data):
      * src/term.c (fkeys):
      * src/keyboard.c (lispy_accent_keys, lispy_function_keys)
      (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
      (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
      (frame.c frame_parms):
      * src/emacs-icon.h (gnu_xpm_bits):
      * src/callint.c (callint_argfuns): Use const.
      648801d1
    • Jan D's avatar
      Fix missing prototypes for HAVE_NS (caused crash) and vrious warnings. · 3d608a86
      Jan D authored
      * configure.in: Check for util.h.
      
      * src/bidi.c (bidi_dump_cached_states): Fix fprintf warning.
      
      * src/emacs.c: Include src/nsterm.h if HAVE_NS.
      
      * src/image.c (xpm_scan, xpm_make_color_table_v)
      (xpm_put_color_table_v, xpm_get_color_table_v)
      (xpm_make_color_table_h, xpm_put_color_table_h)
      (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
      (xpm_load): Convert to ANSI C prototypes.
      
      * src/lisp.h (fmod_float): Declare.
      
      * src/menu.h (x_set_menu_bar_line): Declare.
      (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
      
      * src/window.c: Include menu.h.
      
      * src/nsfns.m (have_menus_p, ns_display_info_for_name)
      (x_set_cursor_type, ns_appkit_version_str)
      (ns_appkit_version_int, ns_do_applescript)
      (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
      (syms_of_nsfns): Convert to ANSI C prototypes.
      
      * src/nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
      prototypes.
      
      * src/nsimage.m (ns_load_image): Move NSTRACE after declarations.
      
      * src/nsmenu.m (popup_activated, name_is_separator)
      (syms_of_nsmenu): Convert to ANSI C prototypes.
      (runMenuAt): Prototypes and move declarations before code.
      
      * src/nsterm.h : Include sysselect.h.
      (x_sync, x_get_focus_frame, x_set_mouse_position)
      (x_set_mouse_pixel_position, x_make_frame_visible)
      (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
      (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
      (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
      (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
      Declare
      
      * src/process.c: Check HAVE_UTIL_H. Include src/nsterm.h if HAVE_NS.
      
      * src/nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
      (ns_ring_bell, ns_defined_color, hide_hourglass)
      (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
      Convert to ANSI C prototypes.
      (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
      before code.
      
      * src/sysdep.c: Check HAVE_TERM_H
      
      * src/term.c: Check HAVE_SYS_IOCTL_H.
      
      * src/unexmacosx.c (print_region_list, print_regions)
      (build_region_list, find_emacs_zone_regions)
      (unexec_regions_merge, read_load_commands, dump_it)
      (unexec_init_emacs_zone): Convert to ANSI C prototypes.
      
      * src/xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
      3d608a86
  12. 05 Aug, 2010 2 commits
  13. 27 Jul, 2010 1 commit
    • Dan Nicolaescu's avatar
      Remove declarations and unused variables. · 37254dc1
      Dan Nicolaescu authored
      * src/term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
      (encode_terminal_code, produce_composite_glyph): Remove unused variables.
      (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
      local extern declarations.
      37254dc1
  14. 25 Jul, 2010 1 commit
    • Juanma Barranquero's avatar
      Make building under stricter warning flags somewhat cleaner. · 361358ea
      Juanma Barranquero authored
      Flags used: -Wold-style-declaration -Wunused-function -Wstrict-prototypes
      
      * lib-src/emacsclient.c (getcwd, w32_getenv):
      * lib-src/ntlib.h (getlogin, getuid, getegid, getgid): Fix prototypes.
      
      * nt/runemacs.c (set_user_model_id): Fix prototype.
      
      * src/callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
      * src/dired.c (opendir, readdir): Fix prototypes.
      * src/editfns.c (w32_get_internal_run_time): Fix prototypes.
      * src/keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
      * src/ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
        (telldir): Remove declaration.
      * src/ralloc.c (real_morecore, __morecore): Fix prototypes.
      * src/sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
      * src/syssignal.h (strsignal): Fix prototype.
      * src/term.c (tparam): Fix prototype.
        (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
        (term_get_fkeys): Set inside "#ifndef DOS_NT".
      * src/vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
        and __morecore.
      * src/w32gui.h (XParseGeometry): Fix prototype.
      * src/w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
      * src/w32term.c (my_set_focus): Declare inside #if 0.
      * src/w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
        (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
        (drain_message_queue, get_next_msg, post_msg, parse_button)
        (ClipboardSequence_Proc): Fix prototypes.
        (wait_for_sync): Remove declaration.
      361358ea
  15. 13 Jul, 2010 2 commits
    • Dan Nicolaescu's avatar
      Remove subprocesses #ifdefs from term.c. · 01faa934
      Dan Nicolaescu authored
      * src/process.c (add_keyboard_wait_descriptor)
      (delete_keyboard_wait_descriptor): Move to common section, do
      nothing when subprocesses is not defined.
      * src/term.c (Fsuspend_tty, Fresume_tty, init_tty): Remove subprocesses #ifdefs.
      01faa934
    • Dan Nicolaescu's avatar
      Convert maybe_fatal to standard C. · b3ffc17c
      Dan Nicolaescu authored
      * src/lisp.h (verror): Declare.
      * src/eval.c (verror): New function containing the code from ...
      (error): ... this.  Call verror.
      * src/term.c (vfatal): New function containing the code from ...
      (fatal): ... this.  Call vfatal.
      (maybe_fatal): Convert to standard C, use variable number of
      arguments.  Declare as non-return.
      (init_tty): Fix maybe_fatal call.
      b3ffc17c
  16. 08 Jul, 2010 1 commit
    • Dan Nicolaescu's avatar
      Convert DEFUNs to standard C. · 5842a27b
      Dan Nicolaescu authored
      * src/alloc.c: Convert DEFUNs to standard C.
      * src/buffer.c:
      * src/bytecode.c:
      * src/callint.c:
      * src/callproc.c:
      * src/casefiddle.c:
      * src/casetab.c:
      * src/category.c:
      * src/character.c:
      * src/charset.c:
      * src/chartab.c:
      * src/cmds.c:
      * src/coding.c:
      * src/composite.c:
      * src/data.c:
      * src/dbusbind.c:
      * src/dired.c:
      * src/dispnew.c:
      * src/doc.c:
      * src/dosfns.c:
      * src/editfns.c:
      * src/emacs.c:
      * src/eval.c:
      * src/fileio.c:
      * src/filelock.c:
      * src/floatfns.c:
      * src/fns.c:
      * src/font.c:
      * src/fontset.c:
      * src/frame.c:
      * src/fringe.c:
      * src/image.c:
      * src/indent.c:
      * src/insdel.c:
      * src/keyboard.c:
      * src/keymap.c:
      * src/lread.c:
      * src/macros.c:
      * src/marker.c:
      * src/menu.c:
      * src/minibuf.c:
      * src/msdos.c:
      * src/nsfns.m:
      * src/nsmenu.m:
      * src/nsselect.m:
      * src/print.c:
      * src/process.c:
      * src/search.c:
      * src/sound.c:
      * src/syntax.c:
      * src/term.c:
      * src/terminal.c:
      * src/textprop.c:
      * src/undo.c:
      * src/w16select.c:
      * src/w32console.c:
      * src/w32fns.c:
      * src/w32font.c:
      * src/w32menu.c:
      * src/w32proc.c:
      * src/w32select.c:
      * src/window.c:
      * src/xdisp.c:
      * src/xfaces.c:
      * src/xfns.c:
      * src/xmenu.c:
      * src/xselect.c:
      * src/xsettings.c:
      * src/xsmfns.c: Likewise.
      5842a27b
  17. 07 Jul, 2010 1 commit
    • Andreas Schwab's avatar
      Replace bcopy, bzero, bcmp by memcpy, memmove, memset, memcmp · 72af86bd
      Andreas Schwab authored
      * alloc.c (overrun_check_malloc, overrun_check_realloc)
      (overrun_check_free, xstrdup, allocate_string)
      (allocate_string_data, compact_small_strings, Fmake_string)
      (make_unibyte_string, make_multibyte_string)
      (make_string_from_bytes, make_specified_string, make_float)
      (Fcons, allocate_terminal, allocate_frame, make_pure_string)
      (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
      memcpy, memmove, memset, memcmp.
      * atimer.c (start_atimer, set_alarm): Likewise.
      * buffer.c (clone_per_buffer_values, report_overlay_modification)
      (mmap_realloc, init_buffer_once): Likewise.
      * callint.c (Fcall_interactively): Likewise.
      * callproc.c (Fcall_process, Fcall_process_region, child_setup)
      (getenv_internal_1): Likewise.
      * casefiddle.c (casify_object): Likewise.
      * ccl.c (ccl_driver): Likewise.
      * character.c (str_as_multibyte, str_to_multibyte): Likewise.
      * charset.c (load_charset_map_from_file)
      (load_charset_map_from_file, load_charset_map_from_vector)
      (Fdefine_charset_internal): Likewise.
      * cm.c (Wcm_clear): Likewise.
      * coding.c (decode_eol, decode_coding_object)
      (Fset_coding_system_priority, make_subsidiaries): Likewise.
      * data.c (Faset): Likewise.
      * dired.c (directory_files_internal, file_name_completion_stat):
      Likewise.
      * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
      (clear_glyph_row, copy_row_except_pointers)
      (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
      (save_current_matrix, restore_current_matrix)
      (build_frame_matrix_from_leaf_window, mirrored_line_dance)
      (mirror_line_dance, scrolling_window): Likewise.
      * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
      Likewise.
      * doprnt.c (doprnt): Likewise.
      * editfns.c (Fuser_full_name, make_buffer_string_both)
      (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
      * emacs.c (sort_args): Likewise.
      * eval.c (Fapply, Ffuncall): Likewise.
      * fileio.c (Ffile_name_directory, make_temp_name)
      (Fexpand_file_name, search_embedded_absfilename)
      (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
      (auto_save_error): Likewise.
      * fns.c (Fstring_equal, Fcopy_sequence, concat)
      (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
      (internal_equal, Fclear_string, larger_vector, copy_hash_table)
      (Fmake_hash_table): Likewise.
      * fringe.c (Fdefine_fringe_bitmap): Likewise.
      * ftfont.c (ftfont_text_extents): Likewise.
      * getloadavg.c (getloadavg): Likewise.
      * image.c (define_image_type, make_image, make_image_cache)
      (x_create_x_image_and_pixmap, xbm_image_p)
      (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
      (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
      (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
      (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
      (tiff_image_p, tiff_read_from_memory, gif_image_p)
      (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
      Likewise.
      * indent.c (scan_for_column, compute_motion): Likewise.
      * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
      (insert_1_both, insert_from_gap, replace_range_2): Likewise.
      * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
      * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
      (kbd_buffer_store_event_hold, apply_modifiers_uncached)
      (store_user_signal_events, menu_bar_items, tool_bar_items)
      (process_tool_bar_item, append_tool_bar_item)
      (read_char_minibuf_menu_prompt, read_key_sequence)
      (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
      Likewise.
      * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
      Likewise.
      * lisp.h (STRING_COPYIN): Likewise.
      * lread.c (Fload, read1, oblookup): Likewise.
      * msdos.c (Frecent_doskeys): Likewise.
      * nsfns.m (Fx_create_frame): Likewise.
      * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
      Likewise.
      * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
      (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
      Likewise.
      * nsmenu.m (ns_update_menubar): Likewise.
      * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
      * print.c (print_unwind, printchar, strout, print_string)
      (print_error_message): Likewise.
      * process.c (conv_lisp_to_sockaddr, set_socket_option)
      (Fmake_network_process, Fnetwork_interface_list)
      (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
      (init_process): Likewise.
      * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
      * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
      Likewise.
      * scroll.c (do_scrolling, do_direct_scrolling)
      (scrolling_max_lines_saved): Likewise.
      * search.c (search_buffer, wordify, Freplace_match): Likewise.
      * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
      * syntax.c (skip_chars, skip_syntaxes): Likewise.
      * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
      (emacs_set_tty): Likewise.
      * term.c (encode_terminal_code, calculate_costs)
      (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
      Likewise.
      * termcap.c (tgetst1, gobble_line): Likewise.
      * termhooks.h (EVENT_INIT): Likewise.
      * tparam.c (tparam1): Likewise.
      * unexalpha.c (unexec): Likewise.
      * unexec.c (write_segment): Likewise.
      * unexmacosx.c (unexec_write_zero): Likewise.
      * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
      (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
      * w32font.c (w32font_list_family, w32font_text_extents)
      (w32font_list_internal, w32font_match_internal)
      (w32font_open_internal, compute_metrics, Fx_select_font):
      Likewise.
      * w32menu.c (set_frame_menubar, add_menu_item)
      (w32_menu_display_help, w32_free_submenu_strings): Likewise.
      * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
      * w32uniscribe.c (uniscribe_list_family): Likewise.
      * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
      * window.c (make_window, replace_window, set_window_buffer)
      (Fsplit_window): Likewise.
      * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
      (add_to_log, message3, x_consider_frame_title)
      (append_space_for_newline, extend_face_to_end_of_line)
      (decode_mode_spec_coding, init_glyph_string): Likewise.
      * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
      (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
      (face_attr_equal_p, make_realized_face, make_face_cache)
      (free_realized_faces, lookup_named_face, smaller_face)
      (face_with_height, lookup_derived_face)
      (x_supports_face_attributes_p, Finternal_set_font_selection_order)
      (Finternal_set_font_selection_order, realize_default_face)
      (compute_char_face, face_at_buffer_position)
      (face_for_overlay_string, face_at_string_position, merge_faces):
      Likewise.
      * xfns.c (xic_create_fontsetname, Fx_create_frame)
      (Fx_window_property, x_create_tip_frame)
      (Fx_backspace_delete_keys_p): Likewise.
      * xfont.c (xfont_list, xfont_match, xfont_list_family)
      (xfont_text_extents): Likewise.
      * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
      * xrdb.c (magic_file_p, x_get_resource): Likewise.
      * xselect.c (x_queue_event, x_get_window_property)
      (receive_incremental_selection): Likewise.
      * xsmfns.c (x_session_check_input): Likewise.
      * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
      (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
      Likewise.
      * character.h (BCOPY_SHORT): Removed.
      * config.in: Regenerate.
      * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
      * emacs.c (main) [PROFILING]: Don't declare
      dump_opcode_frequencies.
      * lisp.h (safe_bcopy): Remove declaration.
      (memset) [!HAVE_MEMSET]: Declare.
      (memcpy) [!HAVE_MEMCPY]: Likewise.
      (memmove) [!HAVE_MEMMOVE]: Likewise.
      (memcmp) [!HAVE_MEMCMP]: Likewise.
      * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
      (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
      Don't define.
      (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
      * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
      (BCOPY_DOWNWARD_SAFE): Don't define.
      * sysdep.c (memset) [!HAVE_MEMSET]: Define.
      (memcpy) [!HAVE_MEMCPY]: Define.
      (memmove) [!HAVE_MEMMOVE]: Define.
      (memcmp) [!HAVE_MEMCMP]: Define.
      
      * config.nt (HAVE_BCOPY, HAVE_BCMP): Remove undefs.
      (HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET, HAVE_MEMCMP): Add undefs.
      
      * sed2v2.inp (HAVE_MEMCPY, HAVE_MEMSET): Edit to 1.
      (HAVE_BZERO): Don't edit.
      
      * lwlib.c (lwlib_memset, lwlib_bcopy): Remove.
      (malloc_widget_value, free_widget_info, allocate_widget_instance)
      (lw_separator_p): Replace lwlib_memset, lwlib_bcopy, bzero, bcmp by
      memset, memcpy, memcmp.
      * lwlib-utils.c (XtApplyToWidgets): Likewise.
      * xlwmenu.c (XlwMenuInitialize): Likewise.
      * lwlib.h (lwlib_bcopy): Remove declaration.
      
      * ebrowse.c (add_sym, make_namespace): Replace bcopy, bzero by
      memcpy, memmove, memset.
      * pop.c (pop_retrieve, socket_connection, pop_getline): Likewise.
      
      * CPP-DEFINES (BCOPY_DOWNWARD_SAFE, BCOPY_UPWARD_SAFE)
      (GAP_USE_BCOPY, HAVE_BCMP, HAVE_BCOPY, bcmp, bcopy, bzero):
      Remove.
      
      * configure.in: Don't check for bcopy, bcmp, bzero.  Don't include
      <strings.h> and don't define bcopy, bzero, BCMP in config.h.
      72af86bd
  18. 05 Jul, 2010 1 commit
  19. 02 Jul, 2010 2 commits
    • Dan Nicolaescu's avatar
      Convert some prototypes to standard C. · c532d349
      Dan Nicolaescu authored
      * lib-src/make-docfile.c (xmalloc, xrealloc, concat, readline, fatal):
      * lib-src/b2m.c (scan_file, scan_lisp_file, scan_c_file): Convert to
      standard C prototypes.
      
      * src/term.c (term_clear_mouse_face, Fidentity):
      * src/syssignal.h (signal_handler_t):
      * src/lisp.h (memory_warnings):
      * src/coding.h (preferred_coding_system):
      * src/cm.h (evalcost):
      * src/blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
      c532d349
    • Jan D's avatar
      Remove __P and P_ from .c and .m files and definition of P_ · f57e2426
      Jan D authored
      * lisp.h:
      * atimer.h: Remove define for P_.
      
      * alloc.c: Remove __P and P_ from .c and .m files.
      * atimer.c:
      * buffer.c:
      * callint.c:
      * category.c:
      * charset.c:
      * chartab.c:
      * cm.c:
      * coding.c:
      * composite.c:
      * data.c:
      * dired.c:
      * dispnew.c:
      * doc.c:
      * editfns.c:
      * emacs.c:
      * eval.c:
      * fileio.c:
      * filelock.c:
      * fns.c:
      * font.c:
      * fontset.c:
      * frame.c:
      * ftfont.c:
      * ftxfont.c:
      * gmalloc.c:
      * gtkutil.c:
      * image.c:
      * indent.c:
      * intervals.c:
      * keyboard.c:
      * keymap.c:
      * lread.c:
      * marker.c:
      * menu.c:
      * minibuf.c:
      * print.c:
      * process.c:
      * scroll.c:
      * search.c:
      * sound.c:
      * strftime.c:
      * syntax.c:
      * sysdep.c:
      * term.c:
      * terminal.c:
      * textprop.c:
      * unexalpha.c:
      * w32console.c:
      * w32fns.c:
      * w32font.c:
      * w32menu.c:
      * w32term.c:
      * w32uniscribe.c:
      * window.c:
      * xdisp.c:
      * xfaces.c:
      * xfns.c:
      * xfont.c:
      * xftfont.c:
      * xmenu.c:
      * xselect.c:
      * xterm.c: Likewise.
      
      * ebrowse.c: Remove P_ and __P.
      * etags.c:
      * movemail.c:
      * pop.c:
      * update-game-score.c: Likewise.
      f57e2426
  20. 04 May, 2010 1 commit
    • Dan Nicolaescu's avatar
      Remove BSD_PGRPS. · 58eb6cf0
      Dan Nicolaescu authored
      * s/bsd-common.h (BSD_PGRPS): Remove undef.
      * s/gnu-linux.h (BSD_PGRPS): Remove.
      * term.c (dissociate_if_controlling_tty):
      * sysdep.c (narrow_foreground_group, widen_foreground_group)
      (init_sys_modes, reset_sys_modes):
      * emacs.c (main):
      * callproc.c (Fcall_process, child_setup): Remove code depending
      on BSD_PGRPS.
      58eb6cf0
  21. 20 Apr, 2010 2 commits
    • Eli Zaretskii's avatar
      Fix R2L paragraph display on TTY. · 93d68d0c
      Eli Zaretskii authored
       xdisp.c (unproduce_glyphs): New function.
       (display_line): Use it when produced glyphs are discarded from R2L
       glyph rows.
       (append_composite_glyph): In R2L rows, prepend the glyph rather
       than appending it.
       term.c (append_composite_glyph): In R2L rows, prepend the glyph
       rather than append it.  Set up the resolved_level and bidi_type
       attributes of the appended glyph.
      93d68d0c
    • Stefan Monnier's avatar
      Make variable forwarding explicit rather the using special values. · ce5b453a
      Stefan Monnier authored
      Basically, this makes the structure of buffer-local values and object
      forwarding explicit in the type of Lisp_Symbols rather than use
      special Lisp_Objects for that.  This tends to lead to slightly more
      verbose code, but is more C-like, simpler, and makes it easier to make
      sure we handled all cases, among other things by letting the compiler
      help us check it.
      * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
      Removing forwarding objects.
      (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
      (struct Lisp_Symbol): Make the various forms of variable-forwarding
      explicit rather than hiding them inside Lisp_Object "values".
      (XFWDTYPE): New macro.
      (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
      (XBUFFER_LOCAL_VALUE): Remove.
      (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
      (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
      (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
      (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
      (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
      Remove the Lisp_Misc_* header.
      (struct Lisp_Buffer_Local_Value): Redefine.
      (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
      (struct Lisp_Misc_Any): Add filler to get the right size.
      (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
      Lisp_Intfwd.
      (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
      (DEFVAR_KBOARD): Allocate a forwarding object.
      * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
      (let_shadows_global_binding_p): New function.
      (union Lisp_Val_Fwd): New type.
      (make_blv): New function.
      (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
      (store_symval_forwarding, swap_in_global_binding, Fboundp)
      (swap_in_symval_forwarding, find_symbol_value, Fset)
      (let_shadows_buffer_binding_p, set_internal, default_value)
      (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
      (Fkill_local_variable, Fmake_variable_frame_local)
      (Flocal_variable_p, Flocal_variable_if_set_p)
      (Fvariable_binding_locus):
      * xdisp.c (select_frame_for_redisplay):
      * lread.c (Fintern, Funintern, init_obarray, defvar_int)
      (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
      * frame.c (store_frame_param):
      * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
      * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
      value structure.
      * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
      (clone_per_buffer_values): Only adjust markers into the current buffer.
      (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
      (Fbuffer_local_value, set_buffer_internal_1)
      (swap_out_buffer_local_variables):
      Adapt to the new symbol value structure.
      (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
      (defvar_per_buffer): Take a new arg for the fwd object.
      (buffer_lisp_local_variables): Return a proper alist (different fix
      for bug#4138).
      * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
      (Fgarbage_collect): Don't handle buffer_defaults specially.
      (mark_object): Handle new symbol value structure rather than the old
      special Lisp_Misc_* objects.
      (gc_sweep) <symbols>: Free also the buffer-local-value objects.
      * term.c (set_tty_color_mode):
      * bidi.c (bidi_initialize): Don't access the ->value field directly.
      * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
      a buffer_local_flags.
      * print.c (print_object): Get rid of impossible forwarding objects.
      ce5b453a
  22. 17 Apr, 2010 1 commit
    • Eli Zaretskii's avatar
      Mirror continuation indicators for R2L lines; fix face extension on TTY. · 26cdf528
      Eli Zaretskii authored
       xdisp.c (extend_face_to_end_of_line): Fix face extension at ZV.
       term.c (produce_special_glyphs): Mirror the backslash
       continuation character in R2L lines.
       xdisp.c (set_cursor_from_row, display_line): Use
       MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
       row->continuation_lines_width.
       fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
       of continuation indicators on the fringes.
      26cdf528
  23. 13 Apr, 2010 1 commit
  24. 12 Mar, 2010 1 commit
    • Eli Zaretskii's avatar
      Don't use termcap.c on Posix platforms, only on MS-DOS. · 6da23aaa
      Eli Zaretskii authored
       configure.in <AC_CHECK_HEADERS>: Remove termcap.h.
       configure: Regenerated.
       src/Makefilie.in (termcapobj): Move termcap.o from here...
       (MSDOS_OBJ): ...to here.
       (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
       now identical to when LIBS_TERMCAP is defined.
       src/term.c: Remove (ifdef'ed away) inclusion of termcap.h.
       src/cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
       src/config.in: Regenerated.
      6da23aaa
  25. 19 Feb, 2010 1 commit
  26. 18 Feb, 2010 1 commit
  27. 13 Jan, 2010 1 commit
  28. 01 Jan, 2010 2 commits
    • Eli Zaretskii's avatar
      Retrospective commit from 2009-12-26. · 9443b3c7
      Eli Zaretskii authored
      Redesign handle_stop_backwards.
      Fix character mirroring for non-ASCII characters.
      
       xdisp.c (handle_stop_backwards): Call compute_stop_pos in the
       loop, instead of calling handle_stop.  Call handle_stop only once,
       after the loop.
       (next_element_from_buffer): Don't call handle_stop_backwards if at
       stop position.  If base_level_stop is zero, set it to 1.
      
       term.c (append_glyph): Fill resolved_level and bidi_type slots
       of struct glyph for unidirectional display.
      
       xdisp.c (set_cursor_from_row): Handle zero-width characters.
      
       bidi.c (bidi_mirror_char): More efficient code (suggested by
       Ehud Karni <ehud@unix.mvs.co.il>).  Don't even try to mirror
       non-ASCII characters.
      9443b3c7
    • Eli Zaretskii's avatar
      Retrospective commit from 2009-10-17. · 5e65aec0
      Eli Zaretskii authored
      Continue working on display of R2L glyph rows.  Reverse glyphs in
      term.c:append_glyph rather than in extend_face_to_end_of_line.
      Fix bidi iteration near BEGV and ZV.
      
       dispextern.h (struct glyph): New members resolved_level and
       bidi_type.
      
       xdisp.c (append_glyph, append_composite_glyph)
       (produce_image_glyph, append_stretch_glyph): Set them.
      
       term.c (append_glyph): Ditto.
      
       xdisp.c (display_line, next_element_from_buffer): Set the glyph
       row's reversed_p flag if the paragraph base direction is odd.
       (extend_face_to_end_of_line): Don't reverse the glyphs here.
      
       term.c (append_glyph): Reverse glyphs here.
      
       bidi.c (bidi_get_next_char_visually): Don't exit early when at ZV.
       (bidi_paragraph_init): Don't step over a newline if at BEGV.
       (bidi_paragraph_init): Handle empty buffers.
      5e65aec0
  29. 25 Nov, 2009 1 commit
  30. 19 Oct, 2009 1 commit
    • Dan Nicolaescu's avatar
      * alloc.c: Do not define struct catchtag. · d7306fe6
      Dan Nicolaescu authored
      * eval.c: Move struct catchtag definition ...
      * lisp.h: ... here.
      
      * image.c: Move png.h #include earlier to avoid warnings.
      
      * xterm.c:
      * xsmfns.c:
      * xselect.c:
      * xrdb.c:
      * xmenu.c:
      * xftfont.c:
      * xfont.c:
      * xfns.c:
      * xfaces.c:
      * xdisp.c:
      * window.c:
      * widget.c:
      * w32xfns.c:
      * w32uniscribe.c:
      * w32term.c:
      * w32select.c:
      * w32reg.c:
      * w32proc.c:
      * w32menu.c:
      * w32inevt.c:
      * w32heap.c:
      * w32font.c:
      * w32fns.c:
      * w32console.c:
      * w32.c:
      * w16select.c:
      * vm-limit.c:
      * unexsol.c:
      * unexec.c:
      * unexcw.c:
      * unexaix.c:
      * undo.c:
      * tparam.c:
      * textprop.c:
      * terminfo.c:
      * terminal.c:
      * termcap.c:
      * term.c:
      * syntax.c:
      * sound.c:
      * sheap.c:
      * search.c:
      * scroll.c:
      * region-cache.c:
      * regex.c:
      * ralloc.c:
      * process.c:
      * print.c:
      * msdos.c:
      * minibuf.c:
      * menu.c:
      * marker.c:
      * macros.c:
      * keymap.c:
      * keyboard.c:
      * intervals.c:
      * insdel.c:
      * indent.c:
      * gtkutil.c:
      * ftxfont.c:
      * ftfont.c:
      * fringe.c:
      * frame.c:
      * fontset.c:
      * font.c:
      * fns.c:
      * floatfns.c:
      * filelock.c:
      * fileio.c:
      * emacs.c:
      * editfns.c:
      * dosfns.c:
      * doprnt.c:
      * doc.c:
      * dispnew.c:
      * dired.c:
      * dbusbind.c:
      * data.c:
      * composite.c:
      * coding.c:
      * cmds.c:
      * cm.c:
      * chartab.c:
      * charset.c:
      * character.c:
      * ccl.c:
      * category.c:
      * casetab.c:
      * casefiddle.c:
      * callproc.c:
      * callint.c:
      * bytecode.c:
      * buffer.c:
      * atimer.c: Include setjmp.h.  (Bug#4643)
      
      * xlwmenu.c:
      * lwlib.c:
      * lwlib-utils.c:
      * lwlib-Xm.c:
      * lwlib-Xlw.c:
      * lwlib-Xaw.c: Include setjmp.h.
      d7306fe6
  31. 18 Oct, 2009 1 commit
    • Stefan Monnier's avatar
      Remove leftover table unibyte_to_multibyte_table. · 4c0354d7
      Stefan Monnier authored
      * character.c (unibyte_to_multibyte_table): Remove.
      (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
      * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
      * character.h (UNIBYTE_TO_CHAR): New macro.
      (MAKE_CHAR_MULTIBYTE): Use it.
      (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
      * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
      (message_dolog, set_message_1):
      * search.c (Freplace_match):
      * editfns.c (Fcompare_buffer_substrings):
      * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
      (concat):
      * insdel.c (copy_text, count_size_as_multibyte):
      Use ASCII_CHAR_P and BYTE8_TO_CHAR.
      * term.c (produce_glyphs):
      * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
      * regex.c (RE_CHAR_TO_MULTIBYTE):
      * cmds.c (internal_self_insert):
      * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
      4c0354d7
  32. 04 Oct, 2009 1 commit
  33. 03 Jul, 2009 1 commit