]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
curses: Correctly use [PrintfFormat] attribute
authorRico Tzschichholz <ricotz@ubuntu.com>
Sun, 25 Oct 2020 18:24:11 +0000 (19:24 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sun, 3 Jan 2021 12:00:18 +0000 (13:00 +0100)
vapi/curses.vapi

index 6dcc78e4339dc60ea6e2cd502c4d7527fd823618..ea51364d48ab654b693123472827d60864b13a1b 100644 (file)
@@ -125,10 +125,10 @@ namespace Curses {
                [CCode (cname = "mvwinstr")]
                public int mvinstr(int y, int x, string str);
                [CCode (cname = "mvwprintw")]
-               [PrintfLike]
+               [PrintfFormat]
                public int mvprintw(int y, int x, string str, ...);
                [CCode (cname = "mvwscanw")]
-               [PrintfLike]
+               [PrintfFormat]
                public int mvscanw(int y, int x, string str, ...);
                [CCode (cname = "mvwvline")]
                public int mvvline(int y, int x, ulong ch, int n);
@@ -230,7 +230,7 @@ namespace Curses {
                [CCode (cname = "wnoutrefresh")]
                public int noutrefresh();
                [CCode (cname = "wprintw")]
-               [PrintfLike]
+               [PrintfFormat]
                public int printw(string str, ...);
                [CCode (cname = "vw_printw")]
                public int vprintw(string str, va_list args);
@@ -239,7 +239,7 @@ namespace Curses {
                [CCode (cname = "wrefresh")]
                public int refresh();
                [CCode (cname = "wscanw")]
-               [PrintfLike]
+               [PrintfFormat]
                public int scanw(string str, ...);
                [CCode (cname = "vw_scanw")]
                public int vscanw(string str, va_list args);
@@ -371,9 +371,9 @@ namespace Curses {
        public int mvinsnstr(int y, int x, string str, int n);
        public int mvinsstr(int y, int x, string str);
        public int mvinstr(int y, int x, string str);
-       [PrintfLike]
+       [PrintfFormat]
        public int mvprintw(int y, int x, string str, ...);
-       [PrintfLike]
+       [PrintfFormat]
        public int mvscanw(int y, int x, string str, ...);
        public int mvvline(int y, int x, ulong ch, int n);
        public int napms(int ms);
@@ -385,7 +385,7 @@ namespace Curses {
        public int noraw();
        public int pair_content(short pair, ref Color f, ref Color b);
        public int PAIR_NUMBER(int attrs);
-       [PrintfLike]
+       [PrintfFormat]
        public int printw(string str, ...);
        public void qiflush();
        public int raw();
@@ -396,7 +396,7 @@ namespace Curses {
        public delegate int RipofflineInitFunc(Window win, int n);
        public int ripoffline(int line, RipofflineInitFunc init);
        public int savetty();
-       [PrintfLike]
+       [PrintfFormat]
        public int scanw(string str, ...);
        public int scr_dump(string str);
        public int scr_init(string str);