Subversion Repositories SvarDOS

Rev

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

Rev 2230 Rev 2241
Line 576... Line 576...
576
  nls_outputnl(37,23); /* "bytes" */
576
  nls_outputnl(37,23); /* "bytes" */
577
  if (flags & DIR_FLAG_PAUSE) dir_pagination(availrows);
577
  if (flags & DIR_FLAG_PAUSE) dir_pagination(availrows);
578
}
578
}
579
 
579
 
580
 
580
 
-
 
581
/* max amount of files to sort - limited by the memory block I will allocate
-
 
582
 * to store the TINYDTA of each entry */
581
#define MAX_SORTABLE_FILES 8192
583
#define MAX_SORTABLE_FILES (65500 / sizeof(struct TINYDTA))
582
 
584
 
583
static enum cmd_result cmd_dir(struct cmd_funcparam *p) {
585
static enum cmd_result cmd_dir(struct cmd_funcparam *p) {
584
  struct DTA *dta = (void *)0x80; /* set DTA to its default location at 80h in PSP */
586
  struct DTA *dta = (void *)0x80; /* set DTA to its default location at 80h in PSP */
585
  struct TINYDTA far *dtabuf = NULL; /* used to buffer results when sorting is enabled */
587
  struct TINYDTA far *dtabuf = NULL; /* used to buffer results when sorting is enabled */
586
  unsigned short dtabufcount = 0;
588
  unsigned short dtabufcount = 0;