Commits
- Commit:
aa9093ad3e281c2ea152151a37694f814886bdf9- From:
- Benjamin Linskey <git@linskey.org>
- Date:
Document repository history
- Commit:
aae4f221b60aeebfd6471703005fd8484ae682be- From:
- Benjamin Linskey <git@linskey.org>
- Date:
Add a fork version number to "v" command output
Dubbing the initial fork release "btl-1.0".
- Commit:
693d76084fe2451d3a1d4248438bb1ffe84669c5- From:
- Benjamin Linskey <git@linskey.org>
- Date:
Update LICENSE
- Commit:
aa2a7fa4f75be231a7d786b6dffcd807c0fa3fd4- From:
- Benjamin Linskey <git@linskey.org>
- Date:
Update readme
- Commit:
0d50ee063e80bd07cc44d8f9b9ab7a7c6d04da38- From:
- Benjamin Linskey <git@linskey.org>
- Date:
Remove stdbool.h include
This is unneeded and deprecated in C23.
- Commit:
4c3fe7be9ae5e8db116fcab16efecacd050ea8ae- From:
- Benjamin Linskey <git@linskey.org>
- Date:
Switch to C23 and use [[noreturn]] attribute
The __dead attribute is not standard on FreeBSD (which uses __dead2
instead) or Linux. C23 provides the [[noreturn]] attribute, which
accomplishes the same thing in a portable manner. (C11 provides
_Noreturn/noreturn, but this is deprecated in C23.)
- Commit:
d9589180d4c5172726b829f07d4fb9d1e5f3813d- From:
- Benjamin Linskey <git@linskey.org>
- Date:
Replace strcpy() and strcat() with safer functions
Switched to strlcpy() and strlcat(). Fixes a compiler warning
on OpenBSD.
- Commit:
885453e68b0e4205a825af8760e53f66883f6238- From:
- Benjamin Linskey <git@linskey.org>
- Date:
Define __printflike if needed
Added a macro copied from tmux.h in OpenBSD's tmux source code.
- Commit:
19ebcb21e1f14e422fa67c57770e331ad9c2a9c3- From:
- Benjamin Linskey <git@linskey.org>
- Date:
Define lint macro
This excludes version-control-related macros that cause compilation
errors on OpenBSD.
- Commit:
b9e99b8f5505d3f20e1057f62825422d94035f74- From:
- Benjamin Linskey <git@linskey.org>
- Date:
Fix non-portable invocation of basename
POSIX basename (and OpenBSD's implementation) only accepts a single
pathname argument, not a list.
- Commit:
ed15989c3872b2e23344e4ba320b3e342a6df512- From:
- Benjamin Linskey <git@linskey.org>
- Date:
Add readme and license
- Commit:
39b0545a3e471265723cd634056e8ae0c1dea65e- From:
- Benjamin Linskey <git@linskey.org>
- Date:
Update makefile for USD document
This just builds a local copy of the document that can be viewed with
"less -R".
- Commit:
90ffe3465da261809c111135605a06234522369d- From:
- Benjamin Linskey <git@linskey.org>
- Date:
Update man page
- Commit:
63def75d4ea62ce7e500d5333ca5de5c3f4ce08f- From:
- Benjamin Linskey <git@linskey.org>
- Date:
Install man page with makefile install target
- Commit:
e0f6b88f7a04d1e527f88767429025b7a030c610- From:
- Benjamin Linskey <git@linskey.org>
- Date:
Properly extract char values from chtypes
This fixes warnings about implicit conversions from chtype to char.
- Commit:
96f9bec665fb2af8eb5cddb4e8a1ef16c60dcae2- From:
- Benjamin Linskey <git@linskey.org>
- Date:
Remove an unused variable
- Commit:
a24f611703e29565571015429c8ea33a649b9137- From:
- Benjamin Linskey <git@linskey.org>
- Date:
Improve makefile and compilation flags
Reformatted makefile, removed unneeded macros, made makefile adhere to
POSIX standard, and added compiler standard, optimization, and warning
flags.
- Commit:
9456243a766daff84975730a75c83c9380f64f40- From:
- Benjamin Linskey <git@linskey.org>
- Date:
Reformat high score table for single-user mode
Removed username column and changed header to reflect the fact that all
scores come from a single user.
- Commit:
4b1b7990cd0ce0f64c89bae05a4c289c620b066f- From:
- Benjamin Linskey <git@linskey.org>
- Date:
Fix added space when reading score entry
An error in the score file parsing code caused a space to be prepended
to the "death" string, which in turn caused each score record's death
string to be indented by one additional space each time the file was
written.
- Commit:
e823a2ec470948f111e9962a6c29ec14b85f19bd- From:
- Benjamin Linskey <git@linskey.org>
- Date:
Allow multiple scores to be saved for one user
The original multi-user design only permitted each user to occupy
a single spot in the high-score table.
- Commit:
ec400e87d22764fd1b53c74b4c054efb55cf2509- From:
- Benjamin Linskey <git@linskey.org>
- Date:
Remove unneeded makefile macros
- Commit:
f66aede1cb50419c6d8a012363add2c2ea415700- From:
- Benjamin Linskey <git@linskey.org>
- Date:
Store score file in home directory
BSD games are traditionally designed for multiuser systems and thus
write their data to /var/games, using setgid to prevent tampering.
Switch to a single-user design, writing the score file to the user's
home directory. $XDG_DATA_HOME/rogue will will be used if $XDG_DATA_HOME
is defined. Otherwise, data will be written to a $HOME/.rogue directory.
This also improves the makefile by making header files a dependency of
objects.
- Commit:
cc8f9a99d8acaebce529f5f87e50e01f96ca4e00- From:
- Benjamin Linskey <git@linskey.org>
- Date:
Add various makefile targets
- Commit:
5e73ba99b51c7449bb85961bbf6b80030f220eef- From:
- Benjamin Linskey <git@linskey.org>
- Date:
Fix crash during initialization
Randomization code that swaps two string values using strlcpy(3)
during initialization frequently selected the same string as both the
source and the destination. This is supported on NetBSD but results in
undefined behavior on other BSD-derived systems. As a result, the
program usually crashed during startup during testing on macOS. Fix it
by ensuring that the two random values differ.
- Commit:
2ba715c2c7c5b920a6286fe65681d48e7b9c688d- From:
- Benjamin Linskey <git@linskey.org>
- Date:
Add .editorconfig
A cursory look at rogue.h indicates that some parts of the file were
composed with eight-character tabs and some were created with
four-character tabs. Use eight in accordance with tradition.
