Commit 7d3a129
committed
remove auroconf, fix buffer use, score I/0, move src
The use of GNU autoconf has been removed to simplify porting use
and remove the unnecessary complications that comes with autoconf.
Now we have a simple `Makefile` and `config.h` file. To configure,
edit `Makefile` and/or `config.h` as needed.
Removed GNU autoconf specific files. However we keep the
pre-formatted documentation filenames that end in "*.in".
The old "easy" and GNU autoconf specific make rules are now
"do nothing" stub rules.
By default, the code is compiled using the `gnu17` C standard.
The `Makefile`, by default, does NOT change the ownership and group
of installed code and related files.
The `make dist` and `make dist.src` to form so-called distribution
files have been removed. The GitHub repo is now the distribution:
simply clone it as needed from `https://github.com/lcn2/rogue5.4`.
Added `make depend` rule to build dependency rules.
Updated `Makefile` with the current dependency rules.
The rogue lock file is now located in the home directory.
The basename of the lock file is defined in `Makefile`
as the `${LOCKFILE_BASENAME}` make variable.
By default, the rogue lock file is now `~/.rogue.lck`.
The rogue save file is now located in the home directory.
The basename of the save file is defined in `Makefile`
as the `${SAVEFILE_BASENAME}` make variable.
By default, the rogue save file is now `~/.rogue.save`.
The rogue score file is now located in the home directory.
The basename of the save file is defined in `Makefile`
as the `${SCOREFILE_BASENAME}` make variable.
By default, the rogue score file is now `~/.rogue.scr`.
The rogue lock file path, rogue save file path,
and rogue score file path is now formed early in `main()`
as global buffers.
Updated rogue documentation to reference the lock file,
safe file, and score files.
Fixed how the rogue documentation is formed via `Makefile`.
Moved source out of the `src/` sub-directory into the top level.
Updated `LICENSE` to be the combination of the top level `LICENSE`
and the former `src/LICENSE.TXT`.
Improved the commented out lines for the Address Sanitizer (ASAN).
Improved how Address Sanitizer (ASAN) is used when enabled.
Fixed a number of code bugs related to use uninitialized variables,
and static buffers.
Fixed issue #4: replacing use of `sprintf(3)` with `snprintf(3)`.
Fixed how the rogue score file is read and written.
By default, the top scores are recorded in the rogue score file,
regardless of if the game "won" or not.
Removed dead code in `main.c` that we previously had moved to `common.c`.
Fixed use of booleans to use definitions under `<stdbool.h>`.
Updated `.gitignore` as per all of the above.
Updated rogue documentation and `README.md` as per all of the above.1 parent 786867c commit 7d3a129
File tree
70 files changed
+1422
-14432
lines changed- src
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
70 files changed
+1422
-14432
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
2 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
3 | 13 | | |
4 | 14 | | |
| 15 | + | |
| 16 | + | |
5 | 17 | | |
6 | 18 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
0 commit comments