Skip to content

Commit

Permalink
enum PURE -> PURE
Browse files Browse the repository at this point in the history
  • Loading branch information
yebblies committed May 15, 2013
1 parent a6c559b commit 2c23b03
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/declaration.h
Expand Up @@ -701,8 +701,8 @@ class FuncDeclaration : public Declaration
int isCodeseg();
int isOverloadable();
int hasOverloads();
enum PURE isPure();
enum PURE isPureBypassingInference();
PURE isPure();
PURE isPureBypassingInference();
bool setImpure();
int isSafe();
bool isSafeBypassingInference();
Expand Down
6 changes: 3 additions & 3 deletions src/func.c
Expand Up @@ -3127,7 +3127,7 @@ int FuncDeclaration::hasOverloads()
return overnext != NULL;
}

enum PURE FuncDeclaration::isPure()
PURE FuncDeclaration::isPure()
{
//printf("FuncDeclaration::isPure() '%s'\n", toChars());
assert(type->ty == Tfunction);
Expand All @@ -3136,7 +3136,7 @@ enum PURE FuncDeclaration::isPure()
setImpure();
if (tf->purity == PUREfwdref)
tf->purityLevel();
enum PURE purity = tf->purity;
PURE purity = tf->purity;
if (purity > PUREweak && isNested())
purity = PUREweak;
if (purity > PUREweak && needThis())
Expand All @@ -3154,7 +3154,7 @@ enum PURE FuncDeclaration::isPure()
return purity;
}

enum PURE FuncDeclaration::isPureBypassingInference()
PURE FuncDeclaration::isPureBypassingInference()
{
if (flags & FUNCFLAGpurityInprocess)
return PUREfwdref;
Expand Down
4 changes: 2 additions & 2 deletions src/json.c
Expand Up @@ -69,7 +69,7 @@ struct JsonOut
void property(const char *name, const char *deconame, Type* type);
void property(const char *name, Parameters* parameters);
void property(const char *name, enum TRUST trust);
void property(const char *name, enum PURE purity);
void property(const char *name, PURE purity);
void property(const char *name, enum LINK linkage);
};

Expand Down Expand Up @@ -329,7 +329,7 @@ void JsonOut::property(const char *name, enum TRUST trust)
}
}

void JsonOut::property(const char *name, enum PURE purity)
void JsonOut::property(const char *name, PURE purity)
{
switch (purity)
{
Expand Down
2 changes: 1 addition & 1 deletion src/mtype.h
Expand Up @@ -660,7 +660,7 @@ class TypeFunction : public TypeNext
bool isref; // true: returns a reference
enum LINK linkage; // calling convention
enum TRUST trust; // level of trust
enum PURE purity; // PURExxxx
PURE purity; // PURExxxx
bool iswild; // is inout function
Expressions *fargs; // function arguments

Expand Down

0 comments on commit 2c23b03

Please sign in to comment.