Dash:
[t2.git] / package / shells / mc-mp / slang.patch
blobf5d5288c352de7f4fbec6a0805d09dc631f06073
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../mc-mp/slang.patch
5 # Copyright (C) 2007 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 --- mc-4.1.40-pre9/src/slint.c.vanilla 2007-07-29 16:31:33.000000000 +0200
18 +++ mc-4.1.40-pre9/src/slint.c 2007-07-29 16:35:54.000000000 +0200
19 @@ -75,8 +75,8 @@
20 extern unsigned int SLang_Input_Buffer_Len;
21 extern unsigned char SLang_Input_Buffer [];
22 #if SLANG_VERSION >= 10000
23 -extern unsigned int _SLsys_getkey (void);
24 -extern int _SLsys_input_pending (int);
25 +extern unsigned int Slang_getkey (void);
26 +extern int SLang_input_pending (int);
27 #else
28 extern unsigned int SLsys_getkey (void);
29 extern int SLsys_input_pending (int);
30 @@ -98,7 +98,7 @@
31 return(ch);
33 #if SLANG_VERSION >= 10000
34 - else return(_SLsys_getkey ());
35 + else return(SLang_getkey ());
36 #else
37 else return(SLsys_getkey());
38 #endif
39 @@ -110,7 +110,7 @@
40 unsigned char c;
41 if (SLang_Input_Buffer_Len) return (int) SLang_Input_Buffer_Len;
42 #if SLANG_VERSION >= 10000
43 - n = _SLsys_input_pending (tsecs);
44 + n = SLang_input_pending (tsecs);
45 #else
46 n = SLsys_input_pending (tsecs);
47 #endif