SVNews r318471

NOTE: This service is experimental and subject to change! Use at your own risk!

2017-05-18 17:15:58 - r318471 by pstef (pstef)

Complete list of files affected by revision r318471:

(Note: At the moment, these links point to ViewVC on svn.freebsd.org. They are probably slow. Do not overuse.)

  History   Contents   Diff   MODIFY   /head/usr.bin/indent/lexi.c  
  History   Contents   Diff   MODIFY   /head/usr.bin/indent/tests/Makefile  
  History   Contents     ADD   /head/usr.bin/indent/tests/binary.0  
  History   Contents     ADD   /head/usr.bin/indent/tests/binary.0.stdout  

Commit message:

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)

 


Powered by Python FreeBSD support by secnetix GmbH & Co. KG

Page generated in 19 ms, 4 files printed. Current time is 2017-07-23 14:53:17. All times are in UTC/GMT.