Mercurial > emacs
comparison src/floatfns.c @ 109726:64732fa6188a
Use const char* instead of char*.
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.
| author | Dan Nicolaescu <dann@ics.uci.edu> |
|---|---|
| date | Mon, 09 Aug 2010 02:35:21 -0700 |
| parents | 89a16701cde1 |
| children | e2f8226efb99 |
comparison
equal
deleted
inserted
replaced
| 109723:3783b558402b | 109726:64732fa6188a |
|---|---|
| 115 These variables are used only across the floating point library call | 115 These variables are used only across the floating point library call |
| 116 so there is no need to staticpro them. */ | 116 so there is no need to staticpro them. */ |
| 117 | 117 |
| 118 static Lisp_Object float_error_arg, float_error_arg2; | 118 static Lisp_Object float_error_arg, float_error_arg2; |
| 119 | 119 |
| 120 static char *float_error_fn_name; | 120 static const char *float_error_fn_name; |
| 121 | 121 |
| 122 /* Evaluate the floating point expression D, recording NUM | 122 /* Evaluate the floating point expression D, recording NUM |
| 123 as the original argument for error messages. | 123 as the original argument for error messages. |
| 124 D is normally an assignment expression. | 124 D is normally an assignment expression. |
| 125 Handle errors which may result in signals or may set errno. | 125 Handle errors which may result in signals or may set errno. |
| 744 | 744 |
| 745 static Lisp_Object | 745 static Lisp_Object |
| 746 rounding_driver (Lisp_Object arg, Lisp_Object divisor, | 746 rounding_driver (Lisp_Object arg, Lisp_Object divisor, |
| 747 double (*double_round) (double), | 747 double (*double_round) (double), |
| 748 EMACS_INT (*int_round2) (EMACS_INT, EMACS_INT), | 748 EMACS_INT (*int_round2) (EMACS_INT, EMACS_INT), |
| 749 char *name) | 749 const char *name) |
| 750 { | 750 { |
| 751 CHECK_NUMBER_OR_FLOAT (arg); | 751 CHECK_NUMBER_OR_FLOAT (arg); |
| 752 | 752 |
| 753 if (! NILP (divisor)) | 753 if (! NILP (divisor)) |
| 754 { | 754 { |
