aboutsummaryrefslogtreecommitdiff
path: root/tccgen.c
diff options
context:
space:
mode:
authorUrs Janssen <urs@niko.tin.org>2014-04-10 11:53:54 +0200
committerUrs Janssen <urs@niko.tin.org>2014-04-10 11:53:54 +0200
commit822f4630e30bb52729ff6aa3c857c9504675107e (patch)
tree5695bd9babcb14e7d6d1a52c98940c96a8e5cd6a /tccgen.c
parenta715d7143d9d17da17e67fec6af1c01409a71a31 (diff)
downloadtinycc-822f4630e30bb52729ff6aa3c857c9504675107e.tar.gz
tinycc-822f4630e30bb52729ff6aa3c857c9504675107e.tar.bz2
add missing prototypes
Diffstat (limited to 'tccgen.c')
-rw-r--r--tccgen.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/tccgen.c b/tccgen.c
index 5705db3..78f24aa 100644
--- a/tccgen.c
+++ b/tccgen.c
@@ -90,6 +90,10 @@ static void vla_runtime_type_size(CType *type, int *a);
static void vla_sp_save(void);
static int is_compatible_parameter_types(CType *type1, CType *type2);
static void expr_type(CType *type);
+ST_FUNC void vpush64(int ty, unsigned long long v);
+ST_FUNC void vpush(CType *type);
+ST_FUNC int gvtst(int inv, int t);
+ST_FUNC int is_btype_size(int bt);
ST_INLN int is_float(int t)
{
@@ -328,7 +332,7 @@ static void vsetc(CType *type, int r, CValue *vc)
}
/* push constant of type "type" with useless value */
-void vpush(CType *type)
+ST_FUNC void vpush(CType *type)
{
CValue cval;
vsetc(type, VT_CONST, &cval);
@@ -351,7 +355,7 @@ static void vpushs(addr_t v)
}
/* push arbitrary 64bit constant */
-void vpush64(int ty, unsigned long long v)
+ST_FUNC void vpush64(int ty, unsigned long long v)
{
CValue cval;
CType ctype;
@@ -1097,7 +1101,7 @@ static void gv_dup(void)
/* Generate value test
*
* Generate a test for any value (jump, comparison and integers) */
-int gvtst(int inv, int t)
+ST_FUNC int gvtst(int inv, int t)
{
int v = vtop->r & VT_VALMASK;
if (v != VT_CMP && v != VT_JMP && v != VT_JMPI) {
@@ -2987,7 +2991,7 @@ static void struct_decl(CType *type, int u, int tdef)
}
/* return 1 if basic type is a type size (short, long, long long) */
-int is_btype_size (int bt)
+ST_FUNC int is_btype_size(int bt)
{
return bt == VT_SHORT || bt == VT_LONG || bt == VT_LLONG;
}