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 lint: __real__ and __imag__ are GNU exte...
details: https://anonhg.NetBSD.org/src/rev/7bc5791b53fe
branches: trunk
changeset: 1022168:7bc5791b53fe
user: rillig <rillig%NetBSD.org@localhost>
date: Tue Jul 06 20:17:15 2021 +0000
description:
lint: __real__ and __imag__ are GNU extensions
https://gcc.gnu.org/onlinedocs/gcc/Complex.html
diffstat:
usr.bin/xlint/lint1/lex.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 75fde4db545a -r 7bc5791b53fe usr.bin/xlint/lint1/lex.c
--- a/usr.bin/xlint/lint1/lex.c Tue Jul 06 19:08:28 2021 +0000
+++ b/usr.bin/xlint/lint1/lex.c Tue Jul 06 20:17:15 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lex.c,v 1.50 2021/06/30 10:25:02 rillig Exp $ */
+/* $NetBSD: lex.c,v 1.51 2021/07/06 20:17:15 rillig 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.50 2021/06/30 10:25:02 rillig Exp $");
+__RCSID("$NetBSD: lex.c,v 1.51 2021/07/06 20:17:15 rillig Exp $");
#endif
#include <ctype.h>
@@ -183,7 +183,7 @@
kwdef_gcc_attr( "gnu_printf", T_AT_FORMAT_GNU_PRINTF),
kwdef_keyword( "goto", T_GOTO),
kwdef_keyword( "if", T_IF),
- kwdef_token( "imag", T_IMAG, 0,1,0,0,4),
+ kwdef_token( "imag", T_IMAG, 0,0,1,0,4),
kwdef_sclass( "inline", INLINE, 0,1,0,0,7),
kwdef_type( "int", INT, 0,0,0,0,1),
kwdef_type( "long", LONG, 0,0,0,0,1),
@@ -204,7 +204,7 @@
kwdef_gcc_attr( "pcs", T_AT_PCS),
kwdef_gcc_attr( "printf", T_AT_FORMAT_PRINTF),
kwdef_gcc_attr( "pure", T_AT_PURE),
- kwdef_token( "real", T_REAL, 0,1,0,0,4),
+ kwdef_token( "real", T_REAL, 0,0,1,0,4),
kwdef_sclass( "register", REG, 0,0,0,0,1),
kwdef_tqual( "restrict", RESTRICT, 0,1,0,0,5),
kwdef_keyword( "return", T_RETURN),
Home |
Main Index |
Thread Index |
Old Index