0001-programs-winhlp32-Use-noyywrap-for-macro.lex.l-and-p.patch 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. From 2472b819eabc76376d5552bd72b4f1f3cfa589da Mon Sep 17 00:00:00 2001
  2. From: Mike Swanson <mikeonthecomputer@gmail.com>
  3. Date: Sun, 22 Jan 2017 10:49:44 -0800
  4. Subject: [PATCH] programs/winhlp32: Use noyywrap for macro.lex.l and prefix
  5. flex 2.6.3 broke the previous version, but this is a well-supported
  6. way of achieving the same goal, used elsewhere in the Wine source too.
  7. To avoid warnings in compilation, also set prefix="winhlp32_" --
  8. this is consistent with how other lex files work too.
  9. Signed-off-by: Mike Swanson <mikeonthecomputer@gmail.com>
  10. ---
  11. programs/winhlp32/macro.lex.l | 7 ++-----
  12. 1 file changed, 2 insertions(+), 5 deletions(-)
  13. diff --git a/programs/winhlp32/macro.lex.l b/programs/winhlp32/macro.lex.l
  14. index 8f6945ca98..2e03660278 100644
  15. --- a/programs/winhlp32/macro.lex.l
  16. +++ b/programs/winhlp32/macro.lex.l
  17. @@ -20,7 +20,8 @@
  18. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  19. */
  20. %}
  21. -%option noinput nounput never-interactive 8bit
  22. +%option noinput nounput noyywrap never-interactive 8bit
  23. +%option prefix="winhlp32_"
  24. %x quote
  25. %{
  26. #include "config.h"
  27. @@ -367,7 +368,3 @@ WINHELP_WINDOW* MACRO_CurrentWindow(void)
  28. {
  29. return lex_data ? lex_data->window : Globals.active_win;
  30. }
  31. -
  32. -#ifndef yywrap
  33. -int yywrap(void) { return 1; }
  34. -#endif
  35. --
  36. 2.11.0