Module Name:    src
Committed By:   christos
Date:           Wed May 11 15:46:25 UTC 2022

Modified Files:
        src/usr.bin/xlint/lint1: lex.c

Log Message:
gcc also allows __alignof


To generate a diff of this commit:
cvs rdiff -u -r1.128 -r1.129 src/usr.bin/xlint/lint1/lex.c

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/lex.c
diff -u src/usr.bin/xlint/lint1/lex.c:1.128 src/usr.bin/xlint/lint1/lex.c:1.129
--- src/usr.bin/xlint/lint1/lex.c:1.128	Sat Apr 30 18:31:23 2022
+++ src/usr.bin/xlint/lint1/lex.c	Wed May 11 11:46:25 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: lex.c,v 1.128 2022/04/30 22:31:23 rillig Exp $ */
+/* $NetBSD: lex.c,v 1.129 2022/05/11 15:46:25 christos Exp $ */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All Rights Reserved.
@@ -38,7 +38,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: lex.c,v 1.128 2022/04/30 22:31:23 rillig Exp $");
+__RCSID("$NetBSD: lex.c,v 1.129 2022/05/11 15:46:25 christos Exp $");
 #endif
 
 #include <ctype.h>
@@ -114,7 +114,7 @@ static const struct keyword {
 } keywords[] = {
 	kwdef_keyword(	"_Alignas",	T_ALIGNAS),
 	kwdef_keyword(	"_Alignof",	T_ALIGNOF),
-	kwdef_token(	"__alignof__",	T_ALIGNOF,		78,0,1),
+	kwdef_token(	"alignof",	T_ALIGNOF,		78,0,3),
 	kwdef_token(	"asm",		T_ASM,			78,1,7),
 	kwdef_token(	"attribute",	T_ATTRIBUTE,		78,1,6),
 	kwdef_sclass(	"auto",		AUTO,			78,0,1),

Reply via email to