Note: This website is archived. For up-to-date information about D projects and development, please visit wiki.dlang.org.

Changeset 611

Show
Ignore:
Timestamp:
08/10/10 10:26:51 (14 years ago)
Author:
walter
Message:

remove halt()

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/func.c

    r610 r611  
    23772377        } 
    23782378        else 
    23792379        { 
    23802380            AggregateDeclaration *thiscd = s->isAggregateDeclaration(); 
    23812381            if (thiscd) 
    23822382            {   if (!thiscd->isNested()) 
    23832383                    goto Lerr; 
    23842384            } 
    23852385            else 
    23862386                goto Lerr; 
    23872387        } 
    23882388 
    23892389        s = s->toParent2(); 
    23902390        assert(s); 
    23912391        level++; 
    23922392    } 
    23932393    return level; 
    23942394 
    23952395Lerr: 
    23962396    error(loc, "cannot access frame of function %s", fd->toPrettyChars()); 
    2397 halt(); 
    23982397    return 1; 
    23992398} 
    24002399 
    24012400void FuncDeclaration::appendExp(Expression *e) 
    24022401{   Statement *s; 
    24032402 
    24042403    s = new ExpStatement(0, e); 
    24052404    appendState(s); 
    24062405} 
    24072406 
    24082407void FuncDeclaration::appendState(Statement *s) 
    24092408{ 
    24102409    if (!fbody) 
    24112410        fbody = s; 
    24122411    else 
    24132412    { 
    24142413        CompoundStatement *cs = fbody->isCompoundStatement(); 
    24152414        if (cs) 
    24162415        { 
    24172416            if (!cs->statements)