Module Name:    src
Committed By:   christos
Date:           Fri Jan  4 18:51:23 UTC 2019

Modified Files:
        src/usr.bin/xlint/lint1: cgram.y scan.l

Log Message:
recognize destructor attribute.


To generate a diff of this commit:
cvs rdiff -u -r1.99 -r1.100 src/usr.bin/xlint/lint1/cgram.y
cvs rdiff -u -r1.85 -r1.86 src/usr.bin/xlint/lint1/scan.l

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/xlint/lint1/cgram.y
diff -u src/usr.bin/xlint/lint1/cgram.y:1.99 src/usr.bin/xlint/lint1/cgram.y:1.100
--- src/usr.bin/xlint/lint1/cgram.y:1.99	Sat Nov 24 08:10:20 2018
+++ src/usr.bin/xlint/lint1/cgram.y	Fri Jan  4 13:51:23 2019
@@ -1,5 +1,5 @@
 %{
-/* $NetBSD: cgram.y,v 1.99 2018/11/24 13:10:20 christos Exp $ */
+/* $NetBSD: cgram.y,v 1.100 2019/01/04 18:51:23 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.99 2018/11/24 13:10:20 christos Exp $");
+__RCSID("$NetBSD: cgram.y,v 1.100 2019/01/04 18:51:23 christos Exp $");
 #endif
 
 #include <stdlib.h>
@@ -208,6 +208,7 @@ anonymize(sym_t *s)
 %token <y_type>		T_AT_COLD
 %token <y_type>		T_AT_CONSTRUCTOR
 %token <y_type>		T_AT_DEPRECATED
+%token <y_type>		T_AT_DESTRUCTOR
 %token <y_type>		T_AT_FORMAT
 %token <y_type>		T_AT_FORMAT_ARG
 %token <y_type>		T_AT_FORMAT_PRINTF
@@ -541,6 +542,7 @@ type_attribute_spec:
 	| T_AT_SECTION T_LPARN string T_RPARN
 	| T_AT_ALIGNED 
 	| T_AT_CONSTRUCTOR 
+	| T_AT_DESTRUCTOR 
 	| T_AT_MAY_ALIAS
 	| T_AT_NO_INSTRUMENT_FUNCTION
 	| T_AT_NOINLINE

Index: src/usr.bin/xlint/lint1/scan.l
diff -u src/usr.bin/xlint/lint1/scan.l:1.85 src/usr.bin/xlint/lint1/scan.l:1.86
--- src/usr.bin/xlint/lint1/scan.l:1.85	Sat Nov 24 08:10:20 2018
+++ src/usr.bin/xlint/lint1/scan.l	Fri Jan  4 13:51:23 2019
@@ -1,5 +1,5 @@
 %{
-/* $NetBSD: scan.l,v 1.85 2018/11/24 13:10:20 christos Exp $ */
+/* $NetBSD: scan.l,v 1.86 2019/01/04 18:51:23 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.85 2018/11/24 13:10:20 christos Exp $");
+__RCSID("$NetBSD: scan.l,v 1.86 2019/01/04 18:51:23 christos Exp $");
 #endif
 
 #include <stdlib.h>
@@ -232,6 +232,7 @@ static	struct	kwtab {
 	{ "continue",	T_CONTINUE,	0,	0,	0,	  0,0,0,0,1 },
 	{ "default",	T_DEFAULT,	0,	0,	0,	  0,0,0,0,1 },
 	{ "deprecated",	T_AT_DEPRECATED,0,	0,	0,	  0,0,1,1,5 },
+	{ "destructor",	T_AT_DESTRUCTOR,0,	0,	0,	  0,0,1,1,5 },
 	{ "do",		T_DO,		0,	0,	0,	  0,0,0,0,1 },
 	{ "double",	T_TYPE,		0,	DOUBLE,	0,	  0,0,0,0,1 },
 	{ "else",	T_ELSE,		0,	0,	0,	  0,0,0,0,1 },

Reply via email to