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 constructor and destructor attribute...



details:   https://anonhg.NetBSD.org/src/rev/3d7625a05f5e
branches:  trunk
changeset: 982856:3d7625a05f5e
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Apr 29 17:11:30 2021 +0000

description:
Add constructor and destructor attribute priorities

diffstat:

 usr.bin/xlint/lint1/cgram.y |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r e57df972e075 -r 3d7625a05f5e usr.bin/xlint/lint1/cgram.y
--- a/usr.bin/xlint/lint1/cgram.y       Thu Apr 29 16:46:17 2021 +0000
+++ b/usr.bin/xlint/lint1/cgram.y       Thu Apr 29 17:11:30 2021 +0000
@@ -1,5 +1,5 @@
 %{
-/* $NetBSD: cgram.y,v 1.221 2021/04/23 20:26:43 rillig Exp $ */
+/* $NetBSD: cgram.y,v 1.222 2021/04/29 17:11:30 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.221 2021/04/23 20:26:43 rillig Exp $");
+__RCSID("$NetBSD: cgram.y,v 1.222 2021/04/29 17:11:30 christos Exp $");
 #endif
 
 #include <limits.h>
@@ -570,7 +570,9 @@
        | T_AT_SECTION T_LPAREN string T_RPAREN
        | T_AT_TLS_MODEL T_LPAREN string T_RPAREN
        | T_AT_ALIGNED
+       | T_AT_CONSTRUCTOR T_LPAREN constant_expr T_RPAREN
        | T_AT_CONSTRUCTOR
+       | T_AT_DESTRUCTOR T_LPAREN constant_expr T_RPAREN
        | T_AT_DESTRUCTOR
        | T_AT_MALLOC
        | T_AT_MAY_ALIAS



Home | Main Index | Thread Index | Old Index