OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.7 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../mc/slang.patch
  5. # Copyright (C) 2008 The OpenSDE 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. # --- SDE-COPYRIGHT-NOTE-END ---
  16. sed -i -e 's,_SLsys_\(input_pending\|getkey\),SLang_\1,g' ./src/slint.c
  17. --- ./src/slint.c.orig 2008-08-19 17:16:48.000000000 -0400
  18. +++ ./src/slint.c 2008-08-19 17:42:32.000000000 -0400
  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);
  32. }
  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