1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../mc-mp/slang.patch
5 # Copyright (C) 2007 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
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
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
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);
28 extern unsigned int SLsys_getkey (void);
29 extern int SLsys_input_pending (int);
33 #if SLANG_VERSION >= 10000
34 - else return(_SLsys_getkey ());
35 + else return(SLang_getkey ());
37 else return(SLsys_getkey());
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);
46 n = SLsys_input_pending (tsecs);