some reformatting (5 of 4)

Take care of most of include/*.h.  I punted on extern.h.

For both src/*.c and include/*.h, I used mismatched checks of
width > 79 to decide which files to look at and then width > 78
to decide which lines to maybe revise, so I didn't look at a bunch
of the files.

I don't plan to go back and do it right.  Shortening lines that are
80 or wider to less than 80 is the significant part.  Otherwise
emacs puts a backslash in column 80 and the rest of the line of text
on the next line of the screen, making things harder to read.
This commit is contained in:
PatR
2024-09-06 13:08:07 -07:00
parent 0e1abe0df9
commit cf6509dde9
16 changed files with 216 additions and 172 deletions

View File

@@ -1,4 +1,4 @@
/* NetHack 3.7 defsym.h $NHDT-Date: 1720565306 2024/07/09 22:48:26 $ $NHDT-Branch: NetHack-3.7 $ $NHDT-Revision: 1.24 $ */
/* NetHack 3.7 defsym.h $NHDT-Date: 1725653007 2024/09/06 20:03:27 $ $NHDT-Branch: NetHack-3.7 $ $NHDT-Revision: 1.25 $ */
/* Copyright (c) 2016 by Pasi Kallinen */
/* NetHack may be freely redistributed. See license for details. */
@@ -33,8 +33,10 @@
DUMP_ENUMS_OBJCLASS_CLASSES, DUMP_ENUMS_OBJCLASS_SYMS)
*/
#if defined(PCHAR_S_ENUM) || defined(PCHAR_PARSE) \
|| defined(PCHAR_DRAWING) || defined(PCHAR_TILES) \
#if defined(PCHAR_S_ENUM) \
|| defined(PCHAR_PARSE) \
|| defined(PCHAR_DRAWING) \
|| defined(PCHAR_TILES) \
|| defined(DUMP_ENUMS_PCHAR)
/*
@@ -248,9 +250,12 @@
#endif /* PCHAR_S_ENUM || PCHAR_PARSE || PCHAR_DRAWING || PCHAR_TILES
* || DUMP_ENUMS_PCHAR */
#if defined(MONSYMS_S_ENUM) || defined(MONSYMS_DEFCHAR_ENUM) \
|| defined(MONSYMS_PARSE) || defined(MONSYMS_DRAWING) \
|| defined(DUMP_ENUMS_MONSYMS) || defined(DUMP_ENUMS_MONSYMS_DEFCHAR)
#if defined(MONSYMS_S_ENUM) \
|| defined(MONSYMS_DEFCHAR_ENUM) \
|| defined(MONSYMS_PARSE) \
|| defined(MONSYMS_DRAWING) \
|| defined(DUMP_ENUMS_MONSYMS) \
|| defined(DUMP_ENUMS_MONSYMS_DEFCHAR)
/*
MONSYM(idx, ch, sym desc)
@@ -282,7 +287,8 @@
#define MONSYM(idx, ch, basename, sym, desc) { sym, #sym },
#elif defined(DUMP_ENUMS_MONSYMS_DEFCHAR)
#define MONSYM(idx, ch, basename, sym, desc) { DEF_##basename, "DEF_" #basename },
#define MONSYM(idx, ch, basename, sym, desc) \
{ DEF_##basename, "DEF_" #basename },
#endif
@@ -364,11 +370,14 @@
* || MONSYMS_DRAWING || DUMP_ENUMS_MONSYMS)
* || DUMP_ENUMS_MONSYMS_DEFCHAR */
#if defined(OBJCLASS_S_ENUM) || defined(OBJCLASS_DEFCHAR_ENUM) \
|| defined(OBJCLASS_CLASS_ENUM) || defined(OBJCLASS_PARSE) \
|| defined(OBJCLASS_DRAWING) || defined(DUMP_ENUMS_OBJCLASS_DEFCHARS) \
|| defined(DUMP_ENUMS_OBJCLASS_CLASSES) \
|| defined(DUMP_ENUMS_OBJCLASS_SYMS)
#if defined(OBJCLASS_S_ENUM) \
|| defined(OBJCLASS_DEFCHAR_ENUM) \
|| defined(OBJCLASS_CLASS_ENUM) \
|| defined(OBJCLASS_PARSE) \
|| defined(OBJCLASS_DRAWING) \
|| defined(DUMP_ENUMS_OBJCLASS_DEFCHARS) \
|| defined(DUMP_ENUMS_OBJCLASS_CLASSES) \
|| defined(DUMP_ENUMS_OBJCLASS_SYMS)
/*
OBJCLASS(idx, ch, basename, sym, name, explain)