Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/make make: reduce relocations and thereby .text size...



details:   https://anonhg.NetBSD.org/src/rev/11215b6032ae
branches:  trunk
changeset: 1023684:11215b6032ae
user:      rillig <rillig%NetBSD.org@localhost>
date:      Tue Sep 21 22:53:35 2021 +0000

description:
make: reduce relocations and thereby .text size, make opname const

No functional change.

diffstat:

 usr.bin/make/cond.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 68e0afafbf10 -r 11215b6032ae usr.bin/make/cond.c
--- a/usr.bin/make/cond.c       Tue Sep 21 22:48:04 2021 +0000
+++ b/usr.bin/make/cond.c       Tue Sep 21 22:53:35 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cond.c,v 1.277 2021/09/21 22:48:04 rillig Exp $        */
+/*     $NetBSD: cond.c,v 1.278 2021/09/21 22:53:35 rillig Exp $        */
 
 /*
  * Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -95,7 +95,7 @@
 #include "dir.h"
 
 /*     "@(#)cond.c     8.2 (Berkeley) 1/2/94"  */
-MAKE_RCSID("$NetBSD: cond.c,v 1.277 2021/09/21 22:48:04 rillig Exp $");
+MAKE_RCSID("$NetBSD: cond.c,v 1.278 2021/09/21 22:53:35 rillig Exp $");
 
 /*
  * The parsing of conditional expressions is based on this grammar:
@@ -186,7 +186,7 @@
 static unsigned int cond_min_depth = 0;        /* depth at makefile open */
 
 /* Names for ComparisonOp. */
-static const char *opname[] = { "<", "<=", ">", ">=", "==", "!=" };
+static const char opname[][3] = { "<", "<=", ">", ">=", "==", "!=" };
 
 static bool
 is_token(const char *str, const char *tok, size_t len)



Home | Main Index | Thread Index | Old Index