1. 12 Jul, 2010 18 commits
    • Dan Nicolaescu's avatar
      Convert function definitions to standard C. · ebd15611
      Dan Nicolaescu authored
      * src/xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
      (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
      (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
      (xaw_jump_callback, xaw_scroll_callback)
      (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
      (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
      definitions to standard C.
      * src/xmenu.c (menubar_id_to_frame, popup_get_selection)
      (popup_activate_callback, popup_deactivate_callback)
      (menu_highlight_callback, menubar_selection_callback)
      (apply_systemfont_to_dialog, apply_systemfont_to_menu)
      (free_frame_menubar, popup_selection_callback, as)
      (create_and_show_popup_menu, dialog_selection_callback)
      (create_and_show_dialog):
      * src/xfns.c (hack_wm_protocols, x_window):
      * src/xfaces.c (x_update_menu_appearance):
      * src/widget.c (get_default_char_pixel_size, pixel_to_char_size)
      (char_to_pixel_size, round_size_to_char, get_wm_shell)
      (set_frame_size, update_wm_hints, setup_frame_gcs)
      (update_various_frame_slots, update_from_various_frame_slots)
      (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
      (EmacsFrameSetValues, EmacsFrameQueryGeometry)
      (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
      ebd15611
    • Andreas Schwab's avatar
    • Eli Zaretskii's avatar
    • Eli Zaretskii's avatar
      Fix the MS-DOS build (fallout from 2010-07-12T14:16:38Z!schwab@linux-m68k.org,... · 10a44998
      Eli Zaretskii authored
      Fix the MS-DOS build (fallout from 2010-07-12T14:16:38Z!schwab@linux-m68k.org, 2010-07-12T17:04:38Z!dann@ics.uci.edu, 2010-07-12T17:21:11Z!dann@ics.uci.edu).
      
       src/process.c (setup_process_coding_systems): Move to the part
       shared by non-subprocesses systems, and make its body empty when
       subprocesses is not defined.
       (close_process_descs): Move to the part shared by non-subprocesses
       systems.
       msdos/sed1v2.inp (C_WARNINGS_SWITCH, PROFILING_CFLAGS, PROFILING_LDFLAGS):
       Edit to empty.
       msdos/sed3v2.inp(C_WARNINGS_SWITCH, PROFILING_CFLAGS, PROFILING_LDFLAGS):
       Edit to empty.
      10a44998
    • Eli Zaretskii's avatar
      Fix the MS-DOS build (fallout from 2010-07-12T14:16:38Z!schwab@linux-m68k.org,... · fc549af9
      Eli Zaretskii authored
      Fix the MS-DOS build (fallout from 2010-07-12T14:16:38Z!schwab@linux-m68k.org, 2010-07-12T17:04:38Z!dann@ics.uci.edu, 2010-07-12T17:21:11Z!dann@ics.uci.edu).
      
       msdos/sed1v2.inp (C_WARNINGS_SWITCH, PROFILING_CFLAGS, PROFILING_LDFLAGS):
       Edit to empty.
       msdos/sed3v2.inp(C_WARNINGS_SWITCH, PROFILING_CFLAGS, PROFILING_LDFLAGS):
       Edit to empty.
       src/process.c (setup_process_coding_systems): Move to the part
       shared by non-subprocesses systems, and make its body empty when
       subprocesses is not defined.
       (close_process_descs): Move to the part shared by non-subprocesses
       systems.
      fc549af9
    • Dan Nicolaescu's avatar
      5dddb7a8
    • Andreas Schwab's avatar
    • Andreas Schwab's avatar
      beb000f9
    • Andreas Schwab's avatar
      Convert old-style definitions · d5a3eaaf
      Andreas Schwab authored
      * editfns.c (transpose_markers): Convert old-style definition.
      * emacs.c (abort, shut_down_emacs, fixup_locale)
      (synchronize_system_time_locale)
      (synchronize_system_messages_locale, syms_of_emacs): Likewise.
      * floatfns.c (extract_float, matherr, init_floatfns)
      (syms_of_floatfns): Likewise.
      * fns.c (make_hash_table): Likewise.
      * ftfont.c (ftfont_get_otf, ftfont_otf_features)
      (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
      (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
      (ftfont_variation_glyphs): Likewise.
      * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
      * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
      * lread.c (read_filtered_event): Likewise.
      * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
      * process.c (wait_reading_process_output): Likewise.
      * scroll.c (do_line_insertion_deletion_costs): Likewise.
      * search.c (search_buffer, boyer_moore): Likewise.
      * syntax.c (scan_sexps_forward): Likewise.
      * xdisp.c (try_scrolling): Likewise.
      * xfaces.c (face_at_buffer_position, face_for_overlay_string)
      (face_at_string_position): Likewise.
      * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
      * xselect.c (x_get_window_property, receive_incremental_selection)
      (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
      Likewise.
      * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
      d5a3eaaf
    • Dan Nicolaescu's avatar
      Cleanups for src/callproc.c. · ded80a25
      Dan Nicolaescu authored
      * src/callproc.c (child_setup): Remove subprocesses conditional.
      Remove code dealing with SET_EMACS_PRIORITY, unused.
      ded80a25
    • Dan Nicolaescu's avatar
      * src/buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional. · 49d937f4
      Dan Nicolaescu authored
      * src/process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
      49d937f4
    • Dan Nicolaescu's avatar
      Convert function definitions to standard C and some cleanups. · 2e31d424
      Dan Nicolaescu authored
      * src/emacs.c (__do_global_ctors, __do_global_ctors_aux)
      (__do_global_dtors, __main): Use void in definition.
      (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
      Remove SYMS_MACHINE code, unused.  Remove SYMS_SYSTEM, inline
      the only users from ...
      * src/s/ms-w32.h (SYMS_SYSTEM): ... here and ...
      * src/s/msdos.h (SYMS_SYSTEM): ... here.  Remove.
      (HAVE_VOLATILE): Remove, unused.
      2e31d424
    • Dan Nicolaescu's avatar
      Convert more function definitions to standard C. · 6f704c76
      Dan Nicolaescu authored
      * src/xdisp.c (window_box_edges, handle_single_display_spec)
      (display_string): Convert definition to standard C.
      * src/scroll.c (do_direct_scrolling, scrolling_1):
      * src/dispnew.c (allocate_matrices_for_frame_redisplay)
      (mirrored_line_dance):
      * src/coding.c (code_convert_string):
      * src/charset.c (map_charset_chars):
      * src/ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
      (Fregister_ccl_program, Fregister_code_conversion_map):
      * src/keyboard.c (kbd_buffer_nr_stored): Likewise.
      (head_table): Make static and const.
      6f704c76
    • Andreas Schwab's avatar
      Properly handle C_WARNINGS_SWITCH, PROFILING_CFLAGS, PROFILING_LDFLAGS · e6cfa7c3
      Andreas Schwab authored
      * configure.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
      (PROFILING_LDFLAGS): Substitute, don't add them to CFLAGS/LDFLAGS.
      (C_OPTIMIZE_SWITCH): Remove.
      (TEMACS_LDFLAGS2): Add ${PROFILING_LDFLAGS}.
      
      * lib-src/Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
      (PROFILING_LDFLAGS): Set from substitution.
      (BASE_CFLAGS): Add  ${C_WARNINGS_SWITCH}.
      (ALL_CFLAGS, CPP_CFLAGS): Add ${PROFILING_CFLAGS}.
      (LINK_CFLAGS): Add ${PROFILING_LDFLAGS}.
      
      * lwlib/Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS): Set from
      substitution.
      (ALL_CFLAGS): Add ${C_WARNINGS_SWITCH} and ${PROFILING_CFLAGS}.
      
      * oldXMenu/Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS): Set from
      substitution.
      (ALL_CFLAGS): Add ${C_WARNINGS_SWITCH} and ${PROFILING_CFLAGS}.
      
      * src/Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
      (PROFILING_LDFLAGS): Set from substitution.
      (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
      CFLAGS last.
      e6cfa7c3
    • Eli Zaretskii's avatar
      MS-Windows follow-up for 2010-07-12T05:25:46Z!handa@etlken. · f09e4c6b
      Eli Zaretskii authored
       makefile.w32-in (lisp2): Change hebrew.el to hebrew.elc.
      f09e4c6b
    • Kenichi Handa's avatar
      Improve Hebrew rendering. · 6f2cdcd1
      Kenichi Handa authored
      6f2cdcd1
    • Kenichi Handa's avatar
      merge trunk · 23003684
      Kenichi Handa authored
      23003684
    • Kenichi Handa's avatar
      Add ChangeLog · 892dd565
      Kenichi Handa authored
      892dd565
  2. 11 Jul, 2010 16 commits
    • Chong Yidong's avatar
    • Andreas Schwab's avatar
      * blockinput.h: Remove obsolete comment. · c8fc18ee
      Andreas Schwab authored
      c8fc18ee
    • Andreas Schwab's avatar
      Use offsetof instead of own definition · 89887d67
      Andreas Schwab authored
      * lisp.h: Include <stddef.h>.
      (OFFSETOF): Don't define.
      (VECSIZE): Use offsetof instead of OFFSETOF.
      (PSEUDOVECSIZE): Likewise.
      * process.c (conv_sockaddr_to_lisp): Likewise.
      * alloc.c: Don't include <stddef.h>.
      * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
      89887d67
    • Andreas Schwab's avatar
      * process.c: Remove obsolete comment. · ae96d47a
      Andreas Schwab authored
      ae96d47a
    • Chong Yidong's avatar
    • Eli Zaretskii's avatar
      Remove redundant definitions of HAVE_STRCHR and HAVE_STRRCHR for MS-DOS. · 4ea6cb0a
      Eli Zaretskii authored
       sed2v2.inp (HAVE_STRCHR, HAVE_STRRCHR): Don't edit, already
       defined on <sys/config.h>.
      4ea6cb0a
    • Andreas Schwab's avatar
      Use strchr, strrchr instead of index, rindex · 8966b757
      Andreas Schwab authored
      * callint.c (Fcall_interactively): Use strchr, strrchr instead of
      index, rindex.
      * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
      * editfns.c (Fuser_full_name, Fformat): Likewise.
      * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
      * fileio.c (Ffile_symlink_p): Likewise.
      * filelock.c (current_lock_owner): Likewise.
      * font.c (font_parse_name, font_parse_family_registry): Likewise.
      * fontset.c (fontset_pattern_regexp): Likewise.
      * lread.c (read1): Likewise.
      * sysdep.c (init_system_name): Likewise.
      * xfns.c (select_visual): Likewise.
      * s/hpux10-20.h (index, rindex): Don't define.
      * s/ms-w32.h (index): Likewise.
      * s/usg5-4.h: Likewise.
      
      * sed2v2.inp (HAVE_INDEX, HAVE_RINDEX): Don't edit.
      (HAVE_STRCHR, HAVE_STRRCHR): Edit to 1.
      
      * emacsclient.c (set_local_socket): Use strchr, strrchr instead of
      index, rindex.
      * movemail.c (mail_spool_name, popmail): Likewise.
      * pop.c (pop_list): Likewise.
      
      * CPP-DEFINES (HAVE_INDEX, HAVE_RINDEX): Remove.
      
      * configure.in: Don't check for index and rindex, check for strchr
      and strrchr.  Define strchr and strrchr as index and rindex,
      resp., in src/config.h if not available.
      8966b757
    • Andreas Schwab's avatar
      cf237e27
    • Andreas Schwab's avatar
      Constify functions taking char * · a8fe7202
      Andreas Schwab authored
      * alloc.c (pending_malloc_warning, malloc_warning): Add const.
      * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
      (egetenv): Likewise.
      * doprnt.c (doprnt): Likewise.
      * editfns.c (set_time_zone_rule, format2): Likewise.
      * emacs.c (decode_env_path): Likewise.
      * eval.c (signal_error, error): Likewise.
      * insdel.c (replace_range_2): Likewise.
      * keyboard.c (cmd_error_internal): Likewise.
      * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
      * print.c (write_string, write_string_1, print_error_message):
      Likewise.
      * vm-limit.c (warn_function, memory_warnings): Likewise.
      * xdisp.c (message1, message1_nolog, message_with_string)
      (vmessage, message, message_nolog): Likewise.
      * emacs.c: Remove duplicate declaration.
      * keyboard.h: Likewise.
      * lisp.h: Update prototypes.
      a8fe7202
    • Andreas Schwab's avatar
      Fix indentation problem · bb8e180f
      Andreas Schwab authored
      bb8e180f
    • Andreas Schwab's avatar
      Fix implicit declaration of kbd_on_hold_p · 83380e65
      Andreas Schwab authored
      * keyboard.c: Include "process.h"
      83380e65
    • Andreas Schwab's avatar
      Remove obsolete noinline declaration · a64df650
      Andreas Schwab authored
      * eval.c (apply1, call2): Don't declare noinline.
      * fns.c (concat): Likewise.
      a64df650
    • Michael Albinus's avatar
      * net/tramp-gvfs.el (tramp-gvfs-handle-copy-file): Do not pass · 3277c1ee
      Michael Albinus authored
      empty argument to gvfs-copy.
      3277c1ee
    • Ken Raeburn's avatar
      Make doprnt and related functions ANSI C compliant, with prototypes. · 6a8033e1
      Ken Raeburn authored
      * doprnt.c (doprnt): Take a va_list argument instead of count and
      pointer.
      * eval.c (error): Change to a standard-C variadic function.
      * xdisp.c (vmessage): Renamed from message, made static, and
      changed to take a va_list argument.
      (message): New variadic wrapper.
      (message_nolog): Now a variadic function, calling vmessage.
      * lisp.h: Include stdarg.h for va_list.
      (doprnt, error, message, message_nolog): Decls updated.
      6a8033e1
    • Eli Zaretskii's avatar
      Fix bug #6603. · 994a7c3b
      Eli Zaretskii authored
       makefile.w32-in (obj): Add menu.o, bidi.o, w32uniscrobe.o, and unexw32.o.
      994a7c3b
    • Eli Zaretskii's avatar
      Don't use `subprocesses' in msdos.c. · 462aa963
      Eli Zaretskii authored
       msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
       (delete_exited_processes): Don't define.
       process.c (syms_of_process) <delete-exited-processes>: Define
       even if !subprocesses.
       (delete_exited_processes): Ditto.
      462aa963
  3. 10 Jul, 2010 6 commits