Преглед изворни кода

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

tags/v0.9.3
Michael Brown пре 18 година
родитељ
комит
f8910410fe
1 измењених фајлова са 20 додато и 4 уклоњено
  1. 20
    4
      src/include/curses.h

+ 20
- 4
src/include/curses.h Прегледај датотеку

@@ -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…
Откажи
Сачувај