~ubuntu-branches/ubuntu/vivid/emscripten/vivid

« back to all changes in this revision

Viewing changes to src/intertyper.js

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2013-06-11 15:45:24 UTC
  • mfrom: (1.2.1) (2.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20130611154524-rppb3w6tixlegv4n
Tags: 1.4.7~20130611~a1eb425-1
* New snapshot release
* Upload to unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
537
537
            });
538
538
          }
539
539
        } else if (!external) {
540
 
          if (item.tokens[3].text == 'c')
541
 
            item.tokens.splice(3, 1);
542
 
          if (item.tokens[3].text in PARSABLE_LLVM_FUNCTIONS) {
543
 
            ret.value = parseLLVMFunctionCall(item.tokens.slice(2));
 
540
          if (item.tokens[3] && item.tokens[3].text != ';') {
 
541
            if (item.tokens[3].text == 'c') {
 
542
              item.tokens.splice(3, 1);
 
543
            }
 
544
            if (item.tokens[3].text in PARSABLE_LLVM_FUNCTIONS) {
 
545
              ret.value = parseLLVMFunctionCall(item.tokens.slice(2));
 
546
            } else {
 
547
              ret.value = scanConst(item.tokens[3], ret.type);
 
548
            }
544
549
          } else {
545
 
            ret.value = scanConst(item.tokens[3], ret.type);
 
550
            ret.value = { intertype: 'value', ident: '0', value: '0', type: ret.type };
546
551
          }
547
552
        }
548
553
        return [ret];