/** * Construct a set of Arena options with sensible default values. */ Options::Options(name_t name) : _name (name), _limit (unlimited), _psize (4*KiB), _parent (getArena()), _finalizing(true ), _recycling (false), _resetting (false), _debugging (false), _locking (false) { assert(consistent()); // Check consistency }
Vertex* Tree::appendText(Sit S, char *string, int len) { Vertex *txt = NULL; if (!pendingTextNode) { // the initializing text does not matter txt = new(&getArena()) Text(*this, string, len); Processor *proc = S.getProcessor(); if ( proc && proc->outputter() ) { OutputDocument *doc=proc->outputter()->getDocumentForLevel(FALSE); txt -> setOutputDocument(doc); } appendVertex(S, txt); pendingTextNode = toText(txt); } pendingText.nadd(string,len); return txt; }