Browse Source

__nonnull changes

tags/v0.9.3
Holger Lubitz 17 years ago
parent
commit
e1eefee16b
1 changed files with 35 additions and 31 deletions
  1. 35
    31
      src/include/curses.h

+ 35
- 31
src/include/curses.h View File

@@ -213,13 +213,13 @@ extern int beep ( void );
213 213
 //extern void bkgdset ( chtype );
214 214
 /*extern int border ( chtype, chtype, chtype, chtype, chtype, chtype, chtype,
215 215
   chtype );*/
216
-extern int box ( WINDOW *, chtype, chtype );
216
+extern int box ( WINDOW *, chtype, chtype ) __nonnull;
217 217
 //extern bool can_change_colour ( void );
218 218
 #define can_change_color() can_change_colour()
219 219
 extern int cbreak ( void ); 
220 220
 //extern int clrtobot ( void );
221 221
 //extern int clrtoeol ( void );
222
-extern int colour_content ( short, short *, short *, short * );
222
+extern int colour_content ( short, short *, short *, short * ) __nonnull;
223 223
 #define color_content( c, r, g, b ) colour_content( (c), (r), (g), (b) )
224 224
 //extern int colour_set ( short, void * );
225 225
 #define color_set( cpno, opts ) colour_set( (cpno), (opts) )
@@ -232,10 +232,10 @@ extern int delay_output ( int );
232 232
 //extern int delch ( void );
233 233
 //extern int deleteln ( void );
234 234
 extern void delscreen ( SCREEN * );
235
-extern int delwin ( WINDOW * );
236
-extern WINDOW *derwin ( WINDOW *, int, int, int, int );
235
+extern int delwin ( WINDOW * ) __nonnull;
236
+extern WINDOW *derwin ( WINDOW *, int, int, int, int ) __nonnull;
237 237
 //extern int doupdate ( void );
238
-extern WINDOW *dupwin ( WINDOW * );
238
+extern WINDOW *dupwin ( WINDOW * ) __nonnull;
239 239
 extern int echo ( void );
240 240
 extern int echochar ( const chtype );
241 241
 extern int endwin ( void );
@@ -244,7 +244,7 @@ extern char erasechar ( void );
244 244
 extern void filter ( void );
245 245
 extern int flash ( void );
246 246
 extern int flushinp ( void );
247
-extern chtype getbkgd ( WINDOW * );
247
+extern __pure chtype getbkgd ( WINDOW * ) __nonnull;
248 248
 //extern int getch ( void );
249 249
 //extern int getnstr ( char *, int );
250 250
 //extern int getstr ( char * );
@@ -312,7 +312,7 @@ extern int mvderwin ( WINDOW *, int, int );
312 312
 //extern int mvwgetnstr ( WINDOW *, int, int, char *, int );
313 313
 //extern int mvwgetstr ( WINDOW *, int, int, char * );
314 314
 //extern int mvwhline ( WINDOW *, int, int, chtype, int );
315
-extern int mvwin ( WINDOW *, int, int );
315
+extern int mvwin ( WINDOW *, int, int ) __nonnull;
316 316
 //extern chtype mvwinch ( WINDOW *, int, int );
317 317
 //extern int mvwinchnstr ( WINDOW *, int, int, chtype *, int );
318 318
 //extern int mvwinchstr ( WINDOW *, int, int, chtype * );
@@ -337,7 +337,7 @@ extern int noraw ( void );
337 337
 extern int notimeout ( WINDOW *, bool );
338 338
 extern int overlay ( const WINDOW *, WINDOW * );
339 339
 extern int overwrite ( const WINDOW *, WINDOW * );
340
-extern int pair_content ( short, short *, short * );
340
+extern int pair_content ( short, short *, short * ) __nonnull;
341 341
 //extern int pechochar ( WINDOW *, chtype );
342 342
 //extern int pnoutrefresh ( WINDOW *, int, int, int, int, int, int );
343 343
 //extern int prefresh ( WINDOW *, int, int, int, int, int, int );
@@ -373,14 +373,14 @@ extern char *slk_label ( int );
373 373
 extern int slk_noutrefresh ( void );
374 374
 //extern int slk_refresh ( void );
375 375
 extern int slk_restore ( void );
376
-extern int slk_set ( int, const char *, int );
376
+extern int slk_set ( int, const char *, int ) __nonnull;
377 377
 extern int slk_touch ( void );
378 378
 extern int standend ( void );
379 379
 extern int standout ( void );
380 380
 //extern int start_colour ( void );
381 381
 #define start_color() start_colour()
382 382
 //extern WINDOW *subpad ( WINDOW *, int, int, int, int );
383
-extern WINDOW *subwin ( WINDOW *, int, int, int, int );
383
+extern WINDOW *subwin ( WINDOW *, int, int, int, int ) __nonnull;
384 384
 extern int syncok ( WINDOW *, bool );
385 385
 extern chtype termattrs ( void );
386 386
 extern attr_t term_attrs ( void );
@@ -403,37 +403,41 @@ extern int vid_puts ( attr_t, short, void *, int  ( *) ( int) );
403 403
 extern int vidputs ( chtype, int  ( *) ( int) );
404 404
 //extern int vline ( chtype, int );
405 405
 //extern int vwprintw ( WINDOW *, const char *, va_list );
406
-extern int vw_printw ( WINDOW *, const char *, va_list );
406
+extern int vw_printw ( WINDOW *, const char *, va_list ) __nonnull;
407 407
 //extern int vwscanw ( WINDOW *, char *, va_list );
408 408
 //extern int vw_scanw ( WINDOW *, char *, va_list );
409
-extern int waddch ( WINDOW *, const chtype );
410
-extern int waddchnstr ( WINDOW *, const chtype *, int );
409
+extern int waddch ( WINDOW *, const chtype ) __nonnull;
410
+extern int waddchnstr ( WINDOW *, const chtype *, int ) __nonnull;
411 411
 //extern int waddchstr ( WINDOW *, const chtype * );
412
-extern int waddnstr ( WINDOW *, const char *, int );
412
+extern int waddnstr ( WINDOW *, const char *, int ) __nonnull;
413 413
 //extern int waddstr ( WINDOW *, const char * );
414
-extern int wattroff ( WINDOW *, int );
415
-extern int wattron ( WINDOW *, int );
416
-extern int wattrset ( WINDOW *, int );
417
-extern int wattr_get ( WINDOW *, attr_t *, short *, void * );
418
-extern int wattr_off ( WINDOW *, attr_t, void * );
419
-extern int wattr_on ( WINDOW *, attr_t, void * );
420
-extern int wattr_set ( WINDOW *, attr_t, short, void * );
414
+extern int wattroff ( WINDOW *, int ) __nonnull;
415
+extern int wattron ( WINDOW *, int ) __nonnull;
416
+extern int wattrset ( WINDOW *, int ) __nonnull;
417
+extern int wattr_get ( WINDOW *, attr_t *, short *, void * )
418
+	__attribute__ (( nonnull (1, 2, 3)));
419
+extern int wattr_off ( WINDOW *, attr_t, void * )
420
+	__attribute__ (( nonnull (1)));
421
+extern int wattr_on ( WINDOW *, attr_t, void * )
422
+	__attribute__ (( nonnull (1)));
423
+extern int wattr_set ( WINDOW *, attr_t, short, void * )
424
+	__attribute__ (( nonnull (1)));
421 425
 //extern void wbkgdset ( WINDOW *, chtype );
422 426
 extern int wborder ( WINDOW *, chtype, chtype, chtype, chtype, chtype, chtype,
423
-		   chtype, chtype );
424
-extern int wclrtobot ( WINDOW * );
425
-extern int wclrtoeol ( WINDOW * );
427
+		   chtype, chtype ) __nonnull;
428
+extern int wclrtobot ( WINDOW * ) __nonnull;
429
+extern int wclrtoeol ( WINDOW * ) __nonnull;
426 430
 extern void wcursyncup ( WINDOW * );
427
-extern int wcolour_set ( WINDOW *, short, void * );
431
+extern int wcolour_set ( WINDOW *, short, void * ) __nonnull;
428 432
 #define wcolor_set(w,s,v) wcolour_set((w),(s),(v))
429
-extern int wdelch ( WINDOW * );
430
-extern int wdeleteln ( WINDOW * );
433
+extern int wdelch ( WINDOW * ) __nonnull;
434
+extern int wdeleteln ( WINDOW * ) __nonnull;
431 435
 extern int wechochar ( WINDOW *, const chtype );
432
-extern int werase ( WINDOW * );
436
+extern int werase ( WINDOW * ) __nonnull;
433 437
 extern int wgetch ( WINDOW * );
434 438
 extern int wgetnstr ( WINDOW *, char *, int );
435 439
 //extern int wgetstr ( WINDOW *, char * );
436
-extern int whline ( WINDOW *, chtype, int );
440
+extern int whline ( WINDOW *, chtype, int ) __nonnull;
437 441
 //extern chtype winch ( WINDOW * );
438 442
 //extern int winchnstr ( WINDOW *, chtype *, int );
439 443
 //extern int winchstr ( WINDOW *, chtype * );
@@ -444,7 +448,7 @@ extern int whline ( WINDOW *, chtype, int );
444 448
 //extern int winstr ( WINDOW *, char * );
445 449
 extern int wmove ( WINDOW *, int, int );
446 450
 //extern int wnoutrefresh ( WINDOW * );
447
-extern int wprintw ( WINDOW *, const char *, ... );
451
+extern int wprintw ( WINDOW *, const char *, ... ) __nonnull;
448 452
 //extern int wredrawln ( WINDOW *, int, int );
449 453
 //extern int wrefresh ( WINDOW * );
450 454
 //extern int wscanw ( WINDOW *, char *, ... );
@@ -456,7 +460,7 @@ extern void wsyncup ( WINDOW * );
456 460
 extern void wsyncdown ( WINDOW * );
457 461
 extern void wtimeout ( WINDOW *, int );
458 462
 //extern int wtouchln ( WINDOW *, int, int, int );
459
-extern int wvline ( WINDOW *, chtype, int );
463
+extern int wvline ( WINDOW *, chtype, int ) __nonnull;
460 464
 
461 465
 /*
462 466
  * There is frankly a ridiculous amount of redundancy within the

Loading…
Cancel
Save