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
9090 static void vla_sp_save(void);
9191 static int is_compatible_parameter_types(CType *type1, CType *type2);
9292 static void expr_type(CType *type);
93+ST_FUNC void vpush64(int ty, unsigned long long v);
94+ST_FUNC void vpush(CType *type);
95+ST_FUNC int gvtst(int inv, int t);
96+ST_FUNC int is_btype_size(int bt);
9397
9498 ST_INLN int is_float(int t)
9599 {
@@ -328,7 +332,7 @@ static void vsetc(CType *type, int r, CValue *vc) · 232 unmodified lines
328332 }
329333
330334 /* push constant of type "type" with useless value */
331−void vpush(CType *type)
335+ST_FUNC void vpush(CType *type)
332336 {
333337 CValue cval;
334338 vsetc(type, VT_CONST, &cval);
@@ -351,7 +355,7 @@ static void vpushs(addr_t v) · 16 unmodified lines
351355 }
352356
353357 /* push arbitrary 64bit constant */
354−void vpush64(int ty, unsigned long long v)
358+ST_FUNC void vpush64(int ty, unsigned long long v)
355359 {
356360 CValue cval;
357361 CType ctype;
@@ -1097,7 +1101,7 @@ static void gv_dup(void) · 739 unmodified lines
10971101 /* Generate value test
10981102 *
10991103 * Generate a test for any value (jump, comparison and integers) */
1100−int gvtst(int inv, int t)
1104+ST_FUNC int gvtst(int inv, int t)
11011105 {
11021106 int v = vtop->r & VT_VALMASK;
11031107 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
29872991 }
29882992
29892993 /* return 1 if basic type is a type size (short, long, long long) */
2990−int is_btype_size (int bt)
2994+ST_FUNC int is_btype_size(int bt)
29912995 {
29922996 return bt == VT_SHORT || bt == VT_LONG || bt == VT_LLONG;
29932997 }

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