From patchwork Thu Aug 26 18:38:13 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Blue Swirl X-Patchwork-Id: 62797 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 40BBDB70D8 for ; Fri, 27 Aug 2010 04:41:26 +1000 (EST) Received: from localhost ([127.0.0.1]:45079 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OohO7-0005rA-GV for incoming@patchwork.ozlabs.org; Thu, 26 Aug 2010 14:41:23 -0400 Received: from [140.186.70.92] (port=43678 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OohLT-00051F-Qi for qemu-devel@nongnu.org; Thu, 26 Aug 2010 14:38:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OohLN-0006ry-NX for qemu-devel@nongnu.org; Thu, 26 Aug 2010 14:38:39 -0400 Received: from mail-qw0-f45.google.com ([209.85.216.45]:44249) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OohLN-0006pV-K0 for qemu-devel@nongnu.org; Thu, 26 Aug 2010 14:38:33 -0400 Received: by mail-qw0-f45.google.com with SMTP id 5so1984947qwh.4 for ; Thu, 26 Aug 2010 11:38:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=UASev3ZrPAHwPEgm+vOI1veJbf1AXKD1XoXKCeBsSpk=; b=p6/0BkOP2daXfMNKhBeK3OEfmqn67G2HXaQdufeHa5zFeQ1lb7hqLLrkpg+fesLC4F /AIvorHA44Y3idMH1mOSBeDMq2cKiv4j8NQ9Q5nhYFBiAo4Nrba5movYmawZLJf/UxMz o5hYrZJbYZYzCSi2x7m5D800U8HbVcvk6GTzc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=XJtuvVVZrIpW6+b5luY27J87k8lPjytTDnFRuZCoEHb6oK9P/qs8GsviZVYwm6tA1W Zy9bUsNFOmrK1sX0SAsjURlQ1J25C8xLo4U0bvWHQk5dOITf2qWYLvMgJMqSOr06h+n0 gexB2v83HUN9jVEi/7VNrGWtUL1XbtuKNwcm4= Received: by 10.224.36.213 with SMTP id u21mr6974593qad.115.1282847913214; Thu, 26 Aug 2010 11:38:33 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.183.135 with HTTP; Thu, 26 Aug 2010 11:38:13 -0700 (PDT) From: Blue Swirl Date: Thu, 26 Aug 2010 18:38:13 +0000 Message-ID: To: qemu-devel X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: [Qemu-devel] [PATCH 1/5] HACKING: add preprocessor rules X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Add a new file, HACKING, in order to collect recurring issues with submitted patches. Start with preprocessor rules, adapted from libvirt HACKING. Signed-off-by: Blue Swirl --- HACKING | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) create mode 100644 HACKING diff --git a/HACKING b/HACKING new file mode 100644 index 0000000..4211d15 --- /dev/null +++ b/HACKING @@ -0,0 +1,6 @@ +1. Preprocessor + +For variadic macros, stick with this C99-like syntax: + +#define DPRINTF(fmt, ...) \ + do { printf("IRQ: " fmt, ## __VA_ARGS__); } while (0)