Skip to content

Commit

Permalink
chore: remove outdated source file preamble comments
Browse files Browse the repository at this point in the history
end changelog

Helper script:

```py
files = [*list((root_dir/'src').rglob('*.cpp')), *list((root_dir/'src').rglob('*.h'))]
for f in files:
    print(f)
    text = f.read_text('utf-8')
    if 'by Jer' not in text:
        continue

    r = []
    done = False
    for line in text.splitlines():
        if done:
            r.append(line)
            continue

        if line.startswith('/') or line.startswith(' ') or line.startswith('\t') or line == '':
            continue
        done = True
        r.append(line)

    result = '\n'.join(r)
    if not result.endswith('\n'):
        result += '\n'
    f.write_text(result)
```
  • Loading branch information
connorjclark committed Aug 31, 2023
1 parent 2b5a128 commit 3341301
Show file tree
Hide file tree
Showing 84 changed files with 1 addition and 1,146 deletions.
11 changes: 0 additions & 11 deletions src/base/colors.cpp
@@ -1,13 +1,3 @@
//--------------------------------------------------------
// ZQuest Classic
// by Jeremy Craner, 1999-2000
//
// colors.cc
//
// Palette data for ZQuest Classic.
//
//--------------------------------------------------------

#include "base/zc_alleg.h"
#include "base/colors.h"

Expand Down Expand Up @@ -475,4 +465,3 @@ void create_zc_trans_table(COLOR_MAP *table, AL_CONST PALETTE pal, int32_t r, in
}
}
}

10 changes: 0 additions & 10 deletions src/base/colors.h
@@ -1,13 +1,3 @@
//--------------------------------------------------------
// ZQuest Classic
// by Jeremy Craner, 1999-2000
//
// colors.h
//
// Palette data for ZQuest Classic.
//
//--------------------------------------------------------

#ifndef _ZC_COLORS_H_
#define _ZC_COLORS_H_

Expand Down
12 changes: 0 additions & 12 deletions src/base/gui.cpp
@@ -1,14 +1,3 @@
//--------------------------------------------------------
// ZQuest Classic
// by Jeremy Craner, 1999-2000
//
// gui.c
//
// System functions, input handlers, GUI stuff, etc.
// for ZQuest Classic.
//
//--------------------------------------------------------

#include <stdio.h>
#include <stdlib.h>
#include <cstring>
Expand Down Expand Up @@ -172,4 +161,3 @@ void new_gui_popup_dialog(DIALOG* dialog, int32_t focus_obj, bool& done, bool& r
ret=do_zqdialog(dialog, focus_obj);
running=false;
}

12 changes: 0 additions & 12 deletions src/base/gui.h
@@ -1,14 +1,3 @@
//--------------------------------------------------------
// ZQuest Classic
// by Jeremy Craner, 1999-2000
//
// zc_sys.h
//
// System functions, input handlers, GUI stuff, etc.
// for ZQuest Classic.
//
//--------------------------------------------------------

#ifndef _GUI_H_
#define _GUI_H_

Expand All @@ -23,4 +12,3 @@ int32_t do_zqdialog(DIALOG *dialog, int32_t focus_obj, bool checkexit = false);
int32_t do_zqdialog_custom(DIALOG *dialog, int32_t focus_obj, bool checkexit, std::function<bool(int)> proc);
void new_gui_popup_dialog(DIALOG* dialog, int32_t focus_obj, bool& done, bool& running);
#endif // _GUI_H_

43 changes: 0 additions & 43 deletions src/base/jwinfsel.cpp
@@ -1,45 +1,3 @@
/* __ __
* /_/\ __ __ __ /_/\ ______
* _\_\/ / /\/ /\/ /\ _\_\/ / ____ \
* / /\ / / / / / / / / /\ / /\_ / /\
* __ / / / / /_/ /_/ / / / / / / / / / / /
* / /_/ / / /_________/ / /_/ / /_/ / /_/ /
* \____/ / \_________\/ \_\/ \_\/ \_\/
* \___\/
*
*
*
* jwinfsel.c
*
* The file selector.
*
* By Shawn Hargreaves.
*
* Guilherme Silveira and Theuzifan Sumachingun both independently
* modified it to only list valid drive letters.
*
* Peter Pavlovic modified it not to list the logical drives, such
* as the b: drive assigned as a logical drive for a: on single
* floppy disk drive equipped systems and improved the browsing
* through directories.
*
* Peter Wang and Eric Botcazou modified it to stretch to screen and
* font sizes.
*
* Annie Testes modified it so that buffer overflows cannot occur
* anymore.
*
* Eric Botcazou optimized the handling of the extension string.
*
* Adapted to "jwin" style by Jeremy Craner. Also added the "browser".
*
* Version: 8/2/03
* Allegro version: 4.x
*
* See readme.txt for copyright information.
*/

//glibc 2.28 and later require this: -Z
#ifdef __GNUG__
#define ALLEGRO_NO_FIX_ALIASES
#endif
Expand Down Expand Up @@ -1453,4 +1411,3 @@ void FLIST::clear()

size = 0;
}

28 changes: 0 additions & 28 deletions src/base/jwinfsel.h
@@ -1,30 +1,3 @@
/* __ __
* /_/\ __ __ __ /_/\ ______
* _\_\/ / /\/ /\/ /\ _\_\/ / ____ \
* / /\ / / / / / / / / /\ / /\_ / /\
* __ / / / / /_/ /_/ / / / / / / / / / / /
* / /_/ / / /_________/ / /_/ / /_/ / /_/ /
* \____/ / \_________\/ \_\/ \_\/ \_\/
* \___\/
*
*
*
* jwinfsel.h
*
* The file selector.
*
* By Shawn Hargreaves.
*
* Guilherme Silveira and Theuzifan Sumachingun both independently
* modified it to only list valid drive letters.
*
* Adapted to "jwin" style by Jeremy Craner. Also added the "browser".
*
* Version: 3/22/00
* Allegro version: 3.1x (don't know if it works with WIP)
*
*/

#ifndef _JWIN_FSEL_H_
#define _JWIN_FSEL_H_

Expand Down Expand Up @@ -97,4 +70,3 @@ int32_t jwin_file_browse_ex(AL_CONST char *message, char *path, EXT_LIST *list,
// }
// #endif
#endif // _JWIN_FSEL_H_

8 changes: 0 additions & 8 deletions src/base/zc_alleg.h
@@ -1,11 +1,3 @@
//--------------------------------------------------------
// ZQuest Classic
// by Jeremy Craner, 1999-2000
//
// zc_alleg.h
//
//--------------------------------------------------------

#ifndef _ZC_ALLEG_H_
#define _ZC_ALLEG_H_

Expand Down
12 changes: 0 additions & 12 deletions src/base/zdefs.h
@@ -1,14 +1,3 @@
//--------------------------------------------------------
// ZQuest Classic
// by Jeremy Craner, 1999-2000
//
// zdefs.h
//
// Data formats, definitions, and a few small functions
// for zelda.cc and zquest.cc
//
//--------------------------------------------------------

#ifndef _ZDEFS_H_
#define _ZDEFS_H_

Expand Down Expand Up @@ -3391,4 +3380,3 @@ enum
#undef rad16

#endif //_ZDEFS_H_

12 changes: 1 addition & 11 deletions src/base/zsys.cpp
@@ -1,13 +1,3 @@
//--------------------------------------------------------
// ZQuest Classic
// by Jeremy Craner, 1999-2000
//
// zsys.cc
//
// System functions, etc.
//
//--------------------------------------------------------

#include <stdio.h>
#include <stdarg.h>
#include <cstring>
Expand Down Expand Up @@ -1637,4 +1627,4 @@ void sane_destroy_bitmap(BITMAP **bmp)
destroy_bitmap(*bmp);
*bmp = NULL;
}
}
}
10 changes: 0 additions & 10 deletions src/base/zsys.h
@@ -1,13 +1,3 @@
//--------------------------------------------------------
// ZQuest Classic
// by Jeremy Craner, 1999-2000
//
// zsys.h
//
// System functions, etc.
//
//--------------------------------------------------------

#if defined(ALLEGRO_WINDOWS)
#include <conio.h>
#endif
Expand Down
15 changes: 0 additions & 15 deletions src/defdata.cpp
@@ -1,17 +1,3 @@
//--------------------------------------------------------
// ZQuest Classic
// by Jeremy Craner, 1999-2000
//
// defdata.cc
//
// Default item, weapon, and enemy data for ZQuest Classic.
//
// This data was originally hard coded in the item class,
// enemy classes, etc. I exctracted it to make generic
// classes, thus allowing custom items and enemies.
//
//--------------------------------------------------------

#include "defdata.h"
#include "sfx.h"
#include "zinfo.h"
Expand Down Expand Up @@ -728,4 +714,3 @@ item_drop_object default_item_drop_sets[isMAX]=
{ "Magic 100%", { iLMagic, iSMagic, 0, 0, 0, 0, 0, 0, 0, 0 }, { 0, 3, 1, 0, 0, 0, 0, 0, 0, 0, 0 } },
{ "Tall Grass Combos", { iRupy, iHeart, 0, 0, 0, 0, 0, 0, 0, 0 }, { 65, 20, 15, 0, 0, 0, 0, 0, 0, 0, 0 } },
};

14 changes: 0 additions & 14 deletions src/defdata.h
@@ -1,17 +1,3 @@
//--------------------------------------------------------
// ZQuest Classic
// by Jeremy Craner, 1999-2000
//
// defdata.cc
//
// Default item, weapon, and enemy data for ZQuest Classic.
//
// This data was originally hard coded in the item class,
// enemy classes, etc. I exctracted it to make generic
// classes, thus allowing custom items and enemies.
//
//--------------------------------------------------------

#ifndef _DEFDATA_H_
#define _DEFDATA_H_

Expand Down
27 changes: 0 additions & 27 deletions src/editbox.cpp
@@ -1,29 +1,3 @@
/* __ __
* /_/\ __ __ __ /_/\ ______
* _\_\/ / /\/ /\/ /\ _\_\/ / ____ \
* / /\ / / / / / / / / /\ / /\_ / /\
* __ / / / / /_/ /_/ / / / / / / / / / / /
* / /_/ / / /_________/ / /_/ / /_/ / /_/ /
* \____/ / \_________\/ \_\/ \_\/ \_\/
* \___\/
*
*
*
* jwin.c
*
* Windows(R) style GUI for Allegro.
* by Jeremy Craner
*
* Most routines are adaptations of Allegro code.
* Allegro is by Shawn Hargreaves, et al.
*
* Version: 3/22/00
* Allegro version: 3.1x (don't know if it works with WIP)
*
*/

/* This code is not fully tested */

#include <cstring>
#include "base/zc_alleg.h"
#include "jwin.h"
Expand Down Expand Up @@ -360,4 +334,3 @@ int32_t d_editbox_proc(int32_t msg, DIALOG *d, int32_t c)

return ret;
}

25 changes: 0 additions & 25 deletions src/editbox.h
@@ -1,27 +1,3 @@
/* __ __
* /_/\ __ __ __ /_/\ ______
* _\_\/ / /\/ /\/ /\ _\_\/ / ____ \
* / /\ / / / / / / / / /\ / /\_ / /\
* __ / / / / /_/ /_/ / / / / / / / / / / /
* / /_/ / / /_________/ / /_/ / /_/ / /_/ /
* \____/ / \_________\/ \_\/ \_\/ \_\/
* \___\/
*
*
*
* jwin.c
*
* Windows(R) style GUI for Allegro.
* by Jeremy Craner
*
* Most routines are adaptations of Allegro code.
* Allegro is by Shawn Hargreaves, et al.
*
* Version: 3/22/00
* Allegro version: 3.1x (don't know if it works with WIP)
*
*/

#ifndef _EDITBOX_H_
#define _EDITBOX_H_

Expand Down Expand Up @@ -83,4 +59,3 @@ typedef struct editbox_data
#endif

/*** The End ***/

11 changes: 0 additions & 11 deletions src/gamedata.cpp
@@ -1,14 +1,3 @@
//--------------------------------------------------------
// ZQuest Classic
// by Jeremy Craner, 1999-2000
//
// zelda.cc
//
// Main code for ZQuest Classic. Originally written in
// SPHINX C--, now rewritten in DJGPP with Allegro.
//
//--------------------------------------------------------

#include "gamedata.h"
#include <stdio.h>
#include "base/zc_alleg.h"
Expand Down
10 changes: 0 additions & 10 deletions src/gamedata.h
@@ -1,13 +1,3 @@
//--------------------------------------------------------
// ZQuest Classic
// by Jeremy Craner, 1999-2000
//
// zelda.h
//
// Definitions, function prototypes, etc. for zelda.cc
//
//--------------------------------------------------------

#ifndef _GAMEDATA_H_
#define _GAMEDATA_H_

Expand Down
11 changes: 0 additions & 11 deletions src/gfxpal.h
@@ -1,13 +1,3 @@
//--------------------------------------------------------
// ZQuest Classic
// by Jeremy Craner, 1999-2000
//
// gfxpal.cc
//
// Array of colors.
//
//--------------------------------------------------------

byte gfx_pal[128*3] =
{
63, 0, 1, // 0
Expand Down Expand Up @@ -139,4 +129,3 @@ byte gfx_pal[128*3] =
63, 3, 0, //188
63, 0, 0 //191
};

10 changes: 0 additions & 10 deletions src/init.cpp
@@ -1,13 +1,3 @@
//--------------------------------------------------------
// ZQuest Classic
// by Jeremy Craner, 1999-2000
//
// zquest.cc
//
// Main code for the quest editor.
//
//--------------------------------------------------------

#include <map>
#include <vector>
#include <algorithm>
Expand Down

0 comments on commit 3341301

Please sign in to comment.