summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2015-01-22 05:35:27 +0000
committerjsg <jsg@openbsd.org>2015-01-22 05:35:27 +0000
commit1b61b7ebc439d6a805840cf0c99d61586e007135 (patch)
tree920377809e18d1bcaa7f1fa63148c277cb0fce16
parentpool_chk_page iterates over a pages free item lists and checks that (diff)
downloadwireguard-openbsd-1b61b7ebc439d6a805840cf0c99d61586e007135.tar.xz
wireguard-openbsd-1b61b7ebc439d6a805840cf0c99d61586e007135.zip
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@
-rw-r--r--usr.bin/indent/lexi.c8
1 files changed, 7 insertions, 1 deletions
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 */