Ticket #13025: minicom_window_patch

File minicom_window_patch, 1.2 KB (added by gauchi@…, 16 years ago)

Workaround to the compilation error. I have no deeper understanding about whether the BC in termcap.h should be identified with the BC in window.c. With this patch applied, they don't. If identification is intended, the program will probably misbehave

Line 
1--- window.c    2003-05-16 22:06:26.000000000 +0200
2+++ ../../window.c      2007-11-06 09:11:08.000000000 +0100
3@@ -62,7 +62,7 @@
4 static char *CS, *SF, *SR, *VB, *BL;
5 static char *VE, *VI, *KS, *KE;
6 static char *CD, *CL, *IC, *DC;
7-static char *BC, *CR, *NL;
8+static char *BC_mc, *CR, *NL;
9 #if ST_LINE
10 static char *TS, *FS, *DS;
11 #endif
12@@ -322,8 +322,8 @@
13   else if (NL != CNULL && x == 0 && x == curx && y == cury + 1)
14        outstr(NL);
15 #endif
16-  else if (BC != CNULL && y == cury && x == curx - 1)
17-       outstr(BC);
18+  else if (BC_mc != CNULL && y == cury && x == curx - 1)
19+       outstr(BC_mc);
20   else
21        outstr(tgoto(CM, x, y));
22   curx = x;
23@@ -1918,7 +1918,7 @@
24   CL = tgetstr("cl", &_tptr);
25   IC = tgetstr("ic", &_tptr);
26   DC = tgetstr("dc", &_tptr);
27-  BC = tgetstr("bc", &_tptr);
28+  BC_mc = tgetstr("bc", &_tptr);
29   CR = tgetstr("cr", &_tptr);
30   NL = tgetstr("nl", &_tptr);
31   AC = tgetstr("ac", &_tptr);
32@@ -1967,10 +1967,10 @@
33   _has_am = tgetflag("am");
34   _mv_standout = tgetflag("ms");
35   if (tgetflag("bs")) {
36-    if (BC == CNULL) BC = "\b";
37+    if (BC_mc == CNULL) BC_mc = "\b";
38   }
39   else
40-    BC = CNULL;       
41+    BC_mc = CNULL;     
42 
43   /* Special IBM box-drawing characters */
44   D_UL  = 201;