~ubuntu-branches/ubuntu/trusty/luajit/trusty

« back to all changes in this revision

Viewing changes to src/buildvm_fold.c

  • Committer: Bazaar Package Importer
  • Author(s): Enrico Tassi
  • Date: 2011-05-09 23:14:21 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20110509231421-zdcnqbqk5h6iryxr
Tags: 2.0.0~beta7+dfsg-1
New upstream release with arm support

Show diffs side-by-side

added added

removed removed

Lines of Context:
111
111
        if (!strcmp(ircall_names[i], p+7))
112
112
          return i;
113
113
    } else if (allowlit && !strncmp(p, "IRCONV_", 7)) {
114
 
      for (i = 0; irt_names[i]; i++)
115
 
        if (!strncmp(irt_names[i], p+7, 3) && p[10] == '_') {
 
114
      for (i = 0; irt_names[i]; i++) {
 
115
        const char *r = strchr(p+7, '_');
 
116
        if (r && !strncmp(irt_names[i], p+7, r-(p+7))) {
116
117
          uint32_t j;
117
118
          for (j = 0; irt_names[j]; j++)
118
 
            if (!strncmp(irt_names[j], p+11, 3))
 
119
            if (!strcmp(irt_names[j], r+1))
119
120
              return (i << 5) + j;
120
121
        }
 
122
      }
121
123
    } else if (allowlit && *p >= '0' && *p <= '9') {
122
124
      for (i = 0; *p >= '0' && *p <= '9'; p++)
123
125
        i = i*10 + (*p - '0');