mojoshader_assembler.c
changeset 570 af6bb8728f9e
parent 567 1a61d0cf86ba
child 571 f8f81d832fa0
equal deleted inserted replaced
569:117d6e606c4e 570:af6bb8728f9e
   600         regtype = REG_TYPE_CONST;
   600         regtype = REG_TYPE_CONST;
   601         regnum = 0;
   601         regnum = 0;
   602         neednum = 0;
   602         neednum = 0;
   603     } // else
   603     } // else
   604 
   604 
   605     if (neednum)
   605     // "c[5]" is the same as "c5", so if the token is done, see if next is '['.
       
   606     if ((neednum) && (ctx->tokenlen == 0))
   606     {
   607     {
   607         if (nexttoken(ctx) == ((Token) '['))
   608         if (nexttoken(ctx) == ((Token) '['))
   608             neednum = 0;  // "c[5]" is the same as "c5".
   609             neednum = 0;  // don't need a number on register name itself.
   609         pushback(ctx);
   610         pushback(ctx);
   610     } // if
   611     } // if
   611 
   612 
   612     if (neednum)
   613     if (neednum)
   613     {
   614     {