Received: from list by lists.gnu.org with archive (Exim 4.71) id 1ci93q-0005s7-Do for mharc-grub-devel@gnu.org; Sun, 26 Feb 2017 19:21:06 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48472) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ci93o-0005qt-4V for grub-devel@gnu.org; Sun, 26 Feb 2017 19:21:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ci93n-0007rp-B4 for grub-devel@gnu.org; Sun, 26 Feb 2017 19:21:04 -0500 Received: from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243]:33066) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ci93m-0007rL-Eh for grub-devel@gnu.org; Sun, 26 Feb 2017 19:21:02 -0500 Received: by mail-pf0-x243.google.com with SMTP id p185so3205754pfb.0 for ; Sun, 26 Feb 2017 16:21:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=z14JdlVWONv7BVymIKhmyqxfrjzIdqb46r9sC93Ho/k=; b=LJUro1kLdm+FZ/+TSKCC5nSuf7djOnTrpNJQ5Ynl8k0wV/BqT96QjM2f57mUYFwDBx 4piy/stya00I1GRtG0u2f9yCREvMi7Lq1xQQ8+1RB4S9CIgS77ZMDbWfZb4UckdgbU0w ynfwYJdvg7RleztyDXc5UkKJlRGxGBD32J+5sJ/QL5phsMARWOoViIPLsUlGFaktwqf2 c+TLXMRLxutq9cSRoHu6dcLgFPh9L3dLWwRoNFE8A1Zat87umjgru3Pd6O2bA01vuBmq 4vvifdPK8uBrgjoBh8qJB/kMfU2bKNaDlTKZC/CCYLZcingL2laYWit7bFZ8DVW0a+5j uIgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=z14JdlVWONv7BVymIKhmyqxfrjzIdqb46r9sC93Ho/k=; b=Z2LK8TpgDkYHhQXmuv55DakloURU655J5NF8Oo2vSjZxxZLsdsZc/BLjGqgEJKX2Bl 63oP24YEdMre1MoSkeeqGBokwMS9QHbApQ++VkOEKeWj81Jn00JkHnkL/UWClarEE97s FBNndBQ7Uks70JM3oygFPbweARl3QspSYZt/YQRIsUgcidRF0ru2dOwR/hw8QYFU26yH ytadSzCZlnEUF1YuDHfzEp+YRy4pWusR56eYR8sQWBoF4QL3sZLnPZkuMT97OUETZQWv xVLsms1kkyOeDAngnVTAdNulacepbjRgt35N9X3e+csjHsJOc3Uc+ydTkN77hEj8n58s VGrA== X-Gm-Message-State: AMke39kpZTvvRo/IDRvLWTy7Rb1tAC8L0aDp+pI4sd3vdRhK7x7icMwrYVcTHFrxB4xGFg== X-Received: by 10.84.225.133 with SMTP id u5mr20642339plj.109.1488154861535; Sun, 26 Feb 2017 16:21:01 -0800 (PST) Received: from localhost.localdomain ([2601:602:9c01:e86a:1fb0:47b:8245:c067]) by smtp.googlemail.com with ESMTPSA id u82sm26523453pfd.7.2017.02.26.16.20.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 26 Feb 2017 16:21:00 -0800 (PST) From: Nicholas Vinson To: skenton@ou.edu, grub-devel@gnu.org Subject: [GRUB PARTUUID PATCH V3 1/5] Fix flex-2.6.3 incompatbility issue Date: Sun, 26 Feb 2017 16:20:51 -0800 Message-Id: <20170227002055.5829-2-nvinson234@gmail.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170227002055.5829-1-nvinson234@gmail.com> References: <20170227002055.5829-1-nvinson234@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c00::243 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Feb 2017 00:21:05 -0000 --- grub-core/script/yylex.l | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/grub-core/script/yylex.l b/grub-core/script/yylex.l index 95b219170..3917904b4 100644 --- a/grub-core/script/yylex.l +++ b/grub-core/script/yylex.l @@ -31,10 +31,6 @@ #pragma GCC diagnostic ignored "-Wunused-function" #pragma GCC diagnostic ignored "-Wsign-compare" -#define yyalloc(size, scanner) (grub_malloc((size))) -#define yyfree(ptr, scanner) (grub_free((ptr))) -#define yyrealloc(ptr, size, scanner) (grub_realloc((ptr), (size))) - /* * As we don't have access to yyscanner, we cannot do much except to * print the fatal error. @@ -327,6 +323,24 @@ POS_MULTILINE {WORD}?\\\n } %% +void * +yyalloc(yy_size_t size, yyscan_t yyscanner) +{ + return grub_malloc(size); +} + +void +yyfree(void *ptr, yyscan_t yyscanner) +{ + return grub_free(ptr); +} + +void * +yyrealloc(void *ptr, yy_size_t size, yyscan_t yyscanner) +{ + return grub_realloc(ptr, size); +} + int yywrap (yyscan_t yyscanner) { -- 2.12.0