Subversion Repositories SvarDOS

Rev

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

Rev 1720 Rev 1721
Line 199... Line 199...
199
  int ordi, orderi = 0, i;
199
  int ordi, orderi = 0, i;
200
 
200
 
201
  /* tabula rasa */
201
  /* tabula rasa */
202
  glob_sortcmp_dat.order[0] = 0;
202
  glob_sortcmp_dat.order[0] = 0;
203
 
203
 
-
 
204
  /* /O alone is a short hand for /OGN */
-
 
205
  if (*ordstring == 0) {
-
 
206
    glob_sortcmp_dat.order[0] = 'G';
-
 
207
    glob_sortcmp_dat.order[1] = 'N';
-
 
208
    glob_sortcmp_dat.order[2] = 0;
-
 
209
  }
-
 
210
 
204
  /* parsing */
211
  /* parsing */
205
  for (ordi = 0; ordstring[ordi] != 0; ordi++) {
212
  for (ordi = 0; ordstring[ordi] != 0; ordi++) {
206
    if (ordstring[ordi] == '-') {
213
    if (ordstring[ordi] == '-') {
207
      if ((ordstring[ordi + 1] == '-') || (ordstring[ordi + 1] == 0)) return(-1);
214
      if ((ordstring[ordi + 1] == '-') || (ordstring[ordi + 1] == 0)) return(-1);
208
      continue;
215
      continue;