Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wolf3d
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
wolf3d
Commits
87d42d14
Commit
87d42d14
authored
Apr 22, 2000
by
Steven Fuller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed SOD compiliation.
parent
02cae373
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
2 deletions
+21
-2
Makefile
src/Makefile
+2
-0
TODO
src/TODO
+2
-1
misc.c
src/misc.c
+12
-0
misc.h
src/misc.h
+4
-0
version.h
src/version.h
+1
-1
No files found.
src/Makefile
View file @
87d42d14
...
...
@@ -19,6 +19,8 @@ NASM = nasm
all
:
wolf3d
$(OBJS)
:
version.h id_heads.h
.asm.o
:
$(NASM)
-f
elf
-o
$@
$<
...
...
src/TODO
View file @
87d42d14
* inconsistancy:
id_ca.c has code for setting the extension to load files
so does wl_menu.c
* would it not make sense to remove bufferseg from id_ca.c?
* menu code is a mess, always does things differently than the rest of the
code, it really needs to be cleaned up
* id_ca.c cache code: nice idea but messy and maybe can be fixed
in an effort to not allocate everything to memory and forget about it
some sort of garbage collection
* remove virtualreality
* clean up header files, especially wl_def.h, where some externs arent in
the right place
* every structure that is read/written must be PACKED, with datatypes
specifically set! (ie, no int, but short or long int)
* is that memory intro screen needed anymore? probably not
src/misc.c
View file @
87d42d14
...
...
@@ -45,6 +45,18 @@ long filelength(int handle)
return
buf
.
st_size
;
}
char
*
strlwr
(
char
*
s
)
{
char
*
p
=
s
;
while
(
*
p
)
{
*
p
=
tolower
(
*
p
);
p
++
;
}
return
s
;
}
char
*
itoa
(
short
int
value
,
char
*
string
,
int
radix
)
{
/* wolf3d only uses radix 10 */
...
...
src/misc.h
View file @
87d42d14
...
...
@@ -9,6 +9,10 @@ unsigned long get_TimeCount();
long
filelength
(
int
handle
);
#define stricmp strcasecmp
#define strnicmp strncasecmp
char
*
strlwr
(
char
*
s
);
char
*
itoa
(
short
int
value
,
char
*
string
,
int
radix
);
char
*
ltoa
(
long
value
,
char
*
string
,
int
radix
);
char
*
ultoa
(
unsigned
long
value
,
char
*
string
,
int
radix
);
...
...
src/version.h
View file @
87d42d14
...
...
@@ -5,7 +5,7 @@
/* WL6 = 1 */
/* SDM = 2 */
/* SOD = 3 */
#define WMODE
1
#define WMODE
3
#if WMODE == 0
/* #define SPEAR */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment