From patchwork Mon May 23 08:10:28 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaud Lacombe X-Patchwork-Id: 807872 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.3) with ESMTP id p4N8B6oS032713 for ; Mon, 23 May 2011 08:11:06 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753866Ab1EWILG (ORCPT ); Mon, 23 May 2011 04:11:06 -0400 Received: from mail-iy0-f174.google.com ([209.85.210.174]:45855 "EHLO mail-iy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752713Ab1EWILF (ORCPT ); Mon, 23 May 2011 04:11:05 -0400 Received: by mail-iy0-f174.google.com with SMTP id 14so4457027iyb.19 for ; Mon, 23 May 2011 01:11:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references; bh=9e7m+gH7hWlPiFzlgiaAEkV4Frz2RqCEuPDhGbJUBIY=; b=EdWrn/9HdigBdT5mkGGlmTXzDYP+7bvuMPRaJnkOtnlkfTWLUda4MCZg7xp+hzVJLc i5bc7F3CVWK6NpCrxm5AlNGsKfUPX+359iSpfnz6b5TxMSeRcegjjEajuwpE/x4T6M9O uCQznv2aq+0ILqDAGg4MeILtIhKaSseBrpntM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=xlQYKoSbn70dXtwUsBIV0bUyIuase0y3XCXlsS7U1aasxQIUdhzms0VEU9sNOVKpKC tA8/SVZw9/QbFpQgYkceTV9ZNvMTdxJ9gzGjEMt4+NXbyh+JjeHwqH+EkPIwLhaBGgKm eZJv64UqhBkZVxwv3dGlNJ2/wFBhrLfzo87tw= Received: by 10.42.177.197 with SMTP id bj5mr8957721icb.64.1306138265206; Mon, 23 May 2011 01:11:05 -0700 (PDT) Received: from localhost.localdomain (76-10-146-236.dsl.teksavvy.com [76.10.146.236]) by mx.google.com with ESMTPS id gy41sm2820660ibb.56.2011.05.23.01.11.04 (version=SSLv3 cipher=OTHER); Mon, 23 May 2011 01:11:04 -0700 (PDT) From: Arnaud Lacombe To: linux-kbuild@vger.kernel.org Cc: Michal Marek , Arnaud Lacombe Subject: [RFCv2 02/13] genksyms: include the lexer from the parser Date: Mon, 23 May 2011 04:10:28 -0400 Message-Id: <1306138239-13440-3-git-send-email-lacombar@gmail.com> X-Mailer: git-send-email 1.7.3.4.574.g608b.dirty In-Reply-To: <1306138239-13440-1-git-send-email-lacombar@gmail.com> References: <1306138239-13440-1-git-send-email-lacombar@gmail.com> Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Mon, 23 May 2011 08:11:06 +0000 (UTC) --- scripts/genksyms/lex.l | 3 --- scripts/genksyms/parse.y | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/genksyms/lex.l b/scripts/genksyms/lex.l index e4ddd49..adf75b6 100644 --- a/scripts/genksyms/lex.l +++ b/scripts/genksyms/lex.l @@ -28,9 +28,6 @@ #include #include -#include "genksyms.h" -#include "parse.h" - /* We've got a two-level lexer here. We let flex do basic tokenization and then we categorize those basic tokens in the second stage. */ #define YY_DECL static int yylex1(void) diff --git a/scripts/genksyms/parse.y b/scripts/genksyms/parse.y index ba5c242..c15e353 100644 --- a/scripts/genksyms/parse.y +++ b/scripts/genksyms/parse.y @@ -497,3 +497,5 @@ yyerror(const char *e) { error_with_pos("%s", e); } + +#include "lex.lex.c"