Mercurial > emacs
comparison src/keyboard.c @ 109313:e856a274549b
Constify functions taking char *
* 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.
author | Andreas Schwab <schwab@linux-m68k.org> |
---|---|
date | Sun, 11 Jul 2010 11:27:13 +0200 |
parents | d81bdcde8ec3 |
children | f37b85834f7e |
comparison
equal
deleted
inserted
replaced
109312:67391fa3496b | 109313:e856a274549b |
---|---|
1236 describes the context in which the error happened. If we need to | 1236 describes the context in which the error happened. If we need to |
1237 generalize CONTEXT to allow multibyte characters, make it a Lisp | 1237 generalize CONTEXT to allow multibyte characters, make it a Lisp |
1238 string. */ | 1238 string. */ |
1239 | 1239 |
1240 void | 1240 void |
1241 cmd_error_internal (Lisp_Object data, char *context) | 1241 cmd_error_internal (Lisp_Object data, const char *context) |
1242 { | 1242 { |
1243 struct frame *sf = SELECTED_FRAME (); | 1243 struct frame *sf = SELECTED_FRAME (); |
1244 | 1244 |
1245 /* The immediate context is not interesting for Quits, | 1245 /* The immediate context is not interesting for Quits, |
1246 since they are asyncronous. */ | 1246 since they are asyncronous. */ |