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 a two argument version of alloc_size
details: https://anonhg.NetBSD.org/src/rev/324c3ea95600
branches: trunk
changeset: 839706:324c3ea95600
user: christos <christos%NetBSD.org@localhost>
date: Mon Mar 04 15:28:18 2019 +0000
description:
add a two argument version of alloc_size
diffstat:
usr.bin/xlint/lint1/cgram.y | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r f673292bea76 -r 324c3ea95600 usr.bin/xlint/lint1/cgram.y
--- a/usr.bin/xlint/lint1/cgram.y Mon Mar 04 15:26:18 2019 +0000
+++ b/usr.bin/xlint/lint1/cgram.y Mon Mar 04 15:28:18 2019 +0000
@@ -1,5 +1,5 @@
%{
-/* $NetBSD: cgram.y,v 1.102 2019/03/04 15:26:18 christos Exp $ */
+/* $NetBSD: cgram.y,v 1.103 2019/03/04 15:28:18 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.102 2019/03/04 15:26:18 christos Exp $");
+__RCSID("$NetBSD: cgram.y,v 1.103 2019/03/04 15:28:18 christos Exp $");
#endif
#include <stdlib.h>
@@ -536,6 +536,7 @@
| T_AT_DEPRECATED T_LPARN string T_RPARN
| T_AT_DEPRECATED
| T_AT_ALIGNED T_LPARN constant T_RPARN
+ | T_AT_ALLOC_SIZE T_LPARN constant T_COMMA constant T_RPARN
| T_AT_ALLOC_SIZE T_LPARN constant T_RPARN
| T_AT_BOUNDED T_LPARN type_attribute_bounded_type
T_COMMA constant T_COMMA constant T_RPARN
Home |
Main Index |
Thread Index |
Old Index