Subversion Repositories SvarDOS

Rev

Rev 1251 | Rev 1272 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1251 Rev 1271
Line 90... Line 90...
90
    }
90
    }
91
    gotdigits++;
91
    gotdigits++;
92
  }
92
  }
93
  /* did I collect everything? */
93
  /* did I collect everything? */
94
  if ((dotpos == 0) || (colpos == 0)) return(NULL);
94
  if ((dotpos == 0) || (colpos == 0)) return(NULL);
95
  if (s[colpos + 1] == 0) return(NULL);
-
 
96
 
95
 
97
  *id = atoi(s);
96
  *id = atoi(s);
98
  *id <<= 8;
97
  *id <<= 8;
99
  *id |= atoi(s + dotpos + 1);
98
  *id |= atoi(s + dotpos + 1);
100
 
99
 
Line 166... Line 165...
166
      printf("ERROR: line #%u of %s is malformed (linelen = %u):\r\n", linecount, fname, linelen);
165
      printf("ERROR: line #%u of %s is malformed (linelen = %u):\r\n", linecount, fname, linelen);
167
      puts(linebuf);
166
      puts(linebuf);
168
      len = 0;
167
      len = 0;
169
      break;
168
      break;
170
    }
169
    }
-
 
170
    if (strlen(ptr) == 0) {
-
 
171
      printf("WARNING: %s[#%u] ignoring empty string %u.%u\r\n", fname, linecount, id >> 8, id & 0xff);
-
 
172
      continue;
-
 
173
    }
171
 
174
 
172
    /* warn about dirty lines */
175
    /* warn about dirty lines */
173
    if (linebuf[0] == '?') {
176
    if (linebuf[0] == '?') {
174
      printf("WARNING: %s[#%u] string id %u.%u is flagged as 'dirty'\r\n", fname, linecount, id >> 8, id & 0xff);
177
      printf("WARNING: %s[#%u] string id %u.%u is flagged as 'dirty'\r\n", fname, linecount, id >> 8, id & 0xff);
175
    }
178
    }