Subversion Repositories SvarDOS

Rev

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

Rev 1725 Rev 1726
Line 206... Line 206...
206
    glob_sortcmp_dat.order[0] = 'G';
206
    glob_sortcmp_dat.order[0] = 'G';
207
    glob_sortcmp_dat.order[1] = 'N';
207
    glob_sortcmp_dat.order[1] = 'N';
208
    glob_sortcmp_dat.order[2] = 0;
208
    glob_sortcmp_dat.order[2] = 0;
209
  }
209
  }
210
 
210
 
-
 
211
  /* stupid MSDOS compatibility ("DIR /O:GNE") */
-
 
212
  if (*ordstring == ':') ordstring++;
-
 
213
 
211
  /* parsing */
214
  /* parsing */
212
  for (ordi = 0; ordstring[ordi] != 0; ordi++) {
215
  for (ordi = 0; ordstring[ordi] != 0; ordi++) {
213
    if (ordstring[ordi] == '-') {
216
    if (ordstring[ordi] == '-') {
214
      if ((ordstring[ordi + 1] == '-') || (ordstring[ordi + 1] == 0)) return(-1);
217
      if ((ordstring[ordi + 1] == '-') || (ordstring[ordi + 1] == 0)) return(-1);
215
      continue;
218
      continue;