comparison dmd/backend/OPER.d @ 140:31c086f76669

dmd.lib now only contains the backend backward references from the backend to the frontend are implemented in ddmd win32_lib.mak is replaced by a patch also fixed VisualD project file predefined versions
author Trass3r
date Tue, 14 Sep 2010 01:54:48 +0200
parents 5c9b78899f5d
children
comparison
equal deleted inserted replaced
139:bc45b1c53019 140:31c086f76669
322 /+ 322 /+
323 // optab3[] 323 // optab3[]
324 #define _OTboolnop 1 324 #define _OTboolnop 1
325 +/ 325 +/
326 326
327 ubyte OTbinary(OPER op) { 327 ubyte OTbinary(OPER op)
328 {
328 return (optab1[op] & _OT._OTbinary); 329 return (optab1[op] & _OT._OTbinary);
329 } 330 }
330 331
332 ubyte OTunary(OPER op)
333 {
334 return (optab1[op] & _OT._OTunary);
335 }
336
331 /+ 337 /+
332 #define OTunary(op) (optab1[op]&_OTunary)
333 #define OTleaf(op) (!(optab1[op]&(_OTunary|_OTbinary))) 338 #define OTleaf(op) (!(optab1[op]&(_OTunary|_OTbinary)))
334 #define OTcommut(op) (optab1[op]&_OTcommut) 339 #define OTcommut(op) (optab1[op]&_OTcommut)
335 #define OTassoc(op) (optab1[op]&_OTassoc) 340 #define OTassoc(op) (optab1[op]&_OTassoc)
336 #define OTassign(op) (optab2[op]&_OTassign) 341 #define OTassign(op) (optab2[op]&_OTassign)
337 #define OTpost(op) ((op) == OPpostinc || (op) == OPpostdec) 342 #define OTpost(op) ((op) == OPpostinc || (op) == OPpostdec)