pisilinux-wx.patch 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. Index: src/sdk/macrosmanager.cpp
  2. ===================================================================
  3. --- src/sdk/macrosmanager.cpp (revision 7665)
  4. +++ src/sdk/macrosmanager.cpp (working copy)
  5. @@ -86,19 +86,19 @@
  6. m_RE_IfSp.Compile(_T("[^=!<>]+|(([^=!<>]+)[ ]*(=|==|!=|>|<|>=|<=)[ ]*([^=!<>]+))"), wxRE_EXTENDED | wxRE_NEWLINE);
  7. m_RE_Script.Compile(_T("(\\[\\[(.*)\\]\\])"), wxRE_EXTENDED | wxRE_NEWLINE);
  8. m_RE_ToAbsolutePath.Compile(_T("\\$TO_ABSOLUTE_PATH{([^}]*)}"),
  9. -#ifndef __WXMAC__
  10. +#ifdef wxHAS_REGEX_ADVANCED
  11. wxRE_ADVANCED);
  12. #else
  13. wxRE_EXTENDED);
  14. #endif
  15. m_RE_To83Path.Compile(_T("\\$TO_83_PATH{([^}]*)}"),
  16. -#ifndef __WXMAC__
  17. +#ifdef wxHAS_REGEX_ADVANCED
  18. wxRE_ADVANCED);
  19. #else
  20. wxRE_EXTENDED);
  21. #endif
  22. m_RE_RemoveQuotes.Compile(_T("\\$REMOVE_QUOTES{([^}]*)}"),
  23. -#ifndef __WXMAC__
  24. +#ifdef wxHAS_REGEX_ADVANCED
  25. wxRE_ADVANCED);
  26. #else
  27. wxRE_EXTENDED);
  28. Index: src/plugins/contrib/ToolsPlus/PipedProcessCtrl.cpp
  29. ===================================================================
  30. --- src/plugins/contrib/ToolsPlus/PipedProcessCtrl.cpp (revision 7665)
  31. +++ src/plugins/contrib/ToolsPlus/PipedProcessCtrl.cpp (working copy)
  32. @@ -206,7 +206,12 @@
  33. void PipedProcessCtrl::ParseLinks(int lineno, int lastline)
  34. {
  35. - wxRegEx re(m_linkregex,wxRE_ADVANCED|wxRE_NEWLINE);
  36. + #ifdef wxHAS_REGEX_ADVANCED
  37. + wxRegEx re(m_linkregex,wxRE_ADVANCED|wxRE_NEWLINE);
  38. + #else
  39. + wxRegEx re(m_linkregex,wxRE_EXTENDED|wxRE_NEWLINE);
  40. + #endif
  41. +
  42. while(lineno<lastline)
  43. {
  44. int col=0;
  45. @@ -305,7 +310,11 @@
  46. wxString text=m_textctrl->GetTextRange(start,end+1);
  47. //retrieve the file and line number parts of the link
  48. - wxRegEx re(m_linkregex,wxRE_ADVANCED|wxRE_NEWLINE);
  49. + #ifdef wxHAS_REGEX_ADVANCED
  50. + wxRegEx re(m_linkregex,wxRE_ADVANCED|wxRE_NEWLINE);
  51. + #else
  52. + wxRegEx re(m_linkregex,wxRE_EXTENDED|wxRE_NEWLINE);
  53. + #endif
  54. wxString file;
  55. long line;
  56. if(!re.Matches(text))
  57. Index: src/plugins/contrib/DoxyBlocks/Expressions.h
  58. ===================================================================
  59. --- src/plugins/contrib/DoxyBlocks/Expressions.h (revision 7665)
  60. +++ src/plugins/contrib/DoxyBlocks/Expressions.h (working copy)
  61. @@ -84,7 +84,7 @@
  62. "([^)]*)?" // The function's parameters.
  63. "\\)" // The closing parenthesis.
  64. ),
  65. -#ifndef __WXMAC__
  66. +#ifdef wxHAS_REGEX_ADVANCED
  67. wxRE_ADVANCED);
  68. #else
  69. wxRE_EXTENDED);
  70. @@ -104,7 +104,7 @@
  71. "([^)]*)?" // The function's parameters.
  72. "\\)" // The closing parenthesis.
  73. ),
  74. -#ifndef __WXMAC__
  75. +#ifdef wxHAS_REGEX_ADVANCED
  76. wxRE_ADVANCED);
  77. #else
  78. wxRE_EXTENDED);