Subversion Repositories SvarDOS

Rev

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

Rev 2074 Rev 2075
Line 305... Line 305...
305
 
305
 
306
 
306
 
307
/* Displays to user valid options then exits program indicating no error */
307
/* Displays to user valid options then exits program indicating no error */
308
static void showUsage(void) {
308
static void showUsage(void) {
309
  unsigned short i;
309
  unsigned short i;
310
  for (i = 0x0200; i < 0x0209; i++) {
310
  for (i = 0x0200; i < 0x021F; i++) {
311
    const char *s = svarlang_strid(i);
311
    const char *s = svarlang_strid(i);
312
    if (s[0] == 0) continue;
312
    if (s[0] == 0) continue;
313
    if (s[0] == '.') {
-
 
314
      puts("");
-
 
315
    } else {
-
 
316
      puts(s);
313
    puts(s);
317
    }
-
 
318
  }
314
  }
319
  exit(1);
315
  exit(1);
320
}
316
}
321
 
317
 
322
 
318
 
323
/* Displays error message then exits indicating error */
319
/* Displays error message then exits indicating error */
324
static void showInvalidUsage(char * badOption) {
320
static void showInvalidUsage(char * badOption) {
325
  printf(svarlang_strid(0x0301), badOption); /* invalid switch - ... */
321
  printf(svarlang_strid(0x0301), badOption); /* invalid switch - ... */
326
  printf("%s%s", svarlang_strid(0x0302), newLine); /* use TREE /? for usage info */
322
  puts(svarlang_strid(0x0302)); /* use TREE /? for usage info */
327
  exit(1);
323
  exit(1);
328
}
324
}
329
 
325
 
330
 
326
 
331
/* Displays author, copyright, etc info, then exits indicating no error. */
327
/* Displays author, copyright, etc info, then exits indicating no error. */
332
static void showVersionInfo(void) {
328
static void showVersionInfo(void) {
333
  printf(svarlang_strid(0x0201));
329
  unsigned short i;
334
  printf(svarlang_strid(0x0202));
330
  puts("SvarDOS TREE " VERSION);
-
 
331
  puts("");
335
  printf(svarlang_strid(0x0403), VERSION);
332
  for (i = 0x0400; i < 0x0409; i++) {
336
  printf(svarlang_strid(0x0404));
333
    if (svarlang_strid(i)[0] == 0) continue;
337
  printf(svarlang_strid(0x0407));
334
    puts(svarlang_strid(i));
-
 
335
  }
338
  exit(1);
336
  exit(1);
339
}
337
}
340
 
338
 
341
 
339
 
342
/* Displays error messge for invalid drives and exits */
340
/* Displays error messge for invalid drives and exits */