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 gcc also allows __alignof



details:   https://anonhg.NetBSD.org/src/rev/267edcd5ec88
branches:  trunk
changeset: 366044:267edcd5ec88
user:      christos <christos%NetBSD.org@localhost>
date:      Wed May 11 15:46:25 2022 +0000

description:
gcc also allows __alignof

diffstat:

 usr.bin/xlint/lint1/lex.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r c20d35271b3d -r 267edcd5ec88 usr.bin/xlint/lint1/lex.c
--- a/usr.bin/xlint/lint1/lex.c Wed May 11 15:30:33 2022 +0000
+++ b/usr.bin/xlint/lint1/lex.c Wed May 11 15:46:25 2022 +0000
@@ -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 @@
 } 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),



Home | Main Index | Thread Index | Old Index