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: unexport inbuf
details: https://anonhg.NetBSD.org/src/rev/aae54788a31e
branches: trunk
changeset: 1026336:aae54788a31e
user: rillig <rillig%NetBSD.org@localhost>
date: Fri Nov 19 18:25:50 2021 +0000
description:
indent: unexport inbuf
No functional change.
diffstat:
usr.bin/indent/indent.h | 16 +---------------
usr.bin/indent/io.c | 18 +++++++++++++++---
2 files changed, 16 insertions(+), 18 deletions(-)
diffs (69 lines):
diff -r 67a228645e8f -r aae54788a31e usr.bin/indent/indent.h
--- a/usr.bin/indent/indent.h Fri Nov 19 18:23:59 2021 +0000
+++ b/usr.bin/indent/indent.h Fri Nov 19 18:25:50 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: indent.h,v 1.95 2021/11/19 18:23:59 rillig Exp $ */
+/* $NetBSD: indent.h,v 1.96 2021/11/19 18:25:50 rillig Exp $ */
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
@@ -143,20 +143,6 @@
char *l; /* end of the allocated memory */
};
-extern struct input_buffer {
- struct buffer inp; /* one line of input, ready to be split into
- * tokens; occasionally this buffer switches
- * to save_com_buf */
- char save_com_buf[5000]; /* input text is saved here when looking for
- * the brace after an if, while, etc */
- char *save_com_s; /* start of the comment in save_com_buf */
- char *save_com_e; /* end of the comment in save_com_buf */
-
- char *saved_inp_s; /* saved value of inp.s when taking input from
- * save_com */
- char *saved_inp_e; /* similarly saved value of inp.e */
-} inbuf;
-
extern FILE *input;
extern FILE *output;
diff -r 67a228645e8f -r aae54788a31e usr.bin/indent/io.c
--- a/usr.bin/indent/io.c Fri Nov 19 18:23:59 2021 +0000
+++ b/usr.bin/indent/io.c Fri Nov 19 18:25:50 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: io.c,v 1.123 2021/11/19 18:23:59 rillig Exp $ */
+/* $NetBSD: io.c,v 1.124 2021/11/19 18:25:50 rillig Exp $ */
/*-
* SPDX-License-Identifier: BSD-4-Clause
@@ -43,7 +43,7 @@
#include <sys/cdefs.h>
#if defined(__NetBSD__)
-__RCSID("$NetBSD: io.c,v 1.123 2021/11/19 18:23:59 rillig Exp $");
+__RCSID("$NetBSD: io.c,v 1.124 2021/11/19 18:25:50 rillig Exp $");
#elif defined(__FreeBSD__)
__FBSDID("$FreeBSD: head/usr.bin/indent/io.c 334927 2018-06-10 16:44:18Z pstef $");
#endif
@@ -57,7 +57,19 @@
#include "indent.h"
-struct input_buffer inbuf;
+static struct input_buffer {
+ struct buffer inp; /* one line of input, ready to be split into
+ * tokens; occasionally this buffer switches
+ * to save_com_buf */
+ char save_com_buf[5000]; /* input text is saved here when looking for
+ * the brace after an if, while, etc */
+ char *save_com_s; /* start of the comment in save_com_buf */
+ char *save_com_e; /* end of the comment in save_com_buf */
+
+ char *saved_inp_s; /* saved value of inp.s when taking input from
+ * save_com */
+ char *saved_inp_e; /* similarly saved value of inp.e */
+} inbuf;
static int paren_indent;
static bool suppress_blanklines;
Home |
Main Index |
Thread Index |
Old Index