History

add missing prototypes

Urs Janssen committed 12 years ago

Commit 822f4631 parent a715d711 file · +8 −4Browse files

Unified · Split

tccgen.c+8−4
@@ -90,6 +90,10 @@ static void vla_runtime_type_size(CType *type, int *a); · 89 unmodified lines
90static void vla_sp_save(void);90static void vla_sp_save(void);
91static int is_compatible_parameter_types(CType *type1, CType *type2);91static int is_compatible_parameter_types(CType *type1, CType *type2);
92static void expr_type(CType *type);92static void expr_type(CType *type);
93ST_FUNC void vpush64(int ty, unsigned long long v);
94ST_FUNC void vpush(CType *type);
95ST_FUNC int gvtst(int inv, int t);
96ST_FUNC int is_btype_size(int bt);
93 97
94ST_INLN int is_float(int t)98ST_INLN int is_float(int t)
95{99{
@@ -328,7 +332,7 @@ static void vsetc(CType *type, int r, CValue *vc) · 232 unmodified lines
328}332}
329 333
330/* push constant of type "type" with useless value */334/* push constant of type "type" with useless value */
331void vpush(CType *type)335ST_FUNC void vpush(CType *type)
332{336{
333 CValue cval;337 CValue cval;
334 vsetc(type, VT_CONST, &cval);338 vsetc(type, VT_CONST, &cval);
@@ -351,7 +355,7 @@ static void vpushs(addr_t v) · 16 unmodified lines
351}355}
352 356
353/* push arbitrary 64bit constant */357/* push arbitrary 64bit constant */
354void vpush64(int ty, unsigned long long v)358ST_FUNC void vpush64(int ty, unsigned long long v)
355{359{
356 CValue cval;360 CValue cval;
357 CType ctype;361 CType ctype;
@@ -1097,7 +1101,7 @@ static void gv_dup(void) · 739 unmodified lines
1097/* Generate value test1101/* Generate value test
1098 *1102 *
1099 * Generate a test for any value (jump, comparison and integers) */1103 * Generate a test for any value (jump, comparison and integers) */
1100int gvtst(int inv, int t)1104ST_FUNC int gvtst(int inv, int t)
1101{1105{
1102 int v = vtop->r & VT_VALMASK;1106 int v = vtop->r & VT_VALMASK;
1103 if (v != VT_CMP && v != VT_JMP && v != VT_JMPI) {1107 if (v != VT_CMP && v != VT_JMP && v != VT_JMPI) {
@@ -2987,7 +2991,7 @@ static void struct_decl(CType *type, int u, int tdef) · 1883 unmodified lines
2987}2991}
2988 2992
2989/* return 1 if basic type is a type size (short, long, long long) */2993/* return 1 if basic type is a type size (short, long, long long) */
2990int is_btype_size (int bt)2994ST_FUNC int is_btype_size(int bt)
2991{2995{
2992 return bt == VT_SHORT || bt == VT_LONG || bt == VT_LLONG;2996 return bt == VT_SHORT || bt == VT_LONG || bt == VT_LLONG;
2993}2997}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t