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,10 +295,10 @@ extern unsigned short _LINES;
295 295
 //extern int attroff ( int );
296 296
 //extern int attron ( int );
297 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 302
 extern int baudrate ( void );
303 303
 extern int beep ( void );
304 304
 //extern void bkgdset ( chtype );
@@ -588,6 +588,22 @@ static inline int attrset ( int attrs ) {
588 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 607
 static inline void bkgdset ( chtype ch ) {
592 608
 	wattrset ( stdscr, ch );
593 609
 }

Loading…
Cancel
Save