aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJuanma Barranquero2011-03-25 19:06:33 +0100
committerJuanma Barranquero2011-03-25 19:06:33 +0100
commit6b1f9ba4770e8f488c378cfa87dc868cad62c436 (patch)
treef60d81f8e3b1d91ce60692f4a4c7644634c14fbf /src
parenta9b53ad3778a9d61fdf66681e33d2dc75f7bd8f3 (diff)
downloademacs-6b1f9ba4770e8f488c378cfa87dc868cad62c436.tar.gz
emacs-6b1f9ba4770e8f488c378cfa87dc868cad62c436.zip
src/*.c: Remove unused function parameters.
* buffer.c (defvar_per_buffer): Remove unused parameter `doc'. (DEFVAR_PER_BUFFER): Don't pass it. * dispnew.c (row_equal_p, add_row_entry): Remove unused parameter `w'. (scrolling_window): Don't pass it.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog8
-rw-r--r--src/buffer.c4
-rw-r--r--src/dispnew.c24
3 files changed, 20 insertions, 16 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 3dfc86a4778..bd06cd1869e 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,13 @@
12011-03-25 Juanma Barranquero <lekktu@gmail.com> 12011-03-25 Juanma Barranquero <lekktu@gmail.com>
2 2
3 * buffer.c (defvar_per_buffer): Remove unused parameter `doc'.
4 (DEFVAR_PER_BUFFER): Don't pass it.
5
6 * dispnew.c (row_equal_p, add_row_entry): Remove unused parameter `w'.
7 (scrolling_window): Don't pass it.
8
92011-03-25 Juanma Barranquero <lekktu@gmail.com>
10
3 * dispextern.h (glyph_matric): Use #if GLYPH_DEBUG, not #ifdef. 11 * dispextern.h (glyph_matric): Use #if GLYPH_DEBUG, not #ifdef.
4 12
5 * fileio.c (check_executable) [DOS_NT]: Remove unused variables `len' 13 * fileio.c (check_executable) [DOS_NT]: Remove unused variables `len'
diff --git a/src/buffer.c b/src/buffer.c
index da2cc1573c8..8b56b285e48 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -5224,12 +5224,12 @@ init_buffer (void)
5224#define DEFVAR_PER_BUFFER(lname, vname, type, doc) \ 5224#define DEFVAR_PER_BUFFER(lname, vname, type, doc) \
5225 do { \ 5225 do { \
5226 static struct Lisp_Buffer_Objfwd bo_fwd; \ 5226 static struct Lisp_Buffer_Objfwd bo_fwd; \
5227 defvar_per_buffer (&bo_fwd, lname, vname, type, 0); \ 5227 defvar_per_buffer (&bo_fwd, lname, vname, type); \
5228 } while (0) 5228 } while (0)
5229 5229
5230static void 5230static void
5231defvar_per_buffer (struct Lisp_Buffer_Objfwd *bo_fwd, const char *namestring, 5231defvar_per_buffer (struct Lisp_Buffer_Objfwd *bo_fwd, const char *namestring,
5232 Lisp_Object *address, Lisp_Object type, char *doc) 5232 Lisp_Object *address, Lisp_Object type)
5233{ 5233{
5234 struct Lisp_Symbol *sym; 5234 struct Lisp_Symbol *sym;
5235 int offset; 5235 int offset;
diff --git a/src/dispnew.c b/src/dispnew.c
index 1408bea2fc6..093ed9524e4 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -1297,13 +1297,11 @@ line_draw_cost (struct glyph_matrix *matrix, int vpos)
1297 1297
1298 1298
1299/* Test two glyph rows A and B for equality. Value is non-zero if A 1299/* Test two glyph rows A and B for equality. Value is non-zero if A
1300 and B have equal contents. W is the window to which the glyphs 1300 and B have equal contents. MOUSE_FACE_P non-zero means compare the
1301 rows A and B belong. It is needed here to test for partial row 1301 mouse_face_p flags of A and B, too. */
1302 visibility. MOUSE_FACE_P non-zero means compare the mouse_face_p
1303 flags of A and B, too. */
1304 1302
1305static INLINE int 1303static INLINE int
1306row_equal_p (struct window *w, struct glyph_row *a, struct glyph_row *b, int mouse_face_p) 1304row_equal_p (struct glyph_row *a, struct glyph_row *b, int mouse_face_p)
1307{ 1305{
1308 if (a == b) 1306 if (a == b)
1309 return 1; 1307 return 1;
@@ -4251,17 +4249,16 @@ static int runs_size;
4251 4249
4252static struct run **runs; 4250static struct run **runs;
4253 4251
4254/* Add glyph row ROW to the scrolling hash table during the scrolling 4252/* Add glyph row ROW to the scrolling hash table. */
4255 of window W. */
4256 4253
4257static INLINE struct row_entry * 4254static INLINE struct row_entry *
4258add_row_entry (struct window *w, struct glyph_row *row) 4255add_row_entry (struct glyph_row *row)
4259{ 4256{
4260 struct row_entry *entry; 4257 struct row_entry *entry;
4261 int i = row->hash % row_table_size; 4258 int i = row->hash % row_table_size;
4262 4259
4263 entry = row_table[i]; 4260 entry = row_table[i];
4264 while (entry && !row_equal_p (w, entry->row, row, 1)) 4261 while (entry && !row_equal_p (entry->row, row, 1))
4265 entry = entry->next; 4262 entry = entry->next;
4266 4263
4267 if (entry == NULL) 4264 if (entry == NULL)
@@ -4328,7 +4325,7 @@ scrolling_window (struct window *w, int header_line_p)
4328 && c->y == d->y 4325 && c->y == d->y
4329 && MATRIX_ROW_BOTTOM_Y (c) <= yb 4326 && MATRIX_ROW_BOTTOM_Y (c) <= yb
4330 && MATRIX_ROW_BOTTOM_Y (d) <= yb 4327 && MATRIX_ROW_BOTTOM_Y (d) <= yb
4331 && row_equal_p (w, c, d, 1)) 4328 && row_equal_p (c, d, 1))
4332 { 4329 {
4333 assign_row (c, d); 4330 assign_row (c, d);
4334 d->enabled_p = 0; 4331 d->enabled_p = 0;
@@ -4381,8 +4378,7 @@ scrolling_window (struct window *w, int header_line_p)
4381 && (MATRIX_ROW (current_matrix, i - 1)->y 4378 && (MATRIX_ROW (current_matrix, i - 1)->y
4382 == MATRIX_ROW (desired_matrix, j - 1)->y) 4379 == MATRIX_ROW (desired_matrix, j - 1)->y)
4383 && !MATRIX_ROW (desired_matrix, j - 1)->redraw_fringe_bitmaps_p 4380 && !MATRIX_ROW (desired_matrix, j - 1)->redraw_fringe_bitmaps_p
4384 && row_equal_p (w, 4381 && row_equal_p (MATRIX_ROW (desired_matrix, i - 1),
4385 MATRIX_ROW (desired_matrix, i - 1),
4386 MATRIX_ROW (current_matrix, j - 1), 1)) 4382 MATRIX_ROW (current_matrix, j - 1), 1))
4387 --i, --j; 4383 --i, --j;
4388 last_new = i; 4384 last_new = i;
@@ -4443,7 +4439,7 @@ scrolling_window (struct window *w, int header_line_p)
4443 { 4439 {
4444 if (MATRIX_ROW (current_matrix, i)->enabled_p) 4440 if (MATRIX_ROW (current_matrix, i)->enabled_p)
4445 { 4441 {
4446 entry = add_row_entry (w, MATRIX_ROW (current_matrix, i)); 4442 entry = add_row_entry (MATRIX_ROW (current_matrix, i));
4447 old_lines[i] = entry; 4443 old_lines[i] = entry;
4448 ++entry->old_uses; 4444 ++entry->old_uses;
4449 } 4445 }
@@ -4454,7 +4450,7 @@ scrolling_window (struct window *w, int header_line_p)
4454 for (i = first_new; i < last_new; ++i) 4450 for (i = first_new; i < last_new; ++i)
4455 { 4451 {
4456 xassert (MATRIX_ROW_ENABLED_P (desired_matrix, i)); 4452 xassert (MATRIX_ROW_ENABLED_P (desired_matrix, i));
4457 entry = add_row_entry (w, MATRIX_ROW (desired_matrix, i)); 4453 entry = add_row_entry (MATRIX_ROW (desired_matrix, i));
4458 ++entry->new_uses; 4454 ++entry->new_uses;
4459 entry->new_line_number = i; 4455 entry->new_line_number = i;
4460 new_lines[i] = entry; 4456 new_lines[i] = entry;