mirror of
https://git.wuffs.org/MWCC
synced 2025-12-12 06:45:17 +00:00
getting closer
This commit is contained in:
@@ -53,7 +53,7 @@ unsigned char *CTool_CtoPstr(char *cstr) {
|
||||
return (unsigned char *) cstr;
|
||||
}
|
||||
|
||||
static void GListError() {
|
||||
static void GListError(void) {
|
||||
if (GListErrorProc)
|
||||
GListErrorProc();
|
||||
}
|
||||
@@ -465,7 +465,7 @@ HashNameNode *GetHashNameNodeByID(SInt32 id) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void NameHashExportReset() {
|
||||
void NameHashExportReset(void) {
|
||||
HashNameNode *node;
|
||||
short i;
|
||||
|
||||
@@ -540,13 +540,13 @@ void NameHashWriteTargetEndianNameTable(GList *glist) {
|
||||
AppendGListByte(glist, 0);
|
||||
}
|
||||
|
||||
void InitNameHash() {
|
||||
void InitNameHash(void) {
|
||||
name_hash_nodes = galloc(2048 * sizeof(HashNameNode *));
|
||||
memclrw(name_hash_nodes, 2048 * sizeof(HashNameNode *));
|
||||
hash_name_id = 1;
|
||||
}
|
||||
|
||||
SInt32 CTool_TotalHeapSize() {
|
||||
SInt32 CTool_TotalHeapSize(void) {
|
||||
HeapBlock *blockp;
|
||||
SInt32 size = 0;
|
||||
|
||||
@@ -718,7 +718,7 @@ short initgheap(heaperror_t heaperrorproc) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
heaperror_t getheaperror() {
|
||||
heaperror_t getheaperror(void) {
|
||||
return heaperror;
|
||||
}
|
||||
|
||||
@@ -740,7 +740,7 @@ static void relheap(HeapMem *heapp) {
|
||||
memclrw(heapp, sizeof(HeapMem));
|
||||
}
|
||||
|
||||
void releaseheaps() {
|
||||
void releaseheaps(void) {
|
||||
relheap(&gheap);
|
||||
relheap(&lheap);
|
||||
relheap(&aheap);
|
||||
@@ -748,11 +748,11 @@ void releaseheaps() {
|
||||
relheap(&bheap);
|
||||
}
|
||||
|
||||
void releasegheap() {
|
||||
void releasegheap(void) {
|
||||
relheap(&gheap);
|
||||
}
|
||||
|
||||
void releaseoheap() {
|
||||
void releaseoheap(void) {
|
||||
relheap(&gheap);
|
||||
oheap.allocsize = 0x40000;
|
||||
MoreHeapSpace(&oheap, 0);
|
||||
@@ -823,17 +823,16 @@ void *balloc(SInt32 s) {
|
||||
return cp;
|
||||
}
|
||||
|
||||
void locklheap() {
|
||||
void locklheap(void) {
|
||||
lheaplockcount++;
|
||||
}
|
||||
|
||||
void unlocklheap() {
|
||||
void unlocklheap(void) {
|
||||
if (lheaplockcount > 0)
|
||||
--lheaplockcount;
|
||||
}
|
||||
|
||||
void freelheap() {
|
||||
// possible inline or macro?
|
||||
void freelheap(void) {
|
||||
HeapBlock *blockp;
|
||||
|
||||
if (lheaplockcount == 0) {
|
||||
@@ -849,7 +848,7 @@ void freelheap() {
|
||||
}
|
||||
}
|
||||
|
||||
void freeaheap() {
|
||||
void freeaheap(void) {
|
||||
HeapBlock *blockp;
|
||||
|
||||
blockp = aheap.blocks;
|
||||
@@ -863,7 +862,7 @@ void freeaheap() {
|
||||
}
|
||||
}
|
||||
|
||||
void freeoheap() {
|
||||
void freeoheap(void) {
|
||||
HeapBlock *blockp;
|
||||
|
||||
blockp = oheap.blocks;
|
||||
@@ -877,7 +876,7 @@ void freeoheap() {
|
||||
}
|
||||
}
|
||||
|
||||
void freebheap() {
|
||||
void freebheap(void) {
|
||||
HeapBlock *blockp;
|
||||
|
||||
blockp = bheap.blocks;
|
||||
|
||||
Reference in New Issue
Block a user