From: craven Date: Wed, 11 Jul 2012 08:26:32 +0000 (+0200) Subject: [PATCH v3 0/3] Structured Formatters X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=eb30d155567eb70688563c9bb72c4d580c1123de;p=notmuch-archives.git [PATCH v3 0/3] Structured Formatters --- diff --git a/86/9a0e5f7acca980c57e5ab3a557bd91265eaf31 b/86/9a0e5f7acca980c57e5ab3a557bd91265eaf31 new file mode 100644 index 000000000..4e89f4ec6 --- /dev/null +++ b/86/9a0e5f7acca980c57e5ab3a557bd91265eaf31 @@ -0,0 +1,68 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 98156429E4A + for ; Wed, 11 Jul 2012 01:25:22 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0.001 +X-Spam-Level: +X-Spam-Status: No, score=0.001 tagged_above=-999 required=5 + tests=[FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001] + autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id jQAASQnYNG-T for ; + Wed, 11 Jul 2012 01:25:21 -0700 (PDT) +Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22]) + by olra.theworths.org (Postfix) with SMTP id CEE75431FC7 + for ; Wed, 11 Jul 2012 01:25:18 -0700 (PDT) +Received: (qmail invoked by alias); 11 Jul 2012 08:25:14 -0000 +Received: from gw.arelion.cust.net.lagis.at (EHLO dodekanex.arelion.at) + [83.164.197.182] + by mail.gmx.net (mp030) with SMTP; 11 Jul 2012 10:25:14 +0200 +X-Authenticated: #201305 +X-Provags-ID: V01U2FsdGVkX1887tYf0eI8tllIWkVJ6Mvejk7/HvwFk7Ruqa/5x2 + jalLZfI1VUHSon +Received: by dodekanex.arelion.at (Postfix, from userid 1000) + id 9758230313D; Wed, 11 Jul 2012 10:26:36 +0200 (CEST) +From: +To: notmuch@notmuchmail.org +Subject: [PATCH v3 0/3] Structured Formatters +Date: Wed, 11 Jul 2012 10:26:32 +0200 +Message-Id: <1341995195-2497-1-git-send-email-craven@gmx.net> +X-Mailer: git-send-email 1.7.11.1 +In-Reply-To: <20120710191331.GE7332@mit.edu> +References: <20120710191331.GE7332@mit.edu> +X-Y-GMX-Trusted: 0 +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Wed, 11 Jul 2012 08:25:23 -0000 + +Currently there is no easy way to add support for different structured +formatters (like JSON). For example, adding support for S-Expressions +would result in code duplication. + +This patch series amends the situation by introducing structured +formatters, which allow different implementations of structures like +lists, maps, strings and numbers. + +The new code in structured-output.h and structured-output.c can be used +instead of the current ad-hoc output in all parts of notmuch, a patch +for notmuch-search.c is included. + +In a later patch, all other parts of notmuch should be adapted to the +structured formatters, and the creation of formatters should be +centralised (to make adding new formatters easier). +