summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* * src/intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.Dan Nicolaescu2010-07-062-2/+4
|
* * configure.in (getenv): Remove K&R declaration.Dan Nicolaescu2010-07-061-5/+0
|
* Make the function member of Lisp_Subr use standard C prototypes.Dan Nicolaescu2010-07-063-43/+62
| | | | | | | * src/lisp.h (struct Lisp_Subr): Use a union for the function member. (DECL_ALIGN): Add a cast for the function. * src/eval.c (Feval, Ffuncall): Use the proper type for each type function call.
* * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to getChong Yidong2010-07-062-5/+9
| | | | fringe face id, so face-remapping-alist works (Bug#6091).
* src/w32*.c: Convert function definitions to standard C.Juanma Barranquero2010-07-0614-822/+442
|
* Fix conflicting declarations of x_get_keysym_nameAndreas Schwab2010-07-064-2/+13
| | | | | | | * xterm.c (x_get_keysym_name): Change type of parameter to int. * lisp.h: Declare x_get_keysym_name. * keyboard.c (modify_event_symbol): Don't declare x_get_keysym_name here.
* * src/ecrt0.c: Revert conversion to standard C.Dan Nicolaescu2010-07-052-3/+9
|
* Convert function definitions and declarations to standard C.Dan Nicolaescu2010-07-055-26/+26
| | | | | | | | | * src/vm-limit.c (memory_warnings): * src/keyboard.c (modify_event_symbol): * src/floatfns.c (rounding_driver, ceiling2, floor2, truncate2) (round2, emacs_rint): * src/process.c (send_process, old_sigpipe): Convert function definitions and declarations to standard C.
* Convert most remaining function definitions to standard C.Juanma Barranquero2010-07-0510-1827/+811
| | | | | | | | * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c, * xdisp.c: Convert function definitions to standard C. * cm.c (cmputc): Arg C is now int, not char. * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
* Set _NET_WM(_ICON)_NAME as per Extended Window Manager Hints (Bug#6563).Jan D2010-07-054-3/+40
| | | | | | | | | | | * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New. * xterm.c (x_term_init): Intern the _NET_WM_NAME and _NET_WM_ICON_NAME atoms. * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME and _NET_WM_ICON_NAME properties, too, matching what is done in the Gtk+ case.
* * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.Jan D2010-07-052-4/+4
|
* Fix some bad prototypes and formatting after conversion from K&R declaration.Jan D2010-07-054-60/+143
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lwlib/lwlib-Xaw.c: Include <ctype.h> for isdigit. (fill_xft_data, set_text): Remove unused variable screen. (draw_text): Cast bp to FcChar8*. (find_xft_data): Return 0 if inst or xft_data is not set. (wm_delete_window): Correct prototype. Initialize widget to 0 and return if widget is still 0 after loop. * lwlib/xlwmenu.c (XlwMenuSetValues, XlwMenuInitialize): Correct prototype. (display_menu_item): Remove unused variable gi. (make_windows_if_needed): Remove unused variable screen. (XlwMenuRedisplay): Remove unused variable i. * src/gtkutil.c (xg_get_pixbuf_from_pix_and_mask) (xg_get_image_for_pixmap, create_dialog) (xg_get_file_with_selection, xg_get_file_name, update_cl_data) (menuitem_highlight_callback, make_menu_item) (xg_create_one_menuitem, create_menus, xg_update_menu_item) (xg_create_scroll_bar, xg_update_scrollbar_pos) (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb) (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback) (xg_tool_bar_attach_callback, xg_tool_bar_help_callback) (xg_tool_bar_item_expose_callback): Reformat prototype. (xg_update_menubar): GList *group => GSList *group. (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0 before use. (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed to GTK_IMAGE (wimage). * src/xsettings.c (something_changedCB, parse_settings) (apply_xft_settings): Reformat prototype. (something_changedCB, init_gconf): Remove unused variable i. (read_settings): Remove unused variable long_len. * src/xsmfns.c (SSDATA): New macro. (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings passed to strlen/strcpy/strcat. (create_client_leader_window): Surround with #ifndef USE_GTK. Cast 7:th arg to XChangeProperty to (unsigned char *)
* * src/atimer.c: Use "" instead of <> for local includes forDan Nicolaescu2010-07-042-5/+8
| | | | consistency with the rest of the code.
* Convert declarations or definitions to standard C.Dan Nicolaescu2010-07-0419-204/+150
| | | | | | | | | | | | | | | | | | | | | | | | | | * src/xsmfns.c (smc_save_yourself_CB, smc_error_handler): * src/xrdb.c (get_system_name): * src/window.c (shrink_windows): * src/syntax.c (forw_comment): * src/scroll.c (calculate_scrolling, calculate_direct_scrolling) (ins_del_costs): * src/mem-limits.h (start_of_data): * src/lread.c (readevalloop): * src/gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser) (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu): * src/frame.c (x_get_focus_frame): * src/floatfns.c (fmod_float): * src/fileio.c (choose_write_coding_system): * src/emacs.c (fatal_error_signal, init_cmdargs, argmatch) (malloc_initialize_hook, sort_args, synchronize_locale): * src/doprnt.c (doprnt): * src/dired.c (compile_pattern): * src/data.c (fmod_float): * src/chartab.c (map_sub_char_table, map_sub_char_table_for_charset) (map_char_table_for_charset): * src/charset.c (define_charset_internal): * src/alloc.c (Fgarbage_collect): Convert declarations or definitions to standard C.
* * fileio.c (read_non_regular, read_non_regular_quit): Rename arg.Juanma Barranquero2010-07-052-5/+5
|
* * src/lread.c (read1): Fix up last change to not mess up `c'.Tetsurou Okazaki2010-07-042-24/+32
| | | | Fixes: debbugs:6490
* * strftime.c: Revert conversion to standard C ↵Juanma Barranquero2010-07-042-4/+23
| | | | (2010-07-04T07:50:25Z!dann@ics.uci.edu).
* * unexelf.c (round_up, find_section): Use ElfW macro for arguments.Juanma Barranquero2010-07-042-3/+6
|
* * print.c (strout): Use const char* for arg PTR.Juanma Barranquero2010-07-042-1/+3
|
* Fix comments and whitespace.Juanma Barranquero2010-07-045-17/+7
|
* Fix more prototypes.Juanma Barranquero2010-07-044-3/+8
| | | | | | * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval. * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval. * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
* Fix prototypes.Juanma Barranquero2010-07-044-7/+18
| | | | | | | | * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent. * fileio.c (read_non_regular, read_non_regular_quit): Pass Lisp_Object, as required by internal_condition_case_1. * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object. (analyse_first): Fix "const const".
* Convert (most) functions in src to standard C.Dan Nicolaescu2010-07-0476-4821/+1932
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/alloc.c: Convert function definitions to standard C. * src/atimer.c: * src/bidi.c: * src/bytecode.c: * src/callint.c: * src/callproc.c: * src/casefiddle.c: * src/casetab.c: * src/category.c: * src/ccl.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/doprnt.c: * src/ecrt0.c: * src/editfns.c: * src/fileio.c: * src/filelock.c: * src/filemode.c: * src/fns.c: * src/font.c: * src/fontset.c: * src/frame.c: * src/fringe.c: * src/ftfont.c: * src/ftxfont.c: * src/gtkutil.c: * src/indent.c: * src/insdel.c: * src/intervals.c: * src/keymap.c: * src/lread.c: * src/macros.c: * src/marker.c: * src/md5.c: * src/menu.c: * src/minibuf.c: * src/prefix-args.c: * src/print.c: * src/ralloc.c: * src/regex.c: * src/region-cache.c: * src/scroll.c: * src/search.c: * src/sound.c: * src/strftime.c: * src/syntax.c: * src/sysdep.c: * src/termcap.c: * src/terminal.c: * src/terminfo.c: * src/textprop.c: * src/tparam.c: * src/undo.c: * src/unexelf.c: * src/window.c: * src/xfaces.c: * src/xfns.c: * src/xfont.c: * src/xftfont.c: * src/xgselect.c: * src/xmenu.c: * src/xrdb.c: * src/xselect.c: * src/xsettings.c: * src/xsmfns.c: * src/xterm.c: Likewise.
* Fix setting colors on MS-DOS frames.Eli Zaretskii2010-07-033-77/+97
| | | | | | | | | | | | | | msdos.c (IT_set_frame_parameters): Fix setting of colors in frames other than the initial one. Fix reversal of colors when `reverse' is specified in the frame parameters. Call update_face_from_frame_parameter instead of internal-set-lisp-face-attribute. Initialize screen colors from initial_screen_colors[] when f->default_face_done_p is zero, instead of depending on being called with default-frame-alist as the alist argument. xfaces.c (update_face_from_frame_parameter): Move out of HAVE_WINDOW_SYSTEM portion. Condition window-system only parts with HAVE_WINDOW_SYSTEM.
* Fix menu bar display on MS-DOS.Eli Zaretskii2010-07-032-0/+22
| | | | | | msdos.c (IT_set_frame_parameters): Set menu-bar-lines according to menu-bar-mode, if not set in the frame parameters or in default-frame-alist.
* w32console.c (sys_tputs): Adjust argument list to prototype in term.c.Eli Zaretskii2010-07-032-1/+6
|
* Fix prototypes.Juanma Barranquero2010-07-034-3/+11
| | | | | | | | | | | | * src/cm.c (evalcost): Fix arg type. * src/cm.h (evalcost): Fix prototype. * src/lisp.h (memory_warnings): Fix prototype. * lib-src/ebrowse.c (match_qualified_namespace_alias): Pass sym* to find_namespace, not link*. * lib-src/emacsclient.c (send_to_emacs, quote_argument): Arg s is HSOCKET. * lib-src/sorted-doc.c (qsort_compare): New typedef. (main): Use it to cast cmpdoc.
* Convert some prototypes to standard C.Dan Nicolaescu2010-07-027-7/+16
| | | | | | | | | | | | | * 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.
* Fix MS-DOS build due to removal of P_.Eli Zaretskii2010-07-022-1/+7
|\ | | | | | | msdos.h (load_pixmap): Don't define away.
| * Fix the MS-DOS build due to removal of P_.Eli Zaretskii2010-07-023-3/+9
| | | | | | | | | | | | dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_ from prototypes. msdos.h (load_pixmap): Don't define away.
* | Remove __P.Jan D2010-07-026-46/+24
|/
* Remove __P and P_ from .c and .m files and definition of P_Jan D2010-07-0266-1297/+1355
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Remove P_ and __P macros.Jan D2010-07-0238-1570/+1610
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lwlib/lwlib-Xaw.h: Remove P_ and __P macros. * lwlib/lwlib-Xlw.h: * lwlib/lwlib-Xm.h: * lwlib/lwlib-int.h: * lwlib/lwlib-utils.h: * lwlib/lwlib.h: Likewise. * src/buffer.h: Remove P_ and __P macros. * src/category.h: * src/ccl.h: * src/character.h: * src/charset.h: * src/cm.h: * src/coding.h: * src/composite.h: * src/dispextern.h: * src/disptab.h: * src/font.h: * src/fontset.h: * src/frame.h: * src/gtkutil.h: * src/indent.h: * src/intervals.h: * src/keyboard.h: * src/keymap.h: * src/lisp.h: * src/macros.h: * src/md5.h: * src/menu.h: * src/msdos.h: * src/nsterm.h: * src/puresize.h: * src/region-cache.h: * src/syntax.h: * src/syssignal.h: * src/systime.h: * src/termhooks.h: * src/w32term.h: * src/widget.h: * src/window.h: * src/xgselect.h: * src/xsettings.h: * src/xterm.h: Likewise.
* Define USE_LISP_UNION_TYPE using autoconf.Dan Nicolaescu2010-07-023-4/+8
| | | | | * configure.in (--enable-use-lisp-union-type): New flag. * src/lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
* Cleanup old code.Dan Nicolaescu2010-07-025-32/+14
| | | | | | | | * src/dired.c (BSD4_3): Remove all uses, redundant with BSD4_2. * src/syssignal.h: Remove code for Lynx, not supported anymore. * src/vm-limit.c: Remove unused code the depends on emacs not being defined and NO_LIM_DATA being defined. * src/mem-limits.h: Remove dead code.
* * window.c (Fwindow_absolute_pixel_edges): Doc fix.Jan D2010-07-012-1/+3
|
* New functions that return window edges with absolute coords (bug#5721).Jan D2010-07-012-0/+77
| | | | | * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges) (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
* * nsfns.m (compute_tip_xy): Do not convert coordinates from frame parameters.Jan D2010-07-012-14/+24
|
* Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT to aid common code.Jan D2010-07-014-9/+23
| | | | | | | | | | * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar): Update FRAME_TOOLBAR_HEIGHT. * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGH * nsterm.m (x_set_window_size, initFrameFromEmacs): Renamed FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
* * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar): AddJan D2010-07-012-0/+9
| | | | BLOCK/UNBLOCK_INPUT so asserts don't trigger.
* Fix application of default-frame-alist (Bug#5378).Chong Yidong2010-06-302-5/+6
| | | | | | | | | | | | | | * lisp/frame.el (make-frame): Add default-frame-alist to the PARAMETERS argument passed to frame-creation-function (Bug#5378). * lisp/faces.el (x-handle-named-frame-geometry) (x-handle-reverse-video, x-create-frame-with-faces) (face-set-after-frame-default, tty-create-frame-with-faces): Don't separately consult default-frame-alist. It is now passed as the PARAMETER argument. * src/frame.c (get_future_frame_param, Fmake_terminal_frame): Don't check default-frame-alist.
* Fix whitespace in ChangeLogs.Juanma Barranquero2010-07-011-7/+7
|
* Avoid erroneous syscallsAndreas Schwab2010-07-013-5/+16
| | | | | | * process.c (create_process): Avoid using invalid file descriptors. * callproc.c (child_setup): Avoid closing a file descriptor twice.
* Fix typoAndreas Schwab2010-07-011-9/+9
|
* Improve doc for system font things. Return font regardless of use_system_font.Jan D2010-06-302-5/+14
| | | | | | * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font): Improve documentation. Return font regardless of use_system_font. (syms_of_xsettings): Improve documentation for font-use-system-font.
* Check FC_DUAL too. For such fonts, check width one by one.Kenichi Handa2010-06-303-2/+9
|
* Fix some whitespace in previous.Glenn Morris2010-06-291-2/+2
|
* * configure.in (HAVE_SOUND, HAVE_X_I18N, HAVE_X11R6_XIM):Glenn Morris2010-06-293-40/+15
| | | | | | | | | | Set with AC_DEFINE rather than AH_BOTTOM. * src/s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now. * admin/CPP-DEFINES: Remove INHIBIT_X11R6_XIM. * configure, src/config.in: Regenerate.
* Remove last internal use of cpp and src/{m,s}/*.h files in configure.in.Glenn Morris2010-06-291-0/+9
| | | | | * configure.in (CFLAGS, REAL_CFLAGS): Set with shell, not cpp. * configure, src/config.in: Regenerate.
* Remove some cpp that is internal to configure.in.Glenn Morris2010-06-2910-35/+12
| | | | | | | | | | | | | | | | | | | | | | | | | * configure.in (C_OPTIMIZE_SWITCH, CANNOT_DUMP, SYSTEM_MALLOC): (USE_MMAP_FOR_BUFFERS, C_WARNING_SWITCH): Set with shell, not cpp. (LIBX): Remove, just use -lX11 in the one place this was used. (cannot_dump): Replace with CANNOT_DUMP. * src/Makefile.in (CANNOT_DUMP): Update for configure name change. * src/s/freebsd.h (USE_MMAP_FOR_BUFFERS): * src/s/irix6-5.h (USE_MMAP_FOR_BUFFERS): * src/s/darwin.h (SYSTEM_MALLOC): * src/s/sol2-10.h (SYSTEM_MALLOC): Move to configure. * src/m/alpha.h: Remove old comment. * src/s/aix4-2.h: Update comment. * src/s/template.h: Remove USE_MMAP_FOR_BUFFERS. * msdos/sed1v2.inp (CANNOT_DUMP): Update for configure name change. * admin/CPP-DEFINES: Remove USE_MMAP_FOR_BUFFERS, CANNOT_DUMP. * etc/DEBUG: Update SYSTEM_MALLOC and CANNOT_DUMP references. Some re-filling.