[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r104449: Use const for a string point
From: |
Dan Nicolaescu |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r104449: Use const for a string pointer. |
Date: |
Tue, 31 May 2011 07:44:16 -0700 |
User-agent: |
Bazaar (2.3.1) |
------------------------------------------------------------
revno: 104449
committer: Dan Nicolaescu <address@hidden>
branch nick: trunk
timestamp: Tue 2011-05-31 07:44:16 -0700
message:
Use const for a string pointer.
* src/dispnew.c (add_window_display_history): Use const for the string
pointer. Remove declaration, not needed.
modified:
src/ChangeLog
src/dispnew.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog 2011-05-31 05:24:53 +0000
+++ b/src/ChangeLog 2011-05-31 14:44:16 +0000
@@ -1,3 +1,8 @@
+2011-05-31 Dan Nicolaescu <address@hidden>
+
+ * dispnew.c (add_window_display_history): Use const for the string
+ pointer. Remove declaration, not needed.
+
2011-05-31 Paul Eggert <address@hidden>
Use 'inline', not 'INLINE'.
=== modified file 'src/dispnew.c'
--- a/src/dispnew.c 2011-05-28 22:39:39 +0000
+++ b/src/dispnew.c 2011-05-31 14:44:16 +0000
@@ -290,7 +290,6 @@
static unsigned history_tick;
static void add_frame_display_history (struct frame *, int);
-static void add_window_display_history (struct window *, char *, int);
/* Add to the redisplay history how window W has been displayed.
MSG is a trace containing the information how W's glyph matrix
@@ -298,7 +297,7 @@
has been interrupted for pending input. */
static void
-add_window_display_history (struct window *w, char *msg, int paused_p)
+add_window_display_history (struct window *w, const char *msg, int paused_p)
{
char *buf;
@@ -6235,9 +6234,6 @@
}
if (!inhibit_window_system && display_arg
-#ifndef CANNOT_DUMP
- && initialized
-#endif
)
{
Vinitial_window_system = Qx;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r104449: Use const for a string pointer.,
Dan Nicolaescu <=