浏览代码

__nonnull changes

tags/v0.9.3
Holger Lubitz 18 年前
父节点
当前提交
d2dd4b9e31
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4
    2
      src/include/gpxe/editbox.h

+ 4
- 2
src/include/gpxe/editbox.h 查看文件

28
 
28
 
29
 extern void init_editbox ( struct edit_box *box, char *buf, size_t len,
29
 extern void init_editbox ( struct edit_box *box, char *buf, size_t len,
30
 			   WINDOW *win, unsigned int row, unsigned int col,
30
 			   WINDOW *win, unsigned int row, unsigned int col,
31
-			   unsigned int width );
32
-extern void draw_editbox ( struct edit_box *box );
31
+			   unsigned int width ) 
32
+			   __attribute__ (( nonnull (1, 2) ));
33
+extern void draw_editbox ( struct edit_box *box ) __nonnull;
34
+static inline int __pure edit_editbox ( struct edit_box *box, int key ) __nonnull;
33
 
35
 
34
 /**
36
 /**
35
  * Edit text box widget
37
  * Edit text box widget

正在加载...
取消
保存