Sat Mar 13 23:42:23 2021 UTC ()
indent: remove disabled duplicate RCS ID from header

By convention, headers don't record their RCS ID.


(rillig)
diff -r1.14 -r1.15 src/usr.bin/indent/indent.h

cvs diff -r1.14 -r1.15 src/usr.bin/indent/indent.h (switch to unified diff)

--- src/usr.bin/indent/indent.h 2021/03/13 13:25:23 1.14
+++ src/usr.bin/indent/indent.h 2021/03/13 23:42:23 1.15
@@ -1,71 +1,69 @@ @@ -1,71 +1,69 @@
1/* $NetBSD: indent.h,v 1.14 2021/03/13 13:25:23 rillig Exp $ */ 1/* $NetBSD: indent.h,v 1.15 2021/03/13 23:42:23 rillig Exp $ */
2 2
3/*- 3/*-
4 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 4 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
5 * 5 *
6 * Copyright (c) 2001 Jens Schweikhardt 6 * Copyright (c) 2001 Jens Schweikhardt
7 * All rights reserved. 7 * All rights reserved.
8 * 8 *
9 * Redistribution and use in source and binary forms, with or without 9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions 10 * modification, are permitted provided that the following conditions
11 * are met: 11 * are met:
12 * 1. Redistributions of source code must retain the above copyright 12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer. 13 * notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must reproduce the above copyright 14 * 2. Redistributions in binary form must reproduce the above copyright
15 * notice, this list of conditions and the following disclaimer in the 15 * notice, this list of conditions and the following disclaimer in the
16 * documentation and/or other materials provided with the distribution. 16 * documentation and/or other materials provided with the distribution.
17 * 17 *
18 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND 18 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND
19 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE 21 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE
22 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 * SUCH DAMAGE. 28 * SUCH DAMAGE.
29 */ 29 */
30 30
31#if 0 31#if 0
32#if defined(__NetBSD__) 32#if defined(__FreeBSD__)
33__RCSID("$NetBSD: indent.h,v 1.14 2021/03/13 13:25:23 rillig Exp $"); 
34#elif defined(__FreeBSD__) 
35__FBSDID("$FreeBSD: head/usr.bin/indent/indent.h 336333 2018-07-16 05:46:50Z pstef $"); 33__FBSDID("$FreeBSD: head/usr.bin/indent/indent.h 336333 2018-07-16 05:46:50Z pstef $");
36#endif 34#endif
37#endif 35#endif
38 36
39#include "indent_codes.h" 37#include "indent_codes.h"
40#include "indent_globs.h" 38#include "indent_globs.h"
41 39
42#ifndef nitems 40#ifndef nitems
43#define nitems(array) (sizeof (array) / sizeof (array[0])) 41#define nitems(array) (sizeof (array) / sizeof (array[0]))
44#endif 42#endif
45 43
46void add_typename(const char *); 44void add_typename(const char *);
47void alloc_typenames(void); 45void alloc_typenames(void);
48int compute_code_indent(void); 46int compute_code_indent(void);
49int compute_label_indent(void); 47int compute_label_indent(void);
50int indentation_after_range(int, const char *, const char *); 48int indentation_after_range(int, const char *, const char *);
51int indentation_after(int, const char *); 49int indentation_after(int, const char *);
52void init_constant_tt(void); 50void init_constant_tt(void);
53#ifdef debug 51#ifdef debug
54void debug_vis_range(const char *, const char *, const char *, const char *); 52void debug_vis_range(const char *, const char *, const char *, const char *);
55void debug_printf(const char *, ...) __printflike(1, 2); 53void debug_printf(const char *, ...) __printflike(1, 2);
56void debug_println(const char *, ...) __printflike(1, 2); 54void debug_println(const char *, ...) __printflike(1, 2);
57const char *token_type_name(token_type); 55const char *token_type_name(token_type);
58#else 56#else
59#define debug_printf(fmt, ...) do { } while (false) 57#define debug_printf(fmt, ...) do { } while (false)
60#define debug_println(fmt, ...) do { } while (false) 58#define debug_println(fmt, ...) do { } while (false)
61#define debug_vis_range(prefix, s, e, suffix) do { } while (false) 59#define debug_vis_range(prefix, s, e, suffix) do { } while (false)
62#endif 60#endif
63token_type lexi(struct parser_state *); 61token_type lexi(struct parser_state *);
64void diag(int, const char *, ...) __printflike(2, 3); 62void diag(int, const char *, ...) __printflike(2, 3);
65void dump_line(void); 63void dump_line(void);
66void fill_buffer(void); 64void fill_buffer(void);
67void parse(token_type); 65void parse(token_type);
68void process_comment(void); 66void process_comment(void);
69void set_defaults(void); 67void set_defaults(void);
70void set_option(char *); 68void set_option(char *);
71void set_profile(const char *); 69void set_profile(const char *);