Module Name:    src
Committed By:   rillig
Date:           Sat Aug 22 17:34:25 UTC 2020

Modified Files:
        src/usr.bin/make: dir.c lst.c main.c meta.c parse.c var.c

Log Message:
make(1): fix indentation


To generate a diff of this commit:
cvs rdiff -u -r1.105 -r1.106 src/usr.bin/make/dir.c
cvs rdiff -u -r1.30 -r1.31 src/usr.bin/make/lst.c
cvs rdiff -u -r1.308 -r1.309 src/usr.bin/make/main.c
cvs rdiff -u -r1.96 -r1.97 src/usr.bin/make/meta.c
cvs rdiff -u -r1.257 -r1.258 src/usr.bin/make/parse.c
cvs rdiff -u -r1.455 -r1.456 src/usr.bin/make/var.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/make/dir.c
diff -u src/usr.bin/make/dir.c:1.105 src/usr.bin/make/dir.c:1.106
--- src/usr.bin/make/dir.c:1.105	Sat Aug 22 15:55:22 2020
+++ src/usr.bin/make/dir.c	Sat Aug 22 17:34:25 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: dir.c,v 1.105 2020/08/22 15:55:22 rillig Exp $	*/
+/*	$NetBSD: dir.c,v 1.106 2020/08/22 17:34:25 rillig Exp $	*/
 
 /*
  * Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -70,14 +70,14 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: dir.c,v 1.105 2020/08/22 15:55:22 rillig Exp $";
+static char rcsid[] = "$NetBSD: dir.c,v 1.106 2020/08/22 17:34:25 rillig Exp $";
 #else
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static char sccsid[] = "@(#)dir.c	8.2 (Berkeley) 1/2/94";
 #else
-__RCSID("$NetBSD: dir.c,v 1.105 2020/08/22 15:55:22 rillig Exp $");
+__RCSID("$NetBSD: dir.c,v 1.106 2020/08/22 17:34:25 rillig Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -650,7 +650,7 @@ closing_brace(const char *p)
 {
     int nest = 0;
     while (*p != '\0') {
-        if (*p == '}' && nest == 0)
+	if (*p == '}' && nest == 0)
 	    break;
 	if (*p == '{')
 	    nest++;
@@ -668,7 +668,7 @@ separator_comma(const char *p)
 {
     int nest = 0;
     while (*p != '\0') {
-        if ((*p == '}' || *p == ',') && nest == 0)
+	if ((*p == '}' || *p == ',') && nest == 0)
 	    break;
 	if (*p == '{')
 	    nest++;

Index: src/usr.bin/make/lst.c
diff -u src/usr.bin/make/lst.c:1.30 src/usr.bin/make/lst.c:1.31
--- src/usr.bin/make/lst.c:1.30	Sat Aug 22 16:00:52 2020
+++ src/usr.bin/make/lst.c	Sat Aug 22 17:34:25 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: lst.c,v 1.30 2020/08/22 16:00:52 skrll Exp $ */
+/* $NetBSD: lst.c,v 1.31 2020/08/22 17:34:25 rillig Exp $ */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -38,11 +38,11 @@
 #include "make.h"
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: lst.c,v 1.30 2020/08/22 16:00:52 skrll Exp $";
+static char rcsid[] = "$NetBSD: lst.c,v 1.31 2020/08/22 17:34:25 rillig Exp $";
 #else
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: lst.c,v 1.30 2020/08/22 16:00:52 skrll Exp $");
+__RCSID("$NetBSD: lst.c,v 1.31 2020/08/22 17:34:25 rillig Exp $");
 #endif /* not lint */
 #endif
 
@@ -690,7 +690,7 @@ Lst_PrependAllS(Lst dst, Lst src)
 {
     LstNode node;
     for (node = src->last; node != NULL; node = node->prev)
-        Lst_PrependS(dst, node->datum);
+	Lst_PrependS(dst, node->datum);
 }
 
 /* Copy the element data from src to the end of dst. */
@@ -699,7 +699,7 @@ Lst_AppendAllS(Lst dst, Lst src)
 {
     LstNode node;
     for (node = src->first; node != NULL; node = node->next)
-        Lst_AppendS(dst, node->datum);
+	Lst_AppendS(dst, node->datum);
 }
 
 /*

Index: src/usr.bin/make/main.c
diff -u src/usr.bin/make/main.c:1.308 src/usr.bin/make/main.c:1.309
--- src/usr.bin/make/main.c:1.308	Sat Aug 22 15:17:09 2020
+++ src/usr.bin/make/main.c	Sat Aug 22 17:34:25 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: main.c,v 1.308 2020/08/22 15:17:09 rillig Exp $	*/
+/*	$NetBSD: main.c,v 1.309 2020/08/22 17:34:25 rillig Exp $	*/
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -69,7 +69,7 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: main.c,v 1.308 2020/08/22 15:17:09 rillig Exp $";
+static char rcsid[] = "$NetBSD: main.c,v 1.309 2020/08/22 17:34:25 rillig Exp $";
 #else
 #include <sys/cdefs.h>
 #ifndef lint
@@ -81,7 +81,7 @@ __COPYRIGHT("@(#) Copyright (c) 1988, 19
 #if 0
 static char sccsid[] = "@(#)main.c	8.3 (Berkeley) 3/19/94";
 #else
-__RCSID("$NetBSD: main.c,v 1.308 2020/08/22 15:17:09 rillig Exp $");
+__RCSID("$NetBSD: main.c,v 1.309 2020/08/22 17:34:25 rillig Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -1529,7 +1529,7 @@ ReadMakefile(const void *p, const void *
 				fname = path;
 				goto found;
 			}
-		    	free(path);
+			free(path);
 
 			/* If curdir failed, try objdir (ala .depend) */
 			path = str_concat3(objdir, "/", fname);

Index: src/usr.bin/make/meta.c
diff -u src/usr.bin/make/meta.c:1.96 src/usr.bin/make/meta.c:1.97
--- src/usr.bin/make/meta.c:1.96	Sat Aug 22 15:17:09 2020
+++ src/usr.bin/make/meta.c	Sat Aug 22 17:34:25 2020
@@ -1,4 +1,4 @@
-/*      $NetBSD: meta.c,v 1.96 2020/08/22 15:17:09 rillig Exp $ */
+/*      $NetBSD: meta.c,v 1.97 2020/08/22 17:34:25 rillig Exp $ */
 
 /*
  * Implement 'meta' mode.
@@ -1010,8 +1010,8 @@ meta_ignore(GNode *gn, const char *p)
     }
 
     if (metaIgnorePatterns) {
-        const char *expr;
-        char *pm;
+	const char *expr;
+	char *pm;
 
 	Var_Set(".p.", p, gn);
 	expr = "${" MAKE_META_IGNORE_PATTERNS ":@m@${.p.:M$m}@}";

Index: src/usr.bin/make/parse.c
diff -u src/usr.bin/make/parse.c:1.257 src/usr.bin/make/parse.c:1.258
--- src/usr.bin/make/parse.c:1.257	Sat Aug 22 15:17:09 2020
+++ src/usr.bin/make/parse.c	Sat Aug 22 17:34:25 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: parse.c,v 1.257 2020/08/22 15:17:09 rillig Exp $	*/
+/*	$NetBSD: parse.c,v 1.258 2020/08/22 17:34:25 rillig Exp $	*/
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -69,14 +69,14 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: parse.c,v 1.257 2020/08/22 15:17:09 rillig Exp $";
+static char rcsid[] = "$NetBSD: parse.c,v 1.258 2020/08/22 17:34:25 rillig 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.257 2020/08/22 15:17:09 rillig Exp $");
+__RCSID("$NetBSD: parse.c,v 1.258 2020/08/22 17:34:25 rillig Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -2746,7 +2746,7 @@ ParseEOF(void)
     free(curFile);
 
     if (Lst_IsEmpty(includes)) {
-        curFile = NULL;
+	curFile = NULL;
 	/* We've run out of input */
 	Var_Delete(".PARSEDIR", VAR_GLOBAL);
 	Var_Delete(".PARSEFILE", VAR_GLOBAL);

Index: src/usr.bin/make/var.c
diff -u src/usr.bin/make/var.c:1.455 src/usr.bin/make/var.c:1.456
--- src/usr.bin/make/var.c:1.455	Sat Aug 22 17:32:55 2020
+++ src/usr.bin/make/var.c	Sat Aug 22 17:34:25 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: var.c,v 1.455 2020/08/22 17:32:55 rillig Exp $	*/
+/*	$NetBSD: var.c,v 1.456 2020/08/22 17:34:25 rillig Exp $	*/
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -69,14 +69,14 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: var.c,v 1.455 2020/08/22 17:32:55 rillig Exp $";
+static char rcsid[] = "$NetBSD: var.c,v 1.456 2020/08/22 17:34:25 rillig Exp $";
 #else
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static char sccsid[] = "@(#)var.c	8.3 (Berkeley) 3/19/94";
 #else
-__RCSID("$NetBSD: var.c,v 1.455 2020/08/22 17:32:55 rillig Exp $");
+__RCSID("$NetBSD: var.c,v 1.456 2020/08/22 17:34:25 rillig Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -920,7 +920,7 @@ Var_Append(const char *name, const char 
     Var *v;
 
     if (strchr(name, '$') != NULL) {
-        const char *unexpanded_name = name;
+	const char *unexpanded_name = name;
 	name = name_freeIt = Var_Subst(name, ctxt, VARE_WANTRES);
 	if (name[0] == '\0') {
 	    VAR_DEBUG("Var_Append(\"%s\", \"%s\", ...) "
@@ -3071,7 +3071,7 @@ ApplyModifiers(
 	    char eflags_str[VarEvalFlags_ToStringSize];
 	    char vflags_str[VarFlags_ToStringSize];
 	    Boolean is_single_char = mod[0] != '\0' &&
-	        (mod[1] == endc || mod[1] == ':');
+		(mod[1] == endc || mod[1] == ':');
 
 	    /* At this point, only the first character of the modifier can
 	     * be used since the end of the modifier is not yet known. */

Reply via email to