Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 May 2017 17:16:33 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 123553] [patch] Prevent indent(1) from splitting unrecognized tokens
Message-ID:  <bug-123553-8-EFZcWwjuDu@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-123553-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-123553-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D123553

--- Comment #2 from commit-hook@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

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-123553-8-EFZcWwjuDu>