Subversion Repositories SvarDOS

Rev

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

Rev 1425 Rev 1426
Line 210... Line 210...
210
  while (db->cursor->prev) db->cursor = db->cursor->prev;
210
  while (db->cursor->prev) db->cursor = db->cursor->prev;
211
  db->curline = 0;
211
  db->curline = 0;
212
}
212
}
213
 
213
 
214
 
214
 
215
static void ui_basic(const struct file *db, unsigned short slotnum) {
215
static void ui_basic(const struct file *db, unsigned char slotnum) {
216
  const char *s = svarlang_strid(0); /* ESC=MENU */
216
  const char *s = svarlang_strid(0); /* ESC=MENU */
217
  unsigned short helpcol = screenw - strlen(s);
217
  unsigned short helpcol = screenw - strlen(s);
218
  unsigned short maxfnlen = helpcol - 14;
218
  unsigned short maxfnlen = helpcol - 14;
219
 
219
 
220
  /* slot number (guaranteed to be 0-9) */
220
  /* slot number (guaranteed to be 0-9) */
Line 883... Line 883...
883
    }
883
    }
884
  }
884
  }
885
}
885
}
886
 
886
 
887
 
887
 
888
static struct file *select_slot(struct file *dbarr, unsigned short curfile) {
888
static struct file *select_slot(struct file *dbarr, unsigned char curfile) {
889
  uidirty.from = 0;
889
  uidirty.from = 0;
890
  uidirty.to = 0xff;
890
  uidirty.to = 0xff;
891
  uidirty.statusbar = 1;
891
  uidirty.statusbar = 1;
892
 
892
 
893
  dbarr = &(dbarr[curfile]);
893
  dbarr = &(dbarr[curfile]);
Line 901... Line 901...
901
 
901
 
902
/* main returns nothing, ie. sved always exits with a zero exit code
902
/* main returns nothing, ie. sved always exits with a zero exit code
903
 * (this saves 20 bytes of executable footprint) */
903
 * (this saves 20 bytes of executable footprint) */
904
void main(void) {
904
void main(void) {
905
  static struct file dbarr[10];
905
  static struct file dbarr[10];
906
  unsigned short curfile;
906
  unsigned char curfile;
907
  struct file *db = dbarr; /* visible file is the first slot by default */
907
  struct file *db = dbarr; /* visible file is the first slot by default */
908
  struct line far *clipboard = NULL;
908
  struct line far *clipboard = NULL;
909
  unsigned char original_breakflag;
909
  unsigned char original_breakflag;
910
 
910
 
911
  { /* load NLS resource */
911
  { /* load NLS resource */