Skip to content

Commit

Permalink
enum PREC -> PREC
Browse files Browse the repository at this point in the history
  • Loading branch information
yebblies committed May 15, 2013
1 parent 0d925f7 commit c792a0f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/expression.c
Expand Up @@ -1551,7 +1551,7 @@ Type *functionParameters(Loc loc, Scope *sc, TypeFunction *tf,
* in ( ) if its precedence is less than pr.
*/

void expToCBuffer(OutBuffer *buf, HdrGenState *hgs, Expression *e, enum PREC pr)
void expToCBuffer(OutBuffer *buf, HdrGenState *hgs, Expression *e, PREC pr)
{
#ifdef DEBUG
if (precedence[e->op] == PREC_zero)
Expand Down Expand Up @@ -6613,7 +6613,7 @@ void BinExp::toCBuffer(OutBuffer *buf, HdrGenState *hgs)
buf->writeByte(' ');
buf->writestring(Token::toChars(op));
buf->writeByte(' ');
expToCBuffer(buf, hgs, e2, (enum PREC)(precedence[op] + 1));
expToCBuffer(buf, hgs, e2, (PREC)(precedence[op] + 1));
}

int BinExp::isunsigned()
Expand Down
2 changes: 1 addition & 1 deletion src/parse.c
Expand Up @@ -6992,7 +6992,7 @@ void Parser::addComment(Dsymbol *s, unsigned char *blockComment)
* Set operator precedence for each operator.
*/

enum PREC precedence[TOKMAX];
PREC precedence[TOKMAX];

void initPrecedence()
{
Expand Down
2 changes: 1 addition & 1 deletion src/parse.h
Expand Up @@ -181,7 +181,7 @@ enum PREC
PREC_primary,
};

extern enum PREC precedence[TOKMAX];
extern PREC precedence[TOKMAX];

void initPrecedence();

Expand Down

0 comments on commit c792a0f

Please sign in to comment.