Selaa lähdekoodia

__nonnull changes

tags/v0.9.3
Holger Lubitz 17 vuotta sitten
vanhempi
commit
d2dd4b9e31
1 muutettua tiedostoa jossa 4 lisäystä ja 2 poistoa
  1. 4
    2
      src/include/gpxe/editbox.h

+ 4
- 2
src/include/gpxe/editbox.h Näytä tiedosto

@@ -28,8 +28,10 @@ struct edit_box {
28 28
 
29 29
 extern void init_editbox ( struct edit_box *box, char *buf, size_t len,
30 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 37
  * Edit text box widget

Loading…
Peruuta
Tallenna