root/dmdpatch.patch
| Revision 183:190ba98276b3, 5.5 kB (checked in by Jacob Carlborg <doob@me.com>, 2 years ago) |
|---|
-
a/src/dmd/class.c
old new 61 61 if (id) 62 62 { // Look for special class names 63 63 64 if (id == Id::__sizeof || id == Id:: alignof || id == Id::mangleof)64 if (id == Id::__sizeof || id == Id::_alignof || id == Id::mangleof) 65 65 error("illegal class name"); 66 66 67 67 // BUG: What if this is the wrong TypeInfo, i.e. it is nested? -
a/src/dmd/dsymbol.c
old new 488 488 } 489 489 if (sd->isAggregateDeclaration() || sd->isEnumDeclaration()) 490 490 { 491 if (ident == Id::__sizeof || ident == Id:: alignof || ident == Id::mangleof)491 if (ident == Id::__sizeof || ident == Id::_alignof || ident == Id::mangleof) 492 492 error(".%s property cannot be redefined", ident->toChars()); 493 493 } 494 494 return 1; -
a/src/dmd/expression.c
old new 5953 5953 } 5954 5954 else if (t1b->ty == Tpointer && 5955 5955 ident != Id::init && ident != Id::__sizeof && 5956 ident != Id:: alignof && ident != Id::offsetof &&5956 ident != Id::_alignof && ident != Id::offsetof && 5957 5957 ident != Id::mangleof && ident != Id::stringof) 5958 5958 { /* Rewrite: 5959 5959 * p.ident -
a/src/dmd/idgen.c
old new 44 44 { "init" }, 45 45 { "size" }, 46 46 { "__sizeof", "sizeof" }, 47 { " alignof" },47 { "_alignof", "alignof" }, 48 48 { "mangleof" }, 49 49 { "stringof" }, 50 50 { "tupleof" }, -
a/src/dmd/mtype.c
old new 1610 1610 error(loc, ".size property should be replaced with .sizeof"); 1611 1611 e = new ErrorExp(); 1612 1612 } 1613 else if (ident == Id:: alignof)1613 else if (ident == Id::_alignof) 1614 1614 { 1615 1615 e = new IntegerExp(loc, alignsize(), Type::tsize_t); 1616 1616 } … … 1749 1749 assert(sym); 1750 1750 1751 1751 if (ident != Id::__sizeof && 1752 ident != Id:: alignof &&1752 ident != Id::_alignof && 1753 1753 ident != Id::init && 1754 1754 ident != Id::mangleof && 1755 1755 ident != Id::stringof && -
a/src/dmd/win32.mak
old new 8 8 DMDSVN=\svnproj\dmd\trunk\src 9 9 SCROOT=$D\dm 10 10 INCLUDE=$(SCROOT)\include 11 CC=\dm\bin\dmc 11 CC=$(SCROOT)\bin\dmc 12 LIB=$(SCROOT)\bin\lib 12 13 LIBNT=$(SCROOT)\lib 13 14 SNN=$(SCROOT)\lib\snn 14 15 DIR=\dmd2 … … 24 25 XFLG= 25 26 MODEL=n 26 27 OPT= 27 DEBUG=-g l-D28 DEBUG=-g -D 28 29 #PREC=-H -HItotal.h -HO 29 30 PREC= 30 31 LFLAGS= … … 59 60 $(MAKE) OPT=-o "DEBUG=" LFLAGS=-L/delexe dmd.exe 60 61 # $(MAKE) OPT=-o "DEBUG=" LFLAGS=-L/ma/co/delexe dmd.exe 61 62 63 lib: 64 $(MAKE) OPT=-o "DEBUG=" dmd.lib 65 62 66 ################ NT COMMAND LINE DEBUG ######################### 63 67 64 68 debdmd: 65 69 $(MAKE) OPT= "DEBUG=-D -g" LFLAGS=-L/ma/co dmd.exe 66 70 71 deblib: 72 $(MAKE) OPT= "DEBUG=-D -g" dmd.lib 73 67 74 ######################################### 68 75 69 76 # D front end … … 155 162 ######################################### 156 163 157 164 $(TARGET).exe : $(OBJS) win32.mak 158 dmc-o$(TARGET).exe $(OBJS) -cpp -mn -Ar $(LFLAGS)165 $(CC) -o$(TARGET).exe $(OBJS) -cpp -mn -Ar $(LFLAGS) 159 166 167 $(TARGET).lib : $(OBJS) win32.mak 168 $(LIB) -c -p128 $(TARGET).lib $(OBJ8) $(ROOTOBJS) msc.obj tk.obj util.obj entity.obj ph.obj eh.obj 169 $(LIB) -d $(TARGET).lib iasm.obj 160 170 161 171 ##################### INCLUDE MACROS ##################### 162 172 … … 171 181 msgsx 172 182 173 183 msgsx.exe : msgsx.c 174 dmcmsgsx -mn -D$(TARGET) $(DEFINES) $(WINLIBS)184 $(CC) msgsx -mn -D$(TARGET) $(DEFINES) $(WINLIBS) 175 185 176 186 elxxx.c cdxxx.c optab.c debtab.c fltables.c tytab.c : \ 177 187 $C\cdef.h $C\cc.h $C\oper.h $C\ty.h $C\optabgen.c 178 dmc-cpp -ooptabgen.exe $C\optabgen -DMARS -I$(TK) $(WINLIBS) #-L$(LINKS)188 $(CC) -cpp -ooptabgen.exe $C\optabgen -DMARS -I$(TK) $(WINLIBS) #-L$(LINKS) 179 189 optabgen 180 190 181 191 impcnvtab.c : impcnvgen.c … … 183 193 impcnvgen 184 194 185 195 id.h id.c : idgen.c 186 dmc-cpp idgen196 $(CC) -cpp idgen 187 197 idgen 188 198 189 199 ##################### SPECIAL BUILDS ##################### -
a/src/druntime/win32.mak
old new 1 1 2 DMD= dmd2 DMD=..\..\windows\bin\dmd 3 3 4 4 CC=dmc 5 5 … … 300 300 # NOTE: a pre-compiled minit.obj has been provided in dmd for Win32 and 301 301 # minit.asm is not used by dmd for Linux 302 302 303 OBJS= errno_c.obj complex.obj critical.obj deh.obj monitor.obj src\rt\minit.obj303 OBJS= errno_c.obj complex.obj critical.obj deh.obj monitor.obj minit.obj 304 304 OBJS_TO_DELETE= errno_c.obj complex.obj critical.obj deh.obj monitor.obj 305 305 306 306 DOCS=\ -
a/src/phobos/win32.mak
old new 51 51 52 52 DMD=$(DIR)\bin\dmd 53 53 #DMD=..\dmd 54 DMD= dmd54 DMD=..\..\windows\bin\dmd 55 55 56 56 ## Location of where to write the html documentation files 57 57
Note: See TracBrowser for help on using the browser.
