Mercurial > projects > ldc
diff dmd/cond.c @ 1103:b30fe7e1dbb9
- Updated to DMD frontend 1.041.
- Removed dmd/inifile.c , it's not under a free license, replaced with libconfig based config file.
author | Tomas Lindquist Olsen <tomas.l.olsen gmail.com> |
---|---|
date | Thu, 12 Mar 2009 20:37:27 +0100 |
parents | 2137797748a8 |
children | e961851fb8be |
line wrap: on
line diff
--- a/dmd/cond.c Thu Mar 12 14:08:57 2009 +0100 +++ b/dmd/cond.c Thu Mar 12 20:37:27 2009 +0100 @@ -1,6 +1,6 @@ // Compiler implementation of the D programming language -// Copyright (c) 1999-2006 by Digital Mars +// Copyright (c) 1999-2008 by Digital Mars // All Rights Reserved // written by Walter Bright // http://www.digitalmars.com @@ -31,7 +31,7 @@ { for (int i = 0; i < ids->dim; i++) { - char *id = (char *)ids->data[i]; + const char *id = (const char *)ids->data[i]; if (strcmp(id, ident->toChars()) == 0) return TRUE; @@ -75,7 +75,7 @@ { if (!global.params.debugids) global.params.debugids = new Array(); - global.params.debugids->push((void*)ident); + global.params.debugids->push((void *)ident); } @@ -127,13 +127,17 @@ { static const char* reserved[] = { - "DigitalMars", "LLVM", "LDC", "LLVM64", - "X86", "X86_64", "PPC", "PPC64", + "DigitalMars", "X86", "X86_64", "Windows", "Win32", "Win64", - "linux", "darwin", "Posix", + "linux", "Posix", "OSX", "FreeBSD", "LittleEndian", "BigEndian", "all", "none", + + // LDC + "LLVM", "LDC", "LLVM64", + "PPC", "PPC64", + "darwin", }; for (unsigned i = 0; i < sizeof(reserved) / sizeof(reserved[0]); i++) @@ -161,7 +165,7 @@ { if (!global.params.versionids) global.params.versionids = new Array(); - global.params.versionids->push((void*)ident); + global.params.versionids->push((void *)ident); }