Module Name:    src
Committed By:   christos
Date:           Mon Mar  4 15:28:18 UTC 2019

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

Log Message:
add a two argument version of alloc_size


To generate a diff of this commit:
cvs rdiff -u -r1.102 -r1.103 src/usr.bin/xlint/lint1/cgram.y

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.102 src/usr.bin/xlint/lint1/cgram.y:1.103
--- src/usr.bin/xlint/lint1/cgram.y:1.102	Mon Mar  4 10:26:18 2019
+++ src/usr.bin/xlint/lint1/cgram.y	Mon Mar  4 10:28:18 2019
@@ -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 @@ type_attribute_spec:
 	| 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

Reply via email to