From 2b5ed0b6b9a803728e921780d0ca6d217b77809c Mon Sep 17 00:00:00 2001 From: PatR Date: Tue, 6 Dec 2022 00:49:52 -0800 Subject: [PATCH] trap.h formatting I don't know whether we'll ever run the code through clang-format again, but in case we do, end-of-line comments which span lines should begin continuation lines with '*', otherwise they get turned into block comments beginning on the next line. |code; /* start | end */ gets changed to |code; |/* start end */ but |code; /* start | * end */ stays as-is. --- include/trap.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/include/trap.h b/include/trap.h index 028f7a8b7..35cfdd507 100644 --- a/include/trap.h +++ b/include/trap.h @@ -1,4 +1,4 @@ -/* NetHack 3.7 trap.h $NHDT-Date: 1615759956 2021/03/14 22:12:36 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.20 $ */ +/* NetHack 3.7 trap.h $NHDT-Date: 1670316586 2022/12/06 08:49:46 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.31 $ */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /*-Copyright (c) Pasi Kallinen, 2016. */ /* NetHack may be freely redistributed. See license for details. */ @@ -24,12 +24,12 @@ struct trap { Bitfield(tseen, 1); Bitfield(once, 1); Bitfield(madeby_u, 1); /* So monsters may take offence when you trap - them. Recognizing who made the trap isn't - completely unreasonable, everybody has - their own style. This flag is also needed - when you untrap a monster. It would be too - easy to make a monster peaceful if you could - set a trap for it and then untrap it. */ + * them. Recognizing who made the trap isn't + * completely unreasonable, everybody has + * their own style. This flag is also needed + * when you untrap a monster. It would be too + * easy to make a monster peaceful if you could + * set a trap for it and then untrap it. */ union vlaunchinfo vl; #define launch_otyp vl.v_launch_otyp #define launch2 vl.v_launch2