Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/indent indent: change product name, update version n...
details: https://anonhg.NetBSD.org/src/rev/f25e1fe7edd1
branches: trunk
changeset: 1024559:f25e1fe7edd1
user: rillig <rillig%NetBSD.org@localhost>
date: Thu Oct 28 20:31:17 2021 +0000
description:
indent: change product name, update version number
NetBSD's indent has deviated enough from FreeBSD's indent to warrant a
different product name. When indent was copied from FreeBSD in 2019,
that update introduced several new bugs, some of which have been fixed
in the NetBSD version.
NetBSD indent, unlike FreeBSD indent, supports C99 comments and C99
initializer designators.
diffstat:
tests/usr.bin/indent/opt_version.c | 4 ++--
usr.bin/indent/args.c | 8 +++-----
2 files changed, 5 insertions(+), 7 deletions(-)
diffs (52 lines):
diff -r ff431251a289 -r f25e1fe7edd1 tests/usr.bin/indent/opt_version.c
--- a/tests/usr.bin/indent/opt_version.c Thu Oct 28 15:09:08 2021 +0000
+++ b/tests/usr.bin/indent/opt_version.c Thu Oct 28 20:31:17 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: opt_version.c,v 1.1 2021/10/23 20:23:27 rillig Exp $ */
+/* $NetBSD: opt_version.c,v 1.2 2021/10/28 20:31:17 rillig Exp $ */
/* $FreeBSD$ */
/*
@@ -13,5 +13,5 @@
#indent end
#indent run --version
-FreeBSD indent 2.0
+NetBSD indent 2.1
#indent end
diff -r ff431251a289 -r f25e1fe7edd1 usr.bin/indent/args.c
--- a/usr.bin/indent/args.c Thu Oct 28 15:09:08 2021 +0000
+++ b/usr.bin/indent/args.c Thu Oct 28 20:31:17 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: args.c,v 1.60 2021/10/26 19:36:30 rillig Exp $ */
+/* $NetBSD: args.c,v 1.61 2021/10/28 20:31:17 rillig Exp $ */
/*-
* SPDX-License-Identifier: BSD-4-Clause
@@ -43,7 +43,7 @@
#include <sys/cdefs.h>
#if defined(__NetBSD__)
-__RCSID("$NetBSD: args.c,v 1.60 2021/10/26 19:36:30 rillig Exp $");
+__RCSID("$NetBSD: args.c,v 1.61 2021/10/28 20:31:17 rillig Exp $");
#elif defined(__FreeBSD__)
__FBSDID("$FreeBSD: head/usr.bin/indent/args.c 336318 2018-07-15 21:04:21Z pstef $");
#endif
@@ -60,8 +60,6 @@
#include "indent.h"
-#define INDENT_VERSION "2.0"
-
#if __STDC_VERSION__ >= 201112L
#define assert_type(expr, type) _Generic((expr), type : (expr))
#else
@@ -229,7 +227,7 @@
const char *arg_end;
if (strncmp(arg, "-version", 8) == 0) {
- printf("FreeBSD indent %s\n", INDENT_VERSION);
+ printf("NetBSD indent 2.1\n");
exit(0);
}
Home |
Main Index |
Thread Index |
Old Index