Add function prototypes.

This commit is contained in:
carl 2019-03-25 00:10:32 +08:00
parent 143da61d13
commit 2dd0d0f81b
3 changed files with 9 additions and 3 deletions

View file

@ -11,3 +11,5 @@
extern int opt_cmos;
#define fitj(z) ((unsigned)z + 0x80 <= 0xFF)
void branch(register int opc,expr_t exp,expr_t cell);

View file

@ -31,7 +31,10 @@ operation
{ emit1($1);}
|
BRANCH expr
{ branch($1,$2);}
{
/* Empty expression */
struct expr_t expr = {0,0};
branch($1,$2,expr);}
|
BBRANCH bitexp ',' expr8 ',' expr
{

View file

@ -9,8 +9,9 @@
*/
/* VARARGS2 */
branch(opc,exp,cell) register opc; expr_t cell; expr_t exp; {
register sm, dist;
void branch(register int opc,expr_t exp,expr_t cell)
{
register int sm, dist;
int saving;
dist = exp.val - (DOTVAL + 2);