Prechádzať zdrojové kódy

ERR: Added function declarations from curses.h. They are not present on some platforms. Fixes warnings about implicit declarations.

Brad King 23 rokov pred
rodič
commit
5bed7ca691
1 zmenil súbory, kde vykonal 15 pridanie a 0 odobranie
  1. 15 0
      Source/CursesDialog/form/frm_driver.c

+ 15 - 0
Source/CursesDialog/form/frm_driver.c

@@ -43,6 +43,21 @@
 
 MODULE_ID("$Id$")
 
+/* These declarations are missing from curses.h on some platforms.  */
+extern int winnstr(WINDOW *, char *, int);
+extern int waddnstr(WINDOW *,const char *const,int);
+extern void wbkgdset(WINDOW *,chtype);
+#ifndef untouchwin
+extern int untouchwin(WINDOW *);
+#endif
+extern void wcursyncup(WINDOW *);
+extern int copywin(const WINDOW*,WINDOW*,int,int,int,int,int,int,int);
+extern bool is_linetouched(WINDOW *,int);
+extern void wsyncup(WINDOW *);
+extern WINDOW *derwin(WINDOW *,int,int,int,int);
+extern int winsnstr(WINDOW *, const char *,int);
+extern int winsdelln(WINDOW *,int);
+
 /*----------------------------------------------------------------------------
   This is the core module of the form library. It contains the majority
   of the driver routines as well as the form_driver function.