Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WNIZO-00059i-Td for pgsql-odbc@arkaria.postgresql.org; Tue, 11 Mar 2014 09:01:55 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WNIZN-00022p-Sr for pgsql-odbc@arkaria.postgresql.org; Tue, 11 Mar 2014 09:01:53 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WNIZM-00022i-Uv for pgsql-odbc@postgresql.org; Tue, 11 Mar 2014 09:01:53 +0000 Received: from smtp-outbound-1.vmware.com ([208.91.2.12]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WNIZI-0003fj-N7 for pgsql-odbc@postgresql.org; Tue, 11 Mar 2014 09:01:51 +0000 Received: from sc9-mailhost1.vmware.com (sc9-mailhost1.vmware.com [10.113.161.71]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id 30C6E2830E; Tue, 11 Mar 2014 02:01:47 -0700 (PDT) Received: from zcs-prod-ext-mta-1.vmware.com (zcs-prod-ext-mta-1.vmware.com [10.113.62.223]) by sc9-mailhost1.vmware.com (Postfix) with ESMTP id 2A8D6185B2; Tue, 11 Mar 2014 02:01:47 -0700 (PDT) Received: from zcs-prod-ext-mta-1.vmware.com (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-1.vmware.com (Postfix) with ESMTP id 0546B12000A; Tue, 11 Mar 2014 02:01:44 -0700 (PDT) Received: from [192.168.1.90] (zimbra-prod-ext-proxy-vip.vmware.com [10.113.63.87]) by zcs-prod-ext-mta-1.vmware.com (Postfix) with ESMTPSA; Tue, 11 Mar 2014 02:01:43 -0700 (PDT) Message-ID: <531ED0F5.6090201@vmware.com> Date: Tue, 11 Mar 2014 11:01:41 +0200 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131103 Icedove/17.0.10 MIME-Version: 1.0 To: Michael Paquier CC: PostgreSQL mailing lists Subject: Re: Removing all whitespaces in ODBC code References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -6.9 (------) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org On 03/11/2014 07:44 AM, Michael Paquier wrote: > Hi all, > > Please find attached a patch to remove all the whitespaces in pgodbc > code. Before having a deeper look to the ODBC code to remove all the > old protocols and try to clean up outdated code, it would be nice to > commit that. My environment is made to detect automatically > whitespaces, so not removing them would only generate noise on my > patches. Thanks, committed together with many additional whitespace fixes: * Remove all instances of . I think this is what your patch did. * Remove all instances of . * Remove unnecessary spaces from indentation: * Misc indentation fixes spotted while fixing those other things * Added/removed a few curly braces from if-statements with a one line action, for clarity * Removed empty lines before EOF. * Also cleaned up whitespace in non-code files, like readmes and .bat files. * Removed bogus byte-order-marks from psqlodbcm.wxs and psqlodbcm_cpu.wxs. They were bogus because the files are UTF-8 encoded. (didn't notice this until I reviewed the changes in git-diff; my editor fixed automatically). * Remove the 'x' flag from file permissions of a few header files, for consistency with all the other files. These were things that git diff complained about, when I did: git diff 0183b4605ee4ad76851cea69587d240492041705 --check That commit is the first-ever commit in the repository, the idea was to get a diff that covers the whole source tree. It might've missed some lines that have not been changed since the initial commit, but I couldn't figure out how to run the check that "git diff --check" does across the whole source tree, rather than a diff. There are some files related to the installers that contain DOS-style newlines, . I'm itching to fix those to Unix-style, but refrained because I don't really know Windows, so I don't know if that would be wrong or problematic. Anyway, the source tree is now in a much better shape. Still a lot of stylistic issues I'd like to fix, but that'll do for the whitespace. - Heikki -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc