Commit ce67e229 authored by Steven Fuller's avatar Steven Fuller

Intel C Compiler cleanups.

parent b9b752ed
...@@ -89,7 +89,7 @@ void FreeSong() ...@@ -89,7 +89,7 @@ void FreeSong()
{ {
} }
void BeginSongLooped(Song) void BeginSongLooped(Word Song)
{ {
} }
......
...@@ -158,7 +158,7 @@ void *LoadAResource2(Word RezNum, LongWord Type) ...@@ -158,7 +158,7 @@ void *LoadAResource2(Word RezNum, LongWord Type)
memcpy(c->buf, c->dat, c->size); memcpy(c->buf, c->dat, c->size);
} else { } else {
/* DEBUG: we want a fresh copy... */ /* 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); free(c->buf);
c->buf = malloc(c->size); c->buf = malloc(c->size);
...@@ -176,6 +176,8 @@ void *LoadAResource2(Word RezNum, LongWord Type) ...@@ -176,6 +176,8 @@ void *LoadAResource2(Word RezNum, LongWord Type)
fprintf(stderr, "ERROR (LoadAResource2): %ld/%d was not found!\n", Type, RezNum); fprintf(stderr, "ERROR (LoadAResource2): %ld/%d was not found!\n", Type, RezNum);
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
return NULL;
} }
void *FindResource(Word RezNum, LongWord Type) void *FindResource(Word RezNum, LongWord Type)
...@@ -189,7 +191,7 @@ void *FindResource(Word RezNum, LongWord Type) ...@@ -189,7 +191,7 @@ void *FindResource(Word RezNum, LongWord Type)
memcpy(c->buf, c->dat, c->size); memcpy(c->buf, c->dat, c->size);
} else { } else {
/* DEBUG: we want a fresh copy... */ /* 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); free(c->buf);
c->buf = malloc(c->size); c->buf = malloc(c->size);
...@@ -221,6 +223,7 @@ void ReleaseAResource2(Word RezNum, LongWord Type) ...@@ -221,6 +223,7 @@ void ReleaseAResource2(Word RezNum, LongWord Type)
} }
c = c->next; c = c->next;
} }
fprintf(stderr, "ERROR (ReleaseAResource2): %ld/%d was not found!\n", Type, RezNum); fprintf(stderr, "ERROR (ReleaseAResource2): %ld/%d was not found!\n", Type, RezNum);
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment