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: reduce runtime relocations



details:   https://anonhg.NetBSD.org/src/rev/b7292259596b
branches:  trunk
changeset: 377460:b7292259596b
user:      rillig <rillig%NetBSD.org@localhost>
date:      Wed Jul 12 20:13:28 2023 +0000

description:
lint: reduce runtime relocations

diffstat:

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

diffs (27 lines):

diff -r b2a709d3073d -r b7292259596b usr.bin/xlint/lint1/lex.c
--- a/usr.bin/xlint/lint1/lex.c Wed Jul 12 19:34:01 2023 +0000
+++ b/usr.bin/xlint/lint1/lex.c Wed Jul 12 20:13:28 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lex.c,v 1.177 2023/07/12 18:26:04 rillig Exp $ */
+/* $NetBSD: lex.c,v 1.178 2023/07/12 20:13:28 rillig Exp $ */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All Rights Reserved.
@@ -38,7 +38,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID)
-__RCSID("$NetBSD: lex.c,v 1.177 2023/07/12 18:26:04 rillig Exp $");
+__RCSID("$NetBSD: lex.c,v 1.178 2023/07/12 20:13:28 rillig Exp $");
 #endif
 
 #include <ctype.h>
@@ -96,7 +96,7 @@ bool in_system_header;
 
 /* During initialization, these keywords are written to the symbol table. */
 static const struct keyword {
-       const   char *kw_name;
+       const   char kw_name[20];
        int     kw_token;       /* token to be returned by yylex() */
        union {
                bool kw_dummy;



Home | Main Index | Thread Index | Old Index