Age | Commit message (Collapse) | Author |
|
strdup() can theoretically fail and return NULL. This could lead to
a crash or undesirable behavior. Add M_StringDuplicate() which does
the same thing but exits with an error if a string cannot be
allocated.
This fixes #456. Thanks to Quasar for the suggestion.
|
|
|
|
If using one of the Freedoom IWADs, detect it by checking for the
FREEDOOM lump, and then load its DEHACKED lump to apply the
cosmetic string changes that it includes. In case we're using an old
version of one of the Freedoom IWADs, don't bomb out with an error
while parsing the DEHACKED lump.
|
|
|
|
- restructure DEH_ReadLine() to avoid use of "goto"
- bex_string_t type name ends in "_t"
- declare constant table as "static const"
- add magic comment *allow-extended-strings* and corresponding
variable deh_allow_extended_strings
- fix logical error when no [STRINGS] section is registered to which
corrent_section could be compared
|
|
|
|
Thanks valgrind!
|
|
This change rewrites and simplifies the copyright headers at the top
of all source files:
* Remove "Emacs style mode select" line; this line was included in
the headers for the originally released source files and appears
to be to set the file type for old versions of Emacs. I'm not sure
entirely why it was required but I don't think it is any more.
* Remove "You should have received a copy of..." text from copyright
header. This refers to the old 59 Temple Place address where the
FSF headquarters used to be located and is no longer correct.
Rather than change to the new address, just remove the paragraph
as it is superfluous anyway. This fixes #311.
* Remove ---- separator lines so that the file headers are barer
and more simplified.
|
|
Use M_StringCopy() instead of strncpy() in the Dehacked code.
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2333
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2180
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2176
|
|
patch with portal.wad load properly.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1208
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 704
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 594
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 175
|
|
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 153
|