comparison src/print.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 8cfee7d2955f
children 228a5fa4eda0
comparison
equal deleted inserted replaced
109312:67391fa3496b 109313:e856a274549b
538 /* Used from outside of print.c to print a block of SIZE 538 /* Used from outside of print.c to print a block of SIZE
539 single-byte chars at DATA on the default output stream. 539 single-byte chars at DATA on the default output stream.
540 Do not use this on the contents of a Lisp string. */ 540 Do not use this on the contents of a Lisp string. */
541 541
542 void 542 void
543 write_string (char *data, int size) 543 write_string (const char *data, int size)
544 { 544 {
545 PRINTDECLARE; 545 PRINTDECLARE;
546 Lisp_Object printcharfun; 546 Lisp_Object printcharfun;
547 547
548 printcharfun = Vstandard_output; 548 printcharfun = Vstandard_output;
555 /* Used from outside of print.c to print a block of SIZE 555 /* Used from outside of print.c to print a block of SIZE
556 single-byte chars at DATA on a specified stream PRINTCHARFUN. 556 single-byte chars at DATA on a specified stream PRINTCHARFUN.
557 Do not use this on the contents of a Lisp string. */ 557 Do not use this on the contents of a Lisp string. */
558 558
559 void 559 void
560 write_string_1 (char *data, int size, Lisp_Object printcharfun) 560 write_string_1 (const char *data, int size, Lisp_Object printcharfun)
561 { 561 {
562 PRINTDECLARE; 562 PRINTDECLARE;
563 563
564 PRINTPREPARE; 564 PRINTPREPARE;
565 strout (data, size, size, printcharfun, 0); 565 strout (data, size, size, printcharfun, 0);
1005 STREAM (suitable for the print functions). 1005 STREAM (suitable for the print functions).
1006 CONTEXT is a C string describing the context of the error. 1006 CONTEXT is a C string describing the context of the error.
1007 CALLER is the Lisp function inside which the error was signaled. */ 1007 CALLER is the Lisp function inside which the error was signaled. */
1008 1008
1009 void 1009 void
1010 print_error_message (Lisp_Object data, Lisp_Object stream, char *context, Lisp_Object caller) 1010 print_error_message (Lisp_Object data, Lisp_Object stream, const char *context,
1011 Lisp_Object caller)
1011 { 1012 {
1012 Lisp_Object errname, errmsg, file_error, tail; 1013 Lisp_Object errname, errmsg, file_error, tail;
1013 struct gcpro gcpro1; 1014 struct gcpro gcpro1;
1014 int i; 1015 int i;
1015 1016