Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/xlint/lint1 Add our syslog format.
details: https://anonhg.NetBSD.org/src/rev/27b06e8823b1
branches: trunk
changeset: 362868:27b06e8823b1
user: christos <christos%NetBSD.org@localhost>
date: Fri Jun 29 20:18:36 2018 +0000
description:
Add our syslog format.
diffstat:
usr.bin/xlint/lint1/cgram.y | 6 ++++--
usr.bin/xlint/lint1/scan.l | 5 +++--
2 files changed, 7 insertions(+), 4 deletions(-)
diffs (62 lines):
diff -r fafb6c9231eb -r 27b06e8823b1 usr.bin/xlint/lint1/cgram.y
--- a/usr.bin/xlint/lint1/cgram.y Fri Jun 29 20:18:05 2018 +0000
+++ b/usr.bin/xlint/lint1/cgram.y Fri Jun 29 20:18:36 2018 +0000
@@ -1,5 +1,5 @@
%{
-/* $NetBSD: cgram.y,v 1.95 2018/01/15 21:58:54 christos Exp $ */
+/* $NetBSD: cgram.y,v 1.96 2018/06/29 20:18:36 christos Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved.
@@ -35,7 +35,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: cgram.y,v 1.95 2018/01/15 21:58:54 christos Exp $");
+__RCSID("$NetBSD: cgram.y,v 1.96 2018/06/29 20:18:36 christos Exp $");
#endif
#include <stdlib.h>
@@ -214,6 +214,7 @@
%token <y_type> T_AT_FORMAT_SCANF
%token <y_type> T_AT_FORMAT_STRFMON
%token <y_type> T_AT_FORMAT_STRFTIME
+%token <y_type> T_AT_FORMAT_SYSLOG
%token <y_type> T_AT_GNU_INLINE
%token <y_type> T_AT_MAY_ALIAS
%token <y_type> T_AT_MINBYTES
@@ -512,6 +513,7 @@
| T_AT_FORMAT_SCANF
| T_AT_FORMAT_STRFMON
| T_AT_FORMAT_STRFTIME
+ | T_AT_FORMAT_SYSLOG
;
type_attribute_bounded_type:
diff -r fafb6c9231eb -r 27b06e8823b1 usr.bin/xlint/lint1/scan.l
--- a/usr.bin/xlint/lint1/scan.l Fri Jun 29 20:18:05 2018 +0000
+++ b/usr.bin/xlint/lint1/scan.l Fri Jun 29 20:18:36 2018 +0000
@@ -1,5 +1,5 @@
%{
-/* $NetBSD: scan.l,v 1.80 2018/01/15 21:58:54 christos Exp $ */
+/* $NetBSD: scan.l,v 1.81 2018/06/29 20:18:36 christos Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved.
@@ -35,7 +35,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: scan.l,v 1.80 2018/01/15 21:58:54 christos Exp $");
+__RCSID("$NetBSD: scan.l,v 1.81 2018/06/29 20:18:36 christos Exp $");
#endif
#include <stdlib.h>
@@ -275,6 +275,7 @@
{ "struct", T_SOU, 0, STRUCT, 0, 0,0,0,0,1 },
{ "switch", T_SWITCH, 0, 0, 0, 0,0,0,0,1 },
{ "symbolrename", T_SYMBOLRENAME, 0, 0, 0, 0,0,0,0,2 },
+ { "syslog", T_AT_FORMAT_SYSLOG,0, 0, 0, 0,0,1,1,5 },
{ "transparent_union",T_AT_TUNION,0, 0, 0, 0,0,1,1,5 },
{ "typedef", T_SCLASS, TYPEDEF, 0, 0, 0,0,0,0,1 },
{ "typeof", T_TYPEOF, 0, 0, 0, 0,0,1,0,7 },
Home |
Main Index |
Thread Index |
Old Index