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(1): sort ParseSpecial alphabetically



details:   https://anonhg.NetBSD.org/src/rev/766fdc00400f
branches:  trunk
changeset: 977593:766fdc00400f
user:      rillig <rillig%NetBSD.org@localhost>
date:      Wed Oct 28 01:51:36 2020 +0000

description:
make(1): sort ParseSpecial alphabetically

diffstat:

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

diffs (49 lines):

diff -r 3db56866afac -r 766fdc00400f usr.bin/make/parse.c
--- a/usr.bin/make/parse.c      Wed Oct 28 01:47:11 2020 +0000
+++ b/usr.bin/make/parse.c      Wed Oct 28 01:51:36 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: parse.c,v 1.405 2020/10/28 01:47:11 rillig Exp $       */
+/*     $NetBSD: parse.c,v 1.406 2020/10/28 01:51:36 rillig Exp $       */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -117,7 +117,7 @@
 #include "pathnames.h"
 
 /*     "@(#)parse.c    8.3 (Berkeley) 3/19/94" */
-MAKE_RCSID("$NetBSD: parse.c,v 1.405 2020/10/28 01:47:11 rillig Exp $");
+MAKE_RCSID("$NetBSD: parse.c,v 1.406 2020/10/28 01:51:36 rillig Exp $");
 
 /* types and constants */
 
@@ -146,6 +146,7 @@
  * Tokens for target attributes
  */
 typedef enum ParseSpecial {
+    SP_ATTRIBUTE,      /* Generic attribute */
     SP_BEGIN,          /* .BEGIN */
     SP_DEFAULT,                /* .DEFAULT */
     SP_DELETE_ON_ERROR,        /* .DELETE_ON_ERROR */
@@ -155,10 +156,10 @@
     SP_INCLUDES,       /* .INCLUDES; not mentioned in the manual page */
     SP_INTERRUPT,      /* .INTERRUPT */
     SP_LIBS,           /* .LIBS; not mentioned in the manual page */
+    SP_MAIN,           /* .MAIN and we don't have anything user-specified to
+                        * make */
     SP_META,           /* .META */
     SP_MFLAGS,         /* .MFLAGS or .MAKEFLAGS */
-    SP_MAIN,           /* .MAIN and we don't have anything user-specified to
-                        * make */
     SP_NOMETA,         /* .NOMETA */
     SP_NOMETA_CMP,     /* .NOMETA_CMP */
     SP_NOPATH,         /* .NOPATH */
@@ -179,8 +180,7 @@
     SP_SINGLESHELL,    /* .SINGLESHELL; not mentioned in the manual page */
     SP_STALE,          /* .STALE */
     SP_SUFFIXES,       /* .SUFFIXES */
-    SP_WAIT,           /* .WAIT */
-    SP_ATTRIBUTE       /* Generic attribute */
+    SP_WAIT            /* .WAIT */
 } ParseSpecial;
 
 typedef List SearchPathList;



Home | Main Index | Thread Index | Old Index