From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9f7c0fce90769654 X-Google-Attributes: gid103376,public From: dewar@cs.nyu.edu (Robert Dewar) Subject: Re: Ada Code Formatting Date: 1996/08/10 Message-ID: #1/1 X-Deja-AN: 173448114 references: <4ug0pq$q64@zeus.orl.mmc.com> <4ui14m$m0l@mulga.cs.mu.OZ.AU> organization: Courant Institute of Mathematical Sciences newsgroups: comp.lang.ada Date: 1996-08-10T00:00:00+00:00 List-Id: Fergus said "I'd suggest getting GNU diff, and using `diff -w', which ignores whitespace." (to compare reformatted sources) This does not work fully, since, as I mentioned in a previous post, most diff programs, inclufding GNU diff, do not ignore line feeds, so if the reformatting involves changing the position of line feeds, as is common, this will not be sufficient to suppress the effects of reformatting. Also, if comments have been reformatted, the sequence of non-blank characters changes, since the -- appears at different places. A useful utility would be an Ada specific diff, with an option to ignore white space, ignore line changes, ignore reformatting of comments, or igore comments completely. (it could even consider ABC and abc to be the same optionally, or 10 and 2#1010#) So there's a nice little project for someone in an enthusiastic mood!