add missing prototypes

This commit is contained in:
Urs Janssen 2014-04-10 11:53:54 +02:00
parent a715d7143d
commit 822f4630e3

View File

@ -90,6 +90,10 @@ static void vla_runtime_type_size(CType *type, int *a);
static void vla_sp_save(void); static void vla_sp_save(void);
static int is_compatible_parameter_types(CType *type1, CType *type2); static int is_compatible_parameter_types(CType *type1, CType *type2);
static void expr_type(CType *type); 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) 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 */ /* push constant of type "type" with useless value */
void vpush(CType *type) ST_FUNC void vpush(CType *type)
{ {
CValue cval; CValue cval;
vsetc(type, VT_CONST, &cval); vsetc(type, VT_CONST, &cval);
@ -351,7 +355,7 @@ static void vpushs(addr_t v)
} }
/* push arbitrary 64bit constant */ /* push arbitrary 64bit constant */
void vpush64(int ty, unsigned long long v) ST_FUNC void vpush64(int ty, unsigned long long v)
{ {
CValue cval; CValue cval;
CType ctype; CType ctype;
@ -1097,7 +1101,7 @@ static void gv_dup(void)
/* Generate value test /* Generate value test
* *
* Generate a test for any value (jump, comparison and integers) */ * 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; int v = vtop->r & VT_VALMASK;
if (v != VT_CMP && v != VT_JMP && v != VT_JMPI) { 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) */ /* 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; return bt == VT_SHORT || bt == VT_LONG || bt == VT_LLONG;
} }