summaryrefslogtreecommitdiff
path: root/compiler_and_linker/FrontEnd/Common
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-01-11 22:29:53 +0000
committerAsh Wolf <ninji@wuffs.org>2023-01-11 22:29:53 +0000
commit0bec4f557a96e1a40437cf5af20cc78a5eec8a63 (patch)
treec1e05ec804c43aa5a8f5f21b0ed02d0587d29563 /compiler_and_linker/FrontEnd/Common
parentaec1b8dddc68ecb8288ec6132932e4c7b4bca09f (diff)
downloadMWCC-0bec4f557a96e1a40437cf5af20cc78a5eec8a63.tar.gz
MWCC-0bec4f557a96e1a40437cf5af20cc78a5eec8a63.zip
getting closer
Diffstat (limited to '')
-rw-r--r--compiler_and_linker/FrontEnd/Common/CompilerTools.c29
1 files changed, 14 insertions, 15 deletions
diff --git a/compiler_and_linker/FrontEnd/Common/CompilerTools.c b/compiler_and_linker/FrontEnd/Common/CompilerTools.c
index 131aa8e..fff4809 100644
--- a/compiler_and_linker/FrontEnd/Common/CompilerTools.c
+++ b/compiler_and_linker/FrontEnd/Common/CompilerTools.c
@@ -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;