Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37403387
en ru br
Репозитории ALT

Группа :: Графические оболочки/Прочее
Пакет: rofi

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: 0002-Workaround-for-ALT-flex-changes-ALT-35141.patch
Скачать


From c6243844d63b2ff544a53b37dc611567522f1d64 Mon Sep 17 00:00:00 2001
From: Sergey Vlasov <vsu@altlinux.ru>
Date: Mon, 9 Jul 2018 15:26:51 +0300
Subject: [PATCH] Workaround for ALT flex changes (ALT#35141)
Since flex-2.5.37-alt2 the ALT flex package contains a change which
makes the generated parser code different from the upstream version of
flex: the `%{` ... `%}` enclosed code from the rules section is inserted
before the `yylloc` local variable is initialized.  As a workaround,
initialize `yylloc` explicitly using the undocumented function parameter
name `yylloc_param`.
---
 lexer/theme-lexer.l | 1 +
 1 file changed, 1 insertion(+)
diff --git a/lexer/theme-lexer.l b/lexer/theme-lexer.l
index de53f54..1f85e00 100644
--- a/lexer/theme-lexer.l
+++ b/lexer/theme-lexer.l
@@ -241,6 +241,7 @@ CONFIGURATION (?i:configuration)
 %%
 
 %{
+yylloc = yylloc_param; /* workaround for flex ALT#35141 */
 YY_LLOC_START
 %}
 %{
-- 
2.10.5
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin