lint: add missing strings for operators It's difficult to keep these lists in sync when they are spread over several files. The lists had been inconsistent since 2008-04-26. The inconsistency didn't lead to undefined behavior though since the operator names are only used in 2 places: 1. check_integer_conversion in message 324 only calls that function with a few selected operators, all of which are above the missing ones. 2. mkinit prints the node including its operator, but only in debug mode. Furthermore I'm not sure whether any of the broken operator names could ever be accessed at this place since mkinit is only called for expressions, and the node types are INIT, CASE, FARG, which are all special.diff -r1.8 -r1.9 src/usr.bin/xlint/lint1/print.c
(rillig)
--- src/usr.bin/xlint/lint1/Attic/print.c 2021/01/03 18:35:51 1.8
+++ src/usr.bin/xlint/lint1/Attic/print.c 2021/01/05 07:37:41 1.9
@@ -1,4 +1,4 @@
-/* $NetBSD: print.c,v 1.8 2021/01/03 18:35:51 rillig Exp $ */
+/* $NetBSD: print.c,v 1.9 2021/01/05 07:37:41 rillig Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: print.c,v 1.8 2021/01/03 18:35:51 rillig Exp $");
+__RCSID("$NetBSD: print.c,v 1.9 2021/01/05 07:37:41 rillig Exp $");
#endif
#include <stdio.h>
@@ -101,6 +101,8 @@
"*load*",
"*push*",
"return",
+ "real",
+ "imag",
"*init*",
"*case*",
"*farg*",