关闭

emacs的cvs仓库源码中的小问题

1986人阅读 评论(0) 收藏 举报
我几乎每周要从cvs仓库更新2、3次emacs的源代码,编译最新的来使用。
上次5月26日更新的。昨天5月28日晚上更新后编译时,w32term.c的错误一大堆(如下),昨天没有仔细看直接cvs up -C -D "26 may 2006",今天在nntp+news.gmane.org:gmane.emacs.devel上,看到有人问同样的问题,就更新到最新仔细看了下,是一个小问题,目前cvs中源码还没有被更正:

*** w32term.c    29 May 2006 19:12:24 +0800    1.243
--- w32term.c    29 ‘May 2006 19:12:42 +0800   
***************
*** 2451,2457 ****
      }
        if (background_width > 0)
      x_draw_glyph_string_bg_rect (s, x, s->y, background_width, s->height);
!
    s->background_filled_p = 1;
  }
 
--- 2451,2457 ----
      }
        if (background_width > 0)
      x_draw_glyph_string_bg_rect (s, x, s->y, background_width, s->height);
!     }
    s->background_filled_p = 1;
  }
少了一个括号,不过gcc给出的编译错误实在太多了,错误输出如下:
oo-spd/i386/w32term.o w32term.c
w32term.c: In function `x_draw_hollow_cursor':
w32term.c:4963: warning: passing arg 4 of `get_phys_cursor_geometry'
from incompatible pointer type
w32term.c:4963: warning: passing arg 5 of `get_phys_cursor_geometry'
from incompatible pointer type
w32term.c: In function `x_draw_stretch_glyph_string':
w32term.c:5570: warning: static declaration of
'x_set_mouse_pixel_position' follows non-static declaration
w32term.c:5547: warning: previous declaration of
'x_set_mouse_pixel_position' was here
w32term.c:5783: error: `f' undeclared (first use in this function)
w32term.c:5783: error: (Each undeclared identifier is reported only once
w32term.c:5783: error: for each function it appears in.)
w32term.c:5784: error: syntax error before "struct"
w32term.c:5892: error: syntax error before "struct"
w32term.c:6301: error: initializer element is not constant
w32term.c:6301: error: (near initialization for
`w32_redisplay_interface.scroll_run_hook')
w32term.c:6306: error: initializer element is not constant
w32term.c:6306: error: (near initialization for
`w32_redisplay_interface.flush_display')
w32term.c:6317: error: initializer element is not constant
w32term.c:6317: error: (near initialization for
`w32_redisplay_interface.draw_glyph_string')
w32term.c:6318: error: initializer element is not constant
w32term.c:6318: error: (near initialization for
`w32_redisplay_interface.define_frame_cursor')
w32term.c:6319: error: initializer element is not constant
w32term.c:6319: error: (near initialization for
`w32_redisplay_interface.clear_frame_area')
w32term.c:6320: error: initializer element is not constant
w32term.c:6320: error: (near initialization for
`w32_redisplay_interface.draw_window_cursor')
w32term.c:6323: error: initializer element is not constant
w32term.c:6323: error: (near initialization for
`w32_redisplay_interface.shift_glyphs_for_insert')
w32term.c:6545: error: syntax error at end of input
make[2]: *** [oo-spd/i386/w32term.o] Error 1
0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:76143次
    • 积分:1046
    • 等级:
    • 排名:千里之外
    • 原创:22篇
    • 转载:0篇
    • 译文:0篇
    • 评论:20条
    文章分类
    最新评论