Skip to content

Commit 652dcd9

Browse files
committed
zephyrdoom, doom: Clean implementation sources
IMPORTANT: The commit does not change functionality of the code! The commit contains the following changes: - Clean up of redundant/deprecated comments; - Clean up of redundant whitespaces and new lines; - Fix of spacing within lines; - Unify C comments to C89 and C98 code structure (/**/ instead of //); - Fix too long lines; - Unify comments among files; - Unify TODO sections within the code; - Remove deprecated sections of code; - Fix combining and dividing of conditions and loops; - Fix typos; - Fix various definitions of functions'; Additionally, the source code structure has been unified using default auto formatter of C/C++ code which is up to date with recent standards. In Visual Studio code if not enabled by default, the key combination is Shift + Alt + F Some exceptions have been applied for better readability due to Doxygen, Chocolate Doom custom parser documentation and various directives available in the code.
1 parent 91ed538 commit 652dcd9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+30017
-32300
lines changed

zephyrdoom/src/doom/am_map.c

Lines changed: 540 additions & 581 deletions
Large diffs are not rendered by default.

zephyrdoom/src/doom/am_map.h

Lines changed: 37 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,55 @@
1-
//
2-
// Copyright(C) 1993-1996 Id Software, Inc.
3-
// Copyright(C) 2005-2014 Simon Howard
4-
//
5-
// This program is free software; you can redistribute it and/or
6-
// modify it under the terms of the GNU General Public License
7-
// as published by the Free Software Foundation; either version 2
8-
// of the License, or (at your option) any later version.
9-
//
10-
// This program is distributed in the hope that it will be useful,
11-
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12-
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13-
// GNU General Public License for more details.
14-
//
15-
// DESCRIPTION:
16-
// AutoMap module.
17-
//
1+
/*
2+
* Copyright(C) 1993-1996 Id Software, Inc.
3+
* Copyright(C) 2005-2014 Simon Howard
4+
*
5+
* This program is free software; you can redistribute it and/or
6+
* modify it under the terms of the GNU General Public License
7+
* as published by the Free Software Foundation; either version 2
8+
* of the License, or (at your option) any later version.
9+
*
10+
* This program is distributed in the hope that it will be useful,
11+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
* GNU General Public License for more details.
14+
*
15+
* DESCRIPTION:
16+
* AutoMap module.
17+
*/
1818

1919
#ifndef __AMMAP_H__
2020
#define __AMMAP_H__
2121

2222
#include "d_event.h"
2323
#include "m_cheat.h"
2424

25-
// Used by ST StatusBar stuff.
26-
// NRFD-NOTE: Decreased size of data in event_t
27-
// #define AM_MSGHEADER (('a'<<24)+('m'<<16))
28-
// #define AM_MSGENTERED (AM_MSGHEADER | ('e'<<8))
29-
// #define AM_MSGEXITED (AM_MSGHEADER | ('x'<<8))
25+
/*
26+
* // TODO
27+
* // NRFD-NOTE: Decreased size of data in event_t
28+
* // Used by ST StatusBar stuff.
29+
* #define AM_MSGHEADER (('a'<<24)+('m'<<16))
30+
* #define AM_MSGENTERED (AM_MSGHEADER | ('e'<<8))
31+
* #define AM_MSGEXITED (AM_MSGHEADER | ('x'<<8))
32+
*/
3033

3134
#define AM_MSGHEADER 0x4000
3235
#define AM_MSGENTERED (AM_MSGHEADER | 0x0E00)
3336
#define AM_MSGEXITED (AM_MSGHEADER | 0X0F00)
3437

35-
// Called by main loop.
36-
boolean AM_Responder (event_t* ev);
38+
/* Called by main loop. */
39+
boolean AM_Responder(event_t *ev);
3740

38-
// Called by main loop.
39-
void AM_Ticker (void);
41+
/* Called by main loop. */
42+
void AM_Ticker(void);
4043

41-
// Called by main loop,
42-
// called instead of view drawer if automap active.
43-
void AM_Drawer (void);
44-
45-
// Called to force the automap to quit
46-
// if the level is completed while it is up.
47-
void AM_Stop (void);
44+
/* Called by main loop. Called instead of view drawer if automap active. */
45+
void AM_Drawer(void);
4846

47+
/*
48+
* Called to force the automap to quit,
49+
* if the level is completed while it is up.
50+
*/
51+
void AM_Stop(void);
4952

5053
extern cheatseq_t cheat_amap;
5154

52-
53-
#endif
55+
#endif /* __AMMAP_H__ */

0 commit comments

Comments
 (0)