summaryrefslogtreecommitdiff
path: root/misc/dialog/patches/patch-ac
blob: b8b08e7fb1dd1831e18f5c986af9f9de68357ff7 (plain)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
$NetBSD: patch-ac,v 1.8 2003/09/15 15:02:55 jschauma Exp $

--- dialog.h.orig	1995-08-18 07:35:06.000000000 -0400
+++ dialog.h	2003-09-14 21:47:41.000000000 -0400
@@ -28,7 +28,7 @@
 #ifdef ultrix
 #include <cursesX.h>
 #else
-#include <curses.h>
+#include <ncurses.h>
 #endif
 
 /*
@@ -42,6 +42,7 @@
 #define TAB 9
 #define MAX_LEN 2048
 #define BUF_SIZE (10*1024)
+#define MIN_DIALOG_WIDTH 24
 #define MIN(x,y) (x < y ? x : y)
 #define MAX(x,y) (x > y ? x : y)
 
@@ -151,6 +152,9 @@
 void draw_shadow (WINDOW * win, int y, int x, int height, int width);
 #endif
 
+int strheight (const char *p);
+int strwidth (const char *p);
+
 int dialog_yesno (const char *title, const char *prompt, int height, int width);
 int dialog_msgbox (const char *title, const char *prompt, int height,
 		int width, int pause);
@@ -171,33 +175,11 @@
  */
 #ifndef HAVE_LIBGPM
 
-extern __inline__ void
-mouse_open (void)
-{
-};
-extern __inline__ void
-mouse_close (void)
-{
-};
-extern __inline__ void
-mouse_mkregion (int y, int x, int height, int width,
-		int code)
-{
-};
-extern __inline__ void
-mouse_mkbigregion (int y, int x, int height, int width,
-		   int nitems, int th, int mode)
-{
-};
-extern __inline__ void
-mouse_setbase (int x, int y)
-{
-};
-extern __inline__ int
-mouse_wgetch (WINDOW * win)
-{
-};
-
+#define mouse_open() {}
+#define mouse_close() {}
+#define mouse_mkregion(y, x, height, width, code) {}
+#define mouse_mkbigregion(y, x, height, width, nitems, th, mode) {}
+#define mouse_setbase(x, y) {}
 #define mouse_wgetch(w) wgetch(w)
 
 #else