aboutsummaryrefslogtreecommitdiff
path: root/tcccoff.c
diff options
context:
space:
mode:
authorgrischka <grischka>2013-02-04 15:10:08 +0100
committergrischka <grischka>2013-02-04 16:24:56 +0100
commit263dc93cfab453ad04d1ec0f304acdb16e63405c (patch)
tree37406e9543cfd1f90ce99a2f7ac497e9422f3049 /tcccoff.c
parentf71520724926baa049973dd5115d1dfb638be94e (diff)
downloadtinycc-263dc93cfab453ad04d1ec0f304acdb16e63405c.tar.gz
tinycc-263dc93cfab453ad04d1ec0f304acdb16e63405c.tar.bz2
c67: remove global #define's for TRUE/FALSE/BOOL
Also use uppercase TRUE/FALSE instead of true/false
Diffstat (limited to 'tcccoff.c')
-rw-r--r--tcccoff.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tcccoff.c b/tcccoff.c
index 2f52562..0cdc2b7 100644
--- a/tcccoff.c
+++ b/tcccoff.c
@@ -38,7 +38,7 @@ int EndAddress[MAX_FUNCS];
int LastLineNo[MAX_FUNCS];
int FuncEntries[MAX_FUNCS];
-BOOL OutputTheSection(Section * sect);
+int OutputTheSection(Section * sect);
short int GetCoffFlags(const char *s);
void SortSymbolTable(void);
Section *FindSection(TCCState * s1, const char *sname);
@@ -814,14 +814,14 @@ int FindCoffSymbolIndex(const char *func_name)
return n; // total number of symbols
}
-BOOL OutputTheSection(Section * sect)
+int OutputTheSection(Section * sect)
{
const char *s = sect->name;
if (!strcmp(s, ".text"))
- return true;
+ return 1;
else if (!strcmp(s, ".data"))
- return true;
+ return 1;
else
return 0;
}