From: jsg Date: Thu, 22 Jan 2015 05:35:27 +0000 (+0000) Subject: Recognise 'F'/'f' constant suffix for single precision floating point. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=1b61b7ebc439d6a805840cf0c99d61586e007135;p=openbsd Recognise 'F'/'f' constant suffix for single precision floating point. Prevents indent from inserting a space which broke the build of the development version of Mesa. ok millert@ deraadt@ --- diff --git a/usr.bin/indent/lexi.c b/usr.bin/indent/lexi.c index 09a1bd26232..e1d5ad30a8d 100644 --- a/usr.bin/indent/lexi.c +++ b/usr.bin/indent/lexi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lexi.c,v 1.17 2014/10/11 03:05:48 doug Exp $ */ +/* $OpenBSD: lexi.c,v 1.18 2015/01/22 05:35:27 jsg Exp $ */ /* * Copyright (c) 1980, 1993 @@ -202,6 +202,12 @@ lexi(void) } break; } + if (!(seensfx & 1) && + (*buf_ptr == 'F' || *buf_ptr == 'f')) { + CHECK_SIZE_TOKEN; + *e_token++ = *buf_ptr++; + seensfx |= 1; + } } else while (chartype[(int)*buf_ptr] == alphanum) { /* copy it over */