File: Werror_implicit-function-declaration

package info (click to toggle)
yorick-curses 0.1-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 172 kB
  • sloc: ansic: 608; makefile: 113
file content (36 lines) | stat: -rw-r--r-- 956 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Description: Fix implicit declarations
 ywrap_static.c called functions from curses.c without declarations.
Author: Thibaut Paumard <thibaut@debian.org>
Origin: vendor
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1066635
Forwarded: no
Last-Update: 2024-08-02
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- /dev/null
+++ b/ycurses.h
@@ -0,0 +1,14 @@
+void kbdinit();
+int kbd(int wait);
+void kbdend();
+int getlines();
+int getcols();
+int ynodelay(int condition);
+int ynotimeout(int condition);
+int ykeypad(int condition);
+int ymeta(int condition);
+int yintrflush(int condition);
+int yscrollok(int condition);
+int yleaveok(int condition);
+int yclearok(int condition);
+int yidlok(int condition);
--- a/ywrap_static.c
+++ b/ywrap_static.c
@@ -2,6 +2,7 @@
 #include "play.h"
 #include "ydata.h"
 #include <curses.h>
+#include "ycurses.h"
 
 /*----------------begin curses.i */
 //extern BuiltIn Y_kbdinit;