Browse Source

Add attr_{get,set,on,off} as static inlines.

tags/v0.9.3
Michael Brown 18 years ago
parent
commit
f8910410fe
1 changed files with 20 additions and 4 deletions
  1. 20
    4
      src/include/curses.h

+ 20
- 4
src/include/curses.h View File

295
 //extern int attroff ( int );
295
 //extern int attroff ( int );
296
 //extern int attron ( int );
296
 //extern int attron ( int );
297
 //extern int attrset ( int );
297
 //extern int attrset ( int );
298
-extern int attr_get ( attr_t *, short *, void * );
299
-extern int attr_off ( attr_t, void * );
300
-extern int attr_on ( attr_t, void * );
301
-extern int attr_set ( attr_t, short, void * );
298
+//extern int attr_get ( attr_t *, short *, void * );
299
+//extern int attr_off ( attr_t, void * );
300
+//extern int attr_on ( attr_t, void * );
301
+//extern int attr_set ( attr_t, short, void * );
302
 extern int baudrate ( void );
302
 extern int baudrate ( void );
303
 extern int beep ( void );
303
 extern int beep ( void );
304
 //extern void bkgdset ( chtype );
304
 //extern void bkgdset ( chtype );
588
 	return wattrset ( stdscr, attrs );
588
 	return wattrset ( stdscr, attrs );
589
 }
589
 }
590
 
590
 
591
+static inline int attr_get ( attr_t *attrs, short *pair, void *opts ) {
592
+	return wattr_get ( stdscr, attrs, pair, opts );
593
+}
594
+
595
+static inline int attr_off ( attr_t attrs, void *opts ) {
596
+	return wattr_off ( stdscr, attrs, opts );
597
+}
598
+
599
+static inline int attr_on ( attr_t attrs, void *opts ) {
600
+	return wattr_on ( stdscr, attrs, opts );
601
+}
602
+
603
+static inline int attr_set ( attr_t attrs, short cpair, void *opts ) {
604
+	return wattr_set ( stdscr, attrs, cpair, opts );
605
+}
606
+
591
 static inline void bkgdset ( chtype ch ) {
607
 static inline void bkgdset ( chtype ch ) {
592
 	wattrset ( stdscr, ch );
608
 	wattrset ( stdscr, ch );
593
 }
609
 }

Loading…
Cancel
Save