svn commit: r334567 - head/usr.bin/indent

Piotr Pawel Stefaniak pstef at FreeBSD.org
Sun Jun 3 16:52:31 UTC 2018


Author: pstef
Date: Sun Jun  3 16:52:30 2018
New Revision: 334567
URL: https://svnweb.freebsd.org/changeset/base/334567

Log:
  indent(1): recognize more type names
  
  Most are from C99.

Modified:
  head/usr.bin/indent/lexi.c

Modified: head/usr.bin/indent/lexi.c
==============================================================================
--- head/usr.bin/indent/lexi.c	Sun Jun  3 16:42:58 2018	(r334566)
+++ head/usr.bin/indent/lexi.c	Sun Jun  3 16:52:30 2018	(r334567)
@@ -74,11 +74,17 @@ struct templ {
  */
 struct templ specials[] =
 {
+    {"_Bool", 4},
+    {"_Complex", 4},
+    {"_Imaginary", 4},
     {"auto", 10},
+    {"bool", 4},
     {"break", 9},
     {"case", 8},
     {"char", 4},
+    {"complex", 4},
     {"const", 4},
+    {"continue", 12},
     {"default", 8},
     {"do", 6},
     {"double", 4},
@@ -90,12 +96,16 @@ struct templ specials[] =
     {"global", 4},
     {"goto", 9},
     {"if", 5},
+    {"imaginary", 4},
+    {"inline", 12},
     {"int", 4},
     {"long", 4},
     {"offsetof", 1},
     {"register", 10},
+    {"restrict", 12},
     {"return", 9},
     {"short", 4},
+    {"signed", 4},
     {"sizeof", 2},
     {"static", 10},
     {"struct", 3},


More information about the svn-src-head mailing list