From 822f4630e30bb52729ff6aa3c857c9504675107e Mon Sep 17 00:00:00 2001 From: Urs Janssen Date: Thu, 10 Apr 2014 11:53:54 +0200 Subject: [PATCH] add missing prototypes --- tccgen.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tccgen.c b/tccgen.c index 5705db30..78f24aa8 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; }