view dmd/DocComment.d @ 191:52188e7e3fb5

Fixed deprecated features, now compiles with DMD2.058 Also changed Array allocation policy: Now doesn't reallocate but malloc's, followed by a memcpy (no free). (this fixes a crash while compiling druntime. Same bug in dmd)
author korDen@korDen-pc
date Sun, 25 Mar 2012 03:11:12 +0400
parents b0d41ff5e0df
children
line wrap: on
line source

module dmd.DocComment;

import dmd.common;
import dmd.Array;
import dmd.Section;
import dmd.Macro;
import dmd.Escape;
import dmd.Scope;
import dmd.Dsymbol;
import dmd.OutBuffer;

import dmd.TObject;

import dmd.DDMDExtensions;

class DocComment : TObject
{
	mixin insertMemberExtension!(typeof(this));

    Array sections;		// Section*[]

    Section summary;
    Section copyright;
    Section macros;
    Macro** pmacrotable;
    Escape** pescapetable;

    this()
	{
		register();
		assert(false);
	}

    static DocComment parse(Scope sc, Dsymbol s, ubyte* comment)
	{
		assert(false);
	}
	
    static void parseMacros(Escape** pescapetable, Macro** pmacrotable, ubyte* m, uint mlen)
	{
		assert(false);
	}
	
    static void parseEscapes(Escape** pescapetable, ubyte* textstart, uint textlen)
	{
		assert(false);
	}

    void parseSections(ubyte* comment)
	{
		assert(false);
	}
	
    void writeSections(Scope sc, Dsymbol s, OutBuffer buf)
	{
		assert(false);
	}
}