Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/make Tables used by parser logic should be const.



details:   https://anonhg.NetBSD.org/src/rev/896b96242522
branches:  trunk
changeset: 759576:896b96242522
user:      dholland <dholland%NetBSD.org@localhost>
date:      Mon Dec 13 03:36:39 2010 +0000

description:
Tables used by parser logic should be const.

diffstat:

 usr.bin/make/parse.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (35 lines):

diff -r 3b8d5747ec02 -r 896b96242522 usr.bin/make/parse.c
--- a/usr.bin/make/parse.c      Mon Dec 13 03:35:13 2010 +0000
+++ b/usr.bin/make/parse.c      Mon Dec 13 03:36:39 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: parse.c,v 1.167 2010/12/13 03:35:13 dholland Exp $     */
+/*     $NetBSD: parse.c,v 1.168 2010/12/13 03:36:39 dholland Exp $     */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -69,14 +69,14 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: parse.c,v 1.167 2010/12/13 03:35:13 dholland Exp $";
+static char rcsid[] = "$NetBSD: parse.c,v 1.168 2010/12/13 03:36:39 dholland Exp $";
 #else
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static char sccsid[] = "@(#)parse.c    8.3 (Berkeley) 3/19/94";
 #else
-__RCSID("$NetBSD: parse.c,v 1.167 2010/12/13 03:35:13 dholland Exp $");
+__RCSID("$NetBSD: parse.c,v 1.168 2010/12/13 03:36:39 dholland Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -281,7 +281,7 @@
  * the 'op' field is the operator to apply to the list of targets if the
  * keyword is used as a source ("0" if the keyword isn't special as a source)
  */
-static struct {
+static const struct {
     const char   *name;        /* Name of keyword */
     ParseSpecial  spec;                /* Type when used as a target */
     int                  op;           /* Operator when used as a source */



Home | Main Index | Thread Index | Old Index