Mercurial > projects > ldc
diff dmd/cond.c @ 990:2137797748a8
oups, seems like I broke some constness in D1 last commit, compiles again!
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Thu, 26 Feb 2009 14:23:18 +0100 |
parents | 330f999ade44 |
children | b30fe7e1dbb9 |
line wrap: on
line diff
--- a/dmd/cond.c Thu Feb 26 14:13:27 2009 +0100 +++ b/dmd/cond.c Thu Feb 26 14:23:18 2009 +0100 @@ -71,11 +71,11 @@ global.params.debuglevel = level; } -void DebugCondition::addGlobalIdent(char *ident) +void DebugCondition::addGlobalIdent(const char *ident) { if (!global.params.debugids) global.params.debugids = new Array(); - global.params.debugids->push(ident); + global.params.debugids->push((void*)ident); } @@ -123,7 +123,7 @@ global.params.versionlevel = level; } -void VersionCondition::checkPredefined(Loc loc, char *ident) +void VersionCondition::checkPredefined(Loc loc, const char *ident) { static const char* reserved[] = { @@ -151,17 +151,17 @@ error(loc, "version identifier '%s' is reserved and cannot be set", ident); } -void VersionCondition::addGlobalIdent(char *ident) +void VersionCondition::addGlobalIdent(const char *ident) { checkPredefined(0, ident); addPredefinedGlobalIdent(ident); } -void VersionCondition::addPredefinedGlobalIdent(char *ident) +void VersionCondition::addPredefinedGlobalIdent(const char *ident) { if (!global.params.versionids) global.params.versionids = new Array(); - global.params.versionids->push(ident); + global.params.versionids->push((void*)ident); }