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: move debugging functions to a separat...
details: https://anonhg.NetBSD.org/src/rev/8ec1a35508c8
branches: trunk
changeset: 1024681:8ec1a35508c8
user: rillig <rillig%NetBSD.org@localhost>
date: Sat Oct 30 22:41:18 2021 +0000
description:
indent: move debugging functions to a separate section
diffstat:
usr.bin/indent/indent.h | 18 ++++++++----------
1 files changed, 8 insertions(+), 10 deletions(-)
diffs (46 lines):
diff -r 06bb57879371 -r 8ec1a35508c8 usr.bin/indent/indent.h
--- a/usr.bin/indent/indent.h Sat Oct 30 22:36:07 2021 +0000
+++ b/usr.bin/indent/indent.h Sat Oct 30 22:41:18 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: indent.h,v 1.66 2021/10/30 22:36:07 rillig Exp $ */
+/* $NetBSD: indent.h,v 1.67 2021/10/30 22:41:18 rillig Exp $ */
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
@@ -277,10 +277,6 @@
#define STACKSIZE 256
extern struct parser_state {
- /*
- * TODO: Double-check that the word 'prev' in the following variables
- * means exactly the same thing.
- */
lexer_symbol prev_token;
enum keyword_kind prev_keyword;
enum keyword_kind curr_keyword;
@@ -370,11 +366,6 @@
#define array_length(array) (sizeof(array) / sizeof((array)[0]))
-void add_typename(const char *);
-int compute_code_indent(void);
-int compute_label_indent(void);
-int indentation_after_range(int, const char *, const char *);
-int indentation_after(int, const char *);
#ifdef debug
void
debug_vis_range(const char *, const char *, const char *,
@@ -386,6 +377,13 @@
#define debug_println(fmt, ...) do { } while (false)
#define debug_vis_range(prefix, s, e, suffix) do { } while (false)
#endif
+
+void add_typename(const char *);
+int compute_code_indent(void);
+int compute_label_indent(void);
+int indentation_after_range(int, const char *, const char *);
+int indentation_after(int, const char *);
+
void inbuf_skip(void);
char inbuf_next(void);
lexer_symbol lexi(void);
Home |
Main Index |
Thread Index |
Old Index