[Bug 123553] [patch] Prevent indent(1) from splitting unrecognized tokens
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu May 18 17:16:33 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=123553
--- Comment #2 from commit-hook at freebsd.org ---
A commit references this bug:
Author: pstef
Date: Thu May 18 17:15:59 UTC 2017
New revision: 318471
URL: https://svnweb.freebsd.org/changeset/base/318471
Log:
indent(1): Support binary integer literals.
This was done by Romain Tarti?re for PR123553. I initially thought that it
would break code like this:
#define b00101010 -1
if (0 b00101010)
...
by joining 0 and b00101010 together. However, the real problem with that
patch was that once it saw a 0, it assumed that the number was base 2, 8 or 16,
ignoring base 10 floating point numbers. I fixed that.
I didn't copy the diagnostic part of the original patch as it seems out of
scope of implementing binary integer literals formatting.
PR: 123553
Submitted by: romain (original version)
Approved by: pfg (mentor)
Changes:
head/usr.bin/indent/lexi.c
head/usr.bin/indent/tests/Makefile
head/usr.bin/indent/tests/binary.0
head/usr.bin/indent/tests/binary.0.stdout
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list