view dmd/Condition.d @ 175:94b6033c07f3

get rid of globals malloc -> GC.malloc
author korDen
date Sun, 10 Oct 2010 03:48:06 +0400
parents e28b18c23469
children e3afd1303184
line wrap: on
line source

module dmd.Condition;

import dmd.common;
import dmd.Loc;
import dmd.Scope;
import dmd.ScopeDsymbol;
import dmd.OutBuffer;
import dmd.HdrGenState;

class Condition
{
    Loc loc;
    int inc = 0;// 0: not computed yet
				// 1: include
				// 2: do not include

    this(Loc loc)
	{
		this.loc = loc;
	}

    abstract Condition syntaxCopy();
    abstract bool include(Scope sc, ScopeDsymbol s);
    abstract void toCBuffer(OutBuffer buf, HdrGenState* hgs);
}