Recognise 'F'/'f' constant suffix for single precision floating point.
authorjsg <jsg@openbsd.org>
Thu, 22 Jan 2015 05:35:27 +0000 (05:35 +0000)
committerjsg <jsg@openbsd.org>
Thu, 22 Jan 2015 05:35:27 +0000 (05:35 +0000)
Prevents indent from inserting a space which broke the build of the
development version of Mesa.

ok millert@ deraadt@

usr.bin/indent/lexi.c

index 09a1bd2..e1d5ad3 100644 (file)
@@ -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 */