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
ce67e229
Commit
ce67e229
authored
May 21, 2002
by
Steven Fuller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Intel C Compiler cleanups.
parent
b9b752ed
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
Sounds.c
macsrc/Sounds.c
+1
-1
res.c
macsrc/res.c
+5
-2
No files found.
macsrc/Sounds.c
View file @
ce67e229
...
...
@@ -89,7 +89,7 @@ void FreeSong()
{
}
void
BeginSongLooped
(
Song
)
void
BeginSongLooped
(
Word
Song
)
{
}
...
...
macsrc/res.c
View file @
ce67e229
...
...
@@ -158,7 +158,7 @@ void *LoadAResource2(Word RezNum, LongWord Type)
memcpy
(
c
->
buf
,
c
->
dat
,
c
->
size
);
}
else
{
/* DEBUG: we want a fresh copy... */
printf
(
"DEBUG: Item %ld/%d already loaded!
\n
"
,
Type
,
RezNum
);
fprintf
(
stderr
,
"DEBUG: Item %ld/%d already loaded!
\n
"
,
Type
,
RezNum
);
/*
free(c->buf);
c->buf = malloc(c->size);
...
...
@@ -176,6 +176,8 @@ void *LoadAResource2(Word RezNum, LongWord Type)
fprintf
(
stderr
,
"ERROR (LoadAResource2): %ld/%d was not found!
\n
"
,
Type
,
RezNum
);
exit
(
EXIT_FAILURE
);
return
NULL
;
}
void
*
FindResource
(
Word
RezNum
,
LongWord
Type
)
...
...
@@ -189,7 +191,7 @@ void *FindResource(Word RezNum, LongWord Type)
memcpy
(
c
->
buf
,
c
->
dat
,
c
->
size
);
}
else
{
/* DEBUG: we want a fresh copy... */
printf
(
"DEBUG: Item %ld/%d already loaded!
\n
"
,
Type
,
RezNum
);
fprintf
(
stderr
,
"DEBUG: Item %ld/%d already loaded!
\n
"
,
Type
,
RezNum
);
/*
free(c->buf);
c->buf = malloc(c->size);
...
...
@@ -221,6 +223,7 @@ void ReleaseAResource2(Word RezNum, LongWord Type)
}
c
=
c
->
next
;
}
fprintf
(
stderr
,
"ERROR (ReleaseAResource2): %ld/%d was not found!
\n
"
,
Type
,
RezNum
);
exit
(
EXIT_FAILURE
);
}
...
...
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