From patchwork Mon May 23 08:10:29 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaud Lacombe X-Patchwork-Id: 807882 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 p4N8B6oT032713 for ; Mon, 23 May 2011 08:11:07 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753925Ab1EWILH (ORCPT ); Mon, 23 May 2011 04:11:07 -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 S1752713Ab1EWILG (ORCPT ); Mon, 23 May 2011 04:11:06 -0400 Received: by mail-iy0-f174.google.com with SMTP id 14so4457027iyb.19 for ; Mon, 23 May 2011 01:11:06 -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=vAop7SqwwYX+zNaZ9IKCK7ObfFL1PPkOqHvVezh0NhA=; b=upOSmoZft1YbFwgeh4dy8TdjBWolUHowcHqSB8hd5kfs7rhgKxifsN/e7OHJyFGnuc GnXh8k2nslErJwkmDe0I2PNlkPgggmTRYcjP+SF8jQM315HndcqekDRykwG+xa+AJD1o CC3oSHEpqVXXEq4+W0O5YNBjS//J1a11eWuwg= 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=DdzR94lMrkT1CLQHy5B/knP4yapE+odHVKN594nKjEHP5cEoZ6y2PDOOGSyfR9GRBx KkmJwLb4WH0Gbn5e+v/kDRRC5qgMRApYl/zNH20gdEJdctNfJLNvVqmrkNetOoDrg9ha g+cP2nn+qjHtdlnm5XZD4dyytC+tfpKgwHXhI= Received: by 10.231.129.13 with SMTP id m13mr1954733ibs.75.1306138265968; 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.05 (version=SSLv3 cipher=OTHER); Mon, 23 May 2011 01:11:05 -0700 (PDT) From: Arnaud Lacombe To: linux-kbuild@vger.kernel.org Cc: Michal Marek , Arnaud Lacombe Subject: [RFCv2 03/13] genksyms: pass hash and lookup functions name and target language though the input file Date: Mon, 23 May 2011 04:10:29 -0400 Message-Id: <1306138239-13440-4-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:07 +0000 (UTC) Renaming hash and lookup functions on the command line would reduces its genericity. Use the .gperf file to pass this information. Do the same for the target language. --- scripts/genksyms/keywords.gperf | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/scripts/genksyms/keywords.gperf b/scripts/genksyms/keywords.gperf index e6349ac..3e77a94 100644 --- a/scripts/genksyms/keywords.gperf +++ b/scripts/genksyms/keywords.gperf @@ -1,3 +1,6 @@ +%language=ANSI-C +%define hash-function-name is_reserved_hash +%define lookup-function-name is_reserved_word %{ struct resword; static const struct resword *is_reserved_word(register const char *str, register unsigned int len);