Ignore:
Timestamp:
Jan 31, 2018, 4:27:58 PM (23 months ago)
Author:
matszpk
Message:

CLRadeonExtender: ROCmBin: Detect start of the document in ROCm YAML metadata.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CLRadeonExtender/trunk/amdbin/ROCmBinaries.cpp

    r3683 r3684  
    797797        if (curLevel == 0)
    798798        {
     799            if (lineNo==1 && ptr+3 <= end && *ptr=='-' && ptr[1]=='-' && ptr[2]=='-' &&
     800                (ptr+3==end || (ptr+3 < end && ptr[3]=='\n')))
     801            {
     802                ptr += 3;
     803                if (ptr!=end)
     804                    ptr++; // to newline
     805                continue; // skip document start
     806            }
     807           
    799808            if (ptr+3 <= end && *ptr=='.' && ptr[1]=='.' && ptr[2]=='.' &&
    800809                (ptr+3==end || (ptr+3 < end && ptr[3]=='\n')))
Note: See TracChangeset for help on using the changeset viewer.