Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jz2HJ-0000p5-89 for qemu-devel@nongnu.org; Thu, 22 May 2008 00:19:45 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jz2HG-0000om-QI for qemu-devel@nongnu.org; Thu, 22 May 2008 00:19:43 -0400 Received: from [199.232.76.173] (port=34325 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jz2HG-0000og-LU for qemu-devel@nongnu.org; Thu, 22 May 2008 00:19:42 -0400 Received: from web57004.mail.re3.yahoo.com ([66.196.97.108]:29413) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1Jz2HG-00089m-Dj for qemu-devel@nongnu.org; Thu, 22 May 2008 00:19:42 -0400 Date: Wed, 21 May 2008 21:19:41 -0700 (PDT) From: "Balazs Attila-Mihaly \(Cd-MaN\)" Subject: Re: [Qemu-devel] Patch removing spaces MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="0-1039350615-1211429981=:27422" Message-ID: <585753.27422.qm@web57004.mail.re3.yahoo.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --0-1039350615-1211429981=:27422 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello all=0A=0AI had no idea that the patch would start such a long discuss= ion :-). I fully agree with the comment that a script producing the output = is preferred to the actual patch, so that it can be verified. Attached you = will find the perl script (which is a slight variation of the script I post= ed the link to earlier) used to perform the operation. It should be launche= d from the source directory and will go recursively (excluding .svn directo= ries) and search for .c, .h and .texi files and apply the space-removing pr= ocess on them. In the same time it replaces Windows newlines with *nix newl= ines (there were a couple of those in the source).=0A=0ADon't get me wrong,= I'm not pushing for inclusion or anything like that, I just thought that t= his was a convention in the source and wanted to help out preserving it.=0A= =0ABest regards.=0A=0A=0A=0A _________________________________________= _________________=0ASent from Yahoo! Mail.=0AA Smarter Email http://uk.docs= .yahoo.com/nowyoucan.html --0-1039350615-1211429981=:27422 Content-Type: application/x-perl; name="strip_spaces.pl" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="strip_spaces.pl" IyEvdXNyL2Jpbi9wZXJsCnVzZSBzdHJpY3Q7CnVzZSB3YXJuaW5nczsKdXNl IEZpbGU6OkZpbmQ7CgpmaW5kKHN1YiB7CiAgICAjd2Ugb25seSB3YW50IGZp bGVzCiAgICByZXR1cm4gdW5sZXNzIC1mICRfOwogICAgI29mIGEgZ2l2ZW4g ZXh0ZW5zaW9uCiAgICByZXR1cm4gdW5sZXNzIC9cLig/OmN8aHx0ZXhpKS9p OwogICAgI2FuZCBub3QgZnJvbSBoaWRkZW4gZm9sZGVycyAodG8gYXZvaWQg dG91Y2hpbmcgLnN2biBmb2xkZXJzIGZvciBleGFtcGxlKQogICAgcmV0dXJu IGlmICRGaWxlOjpGaW5kOjpuYW1lID1+IC9bXC9cXF1cLi87CiAgICBteSAk ZmlsZW5hbWUgPSAkXzsKICAgIAogICAgcHJpbnQgIkZpeGluZyAkRmlsZTo6 RmluZDo6bmFtZVxuIjsKICAgIAogICAgbXkgJGY7CiAgICB1bmxlc3MgKG9w ZW4gJGYsICc8JywgJGZpbGVuYW1lKSB7CiAgICAgICAgd2FybiBxcXtGYWls ZWQgdG8gb3BlbiAiJEZpbGU6OkZpbmQ6Om5hbWUiIGZvciByZWFkaW5nOiAk IVxufTsKICAgICAgICByZXR1cm47CiAgICB9CiAgICBteSBAbGluZXMgPSBt YXAgeyAKICAgICAgICBteSAkbGluZV9lbmRpbmcgPSAoJF8gPX4gL1tceDBk XHgwYV0rXHovKTsgCiAgICAgICAgcy9bXHgwZFx4MGFdK1x6Ly8gaWYgKCRs aW5lX2VuZGluZyk7CiAgICAgICAgcy9ccyskLy87CiAgICAgICAgJF8gLj0g IlxuIiBpZiAoJGxpbmVfZW5kaW5nKTsKICAgICAgICAkXwogICAgfSA8JGY+ OwogICAgY2xvc2UgJGY7CiAgICAKICAgIHVubGVzcyAob3BlbiAkZiwgJz4n LCAkZmlsZW5hbWUpIHsKICAgICAgICB3YXJuIHFxe0ZhaWxlZCB0byBvcGVu ICIkRmlsZTo6RmluZDo6bmFtZSIgZm9yIHdyaXRpbmc6ICQhXG59OwogICAg ICAgIHJldHVybjsKICAgIH0KICAgIHByaW50ICRmIEBsaW5lczsKICAgIGNs b3NlICRmOwp9LCAnLicpOwo= --0-1039350615-1211429981=:27422--