Changeset 163

Show
Ignore:
Timestamp:
03/25/06 14:25:10 (3 years ago)
Author:
larsivi
Message:

Minor bugfix (I hope, havent really tested), or actually, the fix was minor, the bug somewhat larger. If the first prefix didnt fit, the rest of the testing would fail.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/larsivi-elf/utils/ArgParser.d

    r145 r163  
    138138    /** 
    139139        Binds a delegate callback to all arguments not conforming to an 
    140         argument bound in a call to bind(). 
     140        argument bound in a call to bind(). These arguments will be passed to the 
     141        delegate without having any matching prefixes removed. 
    141142 
    142143        Params: 
     
    161162            while (argData.length > 0) { 
    162163                bit found = false; 
     164                char[] argOrig = argData; 
    163165                foreach (char[] prefix; prefixSearchOrder) { 
    164166                    if(argData.length < prefix.length) continue;  
     
    181183                    } 
    182184                    if (found) break; 
     185                    argData = argOrig; 
    183186                } 
    184187                if (!found) {