aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Schwab2010-12-27 18:23:29 +0100
committerAndreas Schwab2010-12-27 18:23:29 +0100
commit59fc5cf9ec3651c142c9482db6f8ff5d735ad9c8 (patch)
treeac30a8088521e6df7419505198d61e2cd06db985 /src
parentfe99f70420c0d133808de6f0b67406e38abc57a5 (diff)
downloademacs-59fc5cf9ec3651c142c9482db6f8ff5d735ad9c8.tar.gz
emacs-59fc5cf9ec3651c142c9482db6f8ff5d735ad9c8.zip
Protoize
* dispnew.c (add_window_display_history) (add_frame_display_history, glyph_row_slice_p) (find_glyph_row_slice, flush_stdout) (check_matrix_pointer_lossage, matrix_row) (check_matrix_invariants, check_window_matrix_pointers) (check_matrix_pointers, window_to_frame_vpos) (window_to_frame_hpos): Prototize. * textprop.c (erase_properties): Likewise.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog11
-rw-r--r--src/dispnew.c44
-rw-r--r--src/textprop.c3
3 files changed, 26 insertions, 32 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 820c4469317..c640a9ef814 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,14 @@
12010-12-27 Andreas Schwab <schwab@linux-m68k.org>
2
3 * dispnew.c (add_window_display_history)
4 (add_frame_display_history, glyph_row_slice_p)
5 (find_glyph_row_slice, flush_stdout)
6 (check_matrix_pointer_lossage, matrix_row)
7 (check_matrix_invariants, check_window_matrix_pointers)
8 (check_matrix_pointers, window_to_frame_vpos)
9 (window_to_frame_hpos): Prototize.
10 * textprop.c (erase_properties): Likewise.
11
12010-12-22 Stefan Monnier <monnier@iro.umontreal.ca> 122010-12-22 Stefan Monnier <monnier@iro.umontreal.ca>
2 13
3 * print.c (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): Remove. 14 * print.c (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): Remove.
diff --git a/src/dispnew.c b/src/dispnew.c
index fa13024cf2e..3fff902e36d 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -358,10 +358,7 @@ static void add_window_display_history (struct window *, char *, int);
358 has been interrupted for pending input. */ 358 has been interrupted for pending input. */
359 359
360static void 360static void
361add_window_display_history (w, msg, paused_p) 361add_window_display_history (struct window *w, char *msg, int paused_p)
362 struct window *w;
363 char *msg;
364 int paused_p;
365{ 362{
366 char *buf; 363 char *buf;
367 364
@@ -387,9 +384,7 @@ add_window_display_history (w, msg, paused_p)
387 pending input. */ 384 pending input. */
388 385
389static void 386static void
390add_frame_display_history (f, paused_p) 387add_frame_display_history (struct frame *f, int paused_p)
391 struct frame *f;
392 int paused_p;
393{ 388{
394 char *buf; 389 char *buf;
395 390
@@ -1244,8 +1239,7 @@ assign_row (struct glyph_row *to, struct glyph_row *from)
1244#if GLYPH_DEBUG 1239#if GLYPH_DEBUG
1245 1240
1246static int 1241static int
1247glyph_row_slice_p (window_row, frame_row) 1242glyph_row_slice_p (struct glyph_row *window_row, struct glyph_row *frame_row)
1248 struct glyph_row *window_row, *frame_row;
1249{ 1243{
1250 struct glyph *window_glyph_start = window_row->glyphs[0]; 1244 struct glyph *window_glyph_start = window_row->glyphs[0];
1251 struct glyph *frame_glyph_start = frame_row->glyphs[0]; 1245 struct glyph *frame_glyph_start = frame_row->glyphs[0];
@@ -1264,9 +1258,8 @@ glyph_row_slice_p (window_row, frame_row)
1264 in WINDOW_MATRIX is found satisfying the condition. */ 1258 in WINDOW_MATRIX is found satisfying the condition. */
1265 1259
1266static struct glyph_row * 1260static struct glyph_row *
1267find_glyph_row_slice (window_matrix, frame_matrix, row) 1261find_glyph_row_slice (struct glyph_matrix *window_matrix,
1268 struct glyph_matrix *window_matrix, *frame_matrix; 1262 struct glyph_matrix *frame_matrix, int row)
1269 int row;
1270{ 1263{
1271 int i; 1264 int i;
1272 1265
@@ -1570,7 +1563,7 @@ realloc_glyph_pool (struct glyph_pool *pool, struct dim matrix_dim)
1570*/ 1563*/
1571 1564
1572void 1565void
1573flush_stdout () 1566flush_stdout (void)
1574{ 1567{
1575 fflush (stdout); 1568 fflush (stdout);
1576} 1569}
@@ -1582,8 +1575,7 @@ flush_stdout ()
1582 MATRIX. */ 1575 MATRIX. */
1583 1576
1584void 1577void
1585check_matrix_pointer_lossage (matrix) 1578check_matrix_pointer_lossage (struct glyph_matrix *matrix)
1586 struct glyph_matrix *matrix;
1587{ 1579{
1588 int i, j; 1580 int i, j;
1589 1581
@@ -1598,9 +1590,7 @@ check_matrix_pointer_lossage (matrix)
1598/* Get a pointer to glyph row ROW in MATRIX, with bounds checks. */ 1590/* Get a pointer to glyph row ROW in MATRIX, with bounds checks. */
1599 1591
1600struct glyph_row * 1592struct glyph_row *
1601matrix_row (matrix, row) 1593matrix_row (struct glyph_matrix *matrix, int row)
1602 struct glyph_matrix *matrix;
1603 int row;
1604{ 1594{
1605 xassert (matrix && matrix->rows); 1595 xassert (matrix && matrix->rows);
1606 xassert (row >= 0 && row < matrix->nrows); 1596 xassert (row >= 0 && row < matrix->nrows);
@@ -1624,8 +1614,7 @@ matrix_row (matrix, row)
1624 window W. */ 1614 window W. */
1625 1615
1626static void 1616static void
1627check_matrix_invariants (w) 1617check_matrix_invariants (struct window *w)
1628 struct window *w;
1629{ 1618{
1630 struct glyph_matrix *matrix = w->current_matrix; 1619 struct glyph_matrix *matrix = w->current_matrix;
1631 int yb = window_text_bottom_y (w); 1620 int yb = window_text_bottom_y (w);
@@ -3146,8 +3135,7 @@ mirror_line_dance (struct window *w, int unchanged_at_top, int nlines, int *copy
3146 glyph pointers. */ 3135 glyph pointers. */
3147 3136
3148void 3137void
3149check_window_matrix_pointers (w) 3138check_window_matrix_pointers (struct window *w)
3150 struct window *w;
3151{ 3139{
3152 while (w) 3140 while (w)
3153 { 3141 {
@@ -3173,8 +3161,8 @@ check_window_matrix_pointers (w)
3173 corresponding frame row. If it isn't, abort. */ 3161 corresponding frame row. If it isn't, abort. */
3174 3162
3175static void 3163static void
3176check_matrix_pointers (window_matrix, frame_matrix) 3164check_matrix_pointers (struct glyph_matrix *window_matrix,
3177 struct glyph_matrix *window_matrix, *frame_matrix; 3165 struct glyph_matrix *frame_matrix)
3178{ 3166{
3179 /* Row number in WINDOW_MATRIX. */ 3167 /* Row number in WINDOW_MATRIX. */
3180 int i = 0; 3168 int i = 0;
@@ -3208,9 +3196,7 @@ check_matrix_pointers (window_matrix, frame_matrix)
3208 vertical position relative to W's frame. */ 3196 vertical position relative to W's frame. */
3209 3197
3210static int 3198static int
3211window_to_frame_vpos (w, vpos) 3199window_to_frame_vpos (struct window *w, int vpos)
3212 struct window *w;
3213 int vpos;
3214{ 3200{
3215 struct frame *f = XFRAME (w->frame); 3201 struct frame *f = XFRAME (w->frame);
3216 3202
@@ -3226,9 +3212,7 @@ window_to_frame_vpos (w, vpos)
3226 a horizontal position relative to W's frame. */ 3212 a horizontal position relative to W's frame. */
3227 3213
3228static int 3214static int
3229window_to_frame_hpos (w, hpos) 3215window_to_frame_hpos (struct window *w, int hpos)
3230 struct window *w;
3231 int hpos;
3232{ 3216{
3233 xassert (!FRAME_WINDOW_P (XFRAME (w->frame))); 3217 xassert (!FRAME_WINDOW_P (XFRAME (w->frame)));
3234 hpos += WINDOW_LEFT_EDGE_COL (w); 3218 hpos += WINDOW_LEFT_EDGE_COL (w);
diff --git a/src/textprop.c b/src/textprop.c
index 9016705d764..937c9ab94f6 100644
--- a/src/textprop.c
+++ b/src/textprop.c
@@ -501,8 +501,7 @@ remove_properties (Lisp_Object plist, Lisp_Object list, INTERVAL i, Lisp_Object
501 if this changes the interval. */ 501 if this changes the interval. */
502 502
503static INLINE int 503static INLINE int
504erase_properties (i) 504erase_properties (INTERVAL i)
505 INTERVAL i;
506{ 505{
507 if (NILP (i->plist)) 506 if (NILP (i->plist))
508 return 0; 507 return 0;