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
 //extern void bkgdset ( chtype );
213
 //extern void bkgdset ( chtype );
214
 /*extern int border ( chtype, chtype, chtype, chtype, chtype, chtype, chtype,
214
 /*extern int border ( chtype, chtype, chtype, chtype, chtype, chtype, chtype,
215
   chtype );*/
215
   chtype );*/
216
-extern int box ( WINDOW *, chtype, chtype );
216
+extern int box ( WINDOW *, chtype, chtype ) __nonnull;
217
 //extern bool can_change_colour ( void );
217
 //extern bool can_change_colour ( void );
218
 #define can_change_color() can_change_colour()
218
 #define can_change_color() can_change_colour()
219
 extern int cbreak ( void ); 
219
 extern int cbreak ( void ); 
220
 //extern int clrtobot ( void );
220
 //extern int clrtobot ( void );
221
 //extern int clrtoeol ( void );
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
 #define color_content( c, r, g, b ) colour_content( (c), (r), (g), (b) )
223
 #define color_content( c, r, g, b ) colour_content( (c), (r), (g), (b) )
224
 //extern int colour_set ( short, void * );
224
 //extern int colour_set ( short, void * );
225
 #define color_set( cpno, opts ) colour_set( (cpno), (opts) )
225
 #define color_set( cpno, opts ) colour_set( (cpno), (opts) )
232
 //extern int delch ( void );
232
 //extern int delch ( void );
233
 //extern int deleteln ( void );
233
 //extern int deleteln ( void );
234
 extern void delscreen ( SCREEN * );
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
 //extern int doupdate ( void );
237
 //extern int doupdate ( void );
238
-extern WINDOW *dupwin ( WINDOW * );
238
+extern WINDOW *dupwin ( WINDOW * ) __nonnull;
239
 extern int echo ( void );
239
 extern int echo ( void );
240
 extern int echochar ( const chtype );
240
 extern int echochar ( const chtype );
241
 extern int endwin ( void );
241
 extern int endwin ( void );
244
 extern void filter ( void );
244
 extern void filter ( void );
245
 extern int flash ( void );
245
 extern int flash ( void );
246
 extern int flushinp ( void );
246
 extern int flushinp ( void );
247
-extern chtype getbkgd ( WINDOW * );
247
+extern __pure chtype getbkgd ( WINDOW * ) __nonnull;
248
 //extern int getch ( void );
248
 //extern int getch ( void );
249
 //extern int getnstr ( char *, int );
249
 //extern int getnstr ( char *, int );
250
 //extern int getstr ( char * );
250
 //extern int getstr ( char * );
312
 //extern int mvwgetnstr ( WINDOW *, int, int, char *, int );
312
 //extern int mvwgetnstr ( WINDOW *, int, int, char *, int );
313
 //extern int mvwgetstr ( WINDOW *, int, int, char * );
313
 //extern int mvwgetstr ( WINDOW *, int, int, char * );
314
 //extern int mvwhline ( WINDOW *, int, int, chtype, int );
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
 //extern chtype mvwinch ( WINDOW *, int, int );
316
 //extern chtype mvwinch ( WINDOW *, int, int );
317
 //extern int mvwinchnstr ( WINDOW *, int, int, chtype *, int );
317
 //extern int mvwinchnstr ( WINDOW *, int, int, chtype *, int );
318
 //extern int mvwinchstr ( WINDOW *, int, int, chtype * );
318
 //extern int mvwinchstr ( WINDOW *, int, int, chtype * );
337
 extern int notimeout ( WINDOW *, bool );
337
 extern int notimeout ( WINDOW *, bool );
338
 extern int overlay ( const WINDOW *, WINDOW * );
338
 extern int overlay ( const WINDOW *, WINDOW * );
339
 extern int overwrite ( const WINDOW *, WINDOW * );
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
 //extern int pechochar ( WINDOW *, chtype );
341
 //extern int pechochar ( WINDOW *, chtype );
342
 //extern int pnoutrefresh ( WINDOW *, int, int, int, int, int, int );
342
 //extern int pnoutrefresh ( WINDOW *, int, int, int, int, int, int );
343
 //extern int prefresh ( WINDOW *, int, int, int, int, int, int );
343
 //extern int prefresh ( WINDOW *, int, int, int, int, int, int );
373
 extern int slk_noutrefresh ( void );
373
 extern int slk_noutrefresh ( void );
374
 //extern int slk_refresh ( void );
374
 //extern int slk_refresh ( void );
375
 extern int slk_restore ( void );
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
 extern int slk_touch ( void );
377
 extern int slk_touch ( void );
378
 extern int standend ( void );
378
 extern int standend ( void );
379
 extern int standout ( void );
379
 extern int standout ( void );
380
 //extern int start_colour ( void );
380
 //extern int start_colour ( void );
381
 #define start_color() start_colour()
381
 #define start_color() start_colour()
382
 //extern WINDOW *subpad ( WINDOW *, int, int, int, int );
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
 extern int syncok ( WINDOW *, bool );
384
 extern int syncok ( WINDOW *, bool );
385
 extern chtype termattrs ( void );
385
 extern chtype termattrs ( void );
386
 extern attr_t term_attrs ( void );
386
 extern attr_t term_attrs ( void );
403
 extern int vidputs ( chtype, int  ( *) ( int) );
403
 extern int vidputs ( chtype, int  ( *) ( int) );
404
 //extern int vline ( chtype, int );
404
 //extern int vline ( chtype, int );
405
 //extern int vwprintw ( WINDOW *, const char *, va_list );
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
 //extern int vwscanw ( WINDOW *, char *, va_list );
407
 //extern int vwscanw ( WINDOW *, char *, va_list );
408
 //extern int vw_scanw ( WINDOW *, char *, va_list );
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
 //extern int waddchstr ( WINDOW *, const chtype * );
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
 //extern int waddstr ( WINDOW *, const char * );
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
 //extern void wbkgdset ( WINDOW *, chtype );
425
 //extern void wbkgdset ( WINDOW *, chtype );
422
 extern int wborder ( WINDOW *, chtype, chtype, chtype, chtype, chtype, chtype,
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
 extern void wcursyncup ( WINDOW * );
430
 extern void wcursyncup ( WINDOW * );
427
-extern int wcolour_set ( WINDOW *, short, void * );
431
+extern int wcolour_set ( WINDOW *, short, void * ) __nonnull;
428
 #define wcolor_set(w,s,v) wcolour_set((w),(s),(v))
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
 extern int wechochar ( WINDOW *, const chtype );
435
 extern int wechochar ( WINDOW *, const chtype );
432
-extern int werase ( WINDOW * );
436
+extern int werase ( WINDOW * ) __nonnull;
433
 extern int wgetch ( WINDOW * );
437
 extern int wgetch ( WINDOW * );
434
 extern int wgetnstr ( WINDOW *, char *, int );
438
 extern int wgetnstr ( WINDOW *, char *, int );
435
 //extern int wgetstr ( WINDOW *, char * );
439
 //extern int wgetstr ( WINDOW *, char * );
436
-extern int whline ( WINDOW *, chtype, int );
440
+extern int whline ( WINDOW *, chtype, int ) __nonnull;
437
 //extern chtype winch ( WINDOW * );
441
 //extern chtype winch ( WINDOW * );
438
 //extern int winchnstr ( WINDOW *, chtype *, int );
442
 //extern int winchnstr ( WINDOW *, chtype *, int );
439
 //extern int winchstr ( WINDOW *, chtype * );
443
 //extern int winchstr ( WINDOW *, chtype * );
444
 //extern int winstr ( WINDOW *, char * );
448
 //extern int winstr ( WINDOW *, char * );
445
 extern int wmove ( WINDOW *, int, int );
449
 extern int wmove ( WINDOW *, int, int );
446
 //extern int wnoutrefresh ( WINDOW * );
450
 //extern int wnoutrefresh ( WINDOW * );
447
-extern int wprintw ( WINDOW *, const char *, ... );
451
+extern int wprintw ( WINDOW *, const char *, ... ) __nonnull;
448
 //extern int wredrawln ( WINDOW *, int, int );
452
 //extern int wredrawln ( WINDOW *, int, int );
449
 //extern int wrefresh ( WINDOW * );
453
 //extern int wrefresh ( WINDOW * );
450
 //extern int wscanw ( WINDOW *, char *, ... );
454
 //extern int wscanw ( WINDOW *, char *, ... );
456
 extern void wsyncdown ( WINDOW * );
460
 extern void wsyncdown ( WINDOW * );
457
 extern void wtimeout ( WINDOW *, int );
461
 extern void wtimeout ( WINDOW *, int );
458
 //extern int wtouchln ( WINDOW *, int, int, int );
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
  * There is frankly a ridiculous amount of redundancy within the
466
  * There is frankly a ridiculous amount of redundancy within the

Loading…
Cancel
Save