Re: Change on indent from 2.2.12 to 2.2.13
Simon Josefsson via "GNU indent discussion, bug reports, suggestions." <[email protected]> Wed, 27 Mar 2024 17:30:35 +0100
| Newsgroups | gmane.comp.gnu.indent.bugs |
|---|---|
| Message-ID | <[email protected]> |
--=-=-= Content-Type: text/plain "De Lara Guarch, Pablo" <[email protected]> writes: > Hello, > > This is not really a bug on indent, I would say, but I am seeing differences in how C code is indented with 2.2.13 against 2.2.12. > With 2.2.12, the code as it is looks OK, but with 2.2.13, it makes the following change. > > -uint32_t crc32_gzip_refl_base(uint32_t seed, uint8_t * buf, uint64_t len) > +uint32_t crc32_gzip_refl_base(uint32_t seed, uint8_t *buf, uint64_t len) > > Is there a way to avoid the 2.2.13 to make this change, so it is compatible with 2.2.12 (which is still present in many distros)? FWIW, I've adopted the approach to make this indentation change in the project I help maintain, because it is arguable fixing a bug, and then say that GNU indent 2.2.13 is required to re-indent source code, and have updated CI/CD testing to only verify code indentation using 2.2.13. Not really an answer to your question, but maybe it will encourage you to adopt a similar solution that I have... /Simon --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIoEARYIADIWIQSjzJyHC50xCrrUzy9RcisI/kdFogUCZgRJqxQcc2ltb25Aam9z ZWZzc29uLm9yZwAKCRBRcisI/kdFos36AP9m4fgTDwPiRXslu87bEQeaIbJcNeQT yMFJ2DO7QanYYwD/ci7bHvuwrE62pqygXgBOZom0lR1TbZ9+3ciBvz8BKQw= =5meS -----END PGP SIGNATURE----- --=-=-=--