Changeset 5b9ec351 in rtems
- Timestamp:
- 08/15/97 16:40:21 (26 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 2d997375
- Parents:
- d074e12
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/tools/bmenu/main.c
rd074e12 r5b9ec351 28 28 29 29 /* XXX -- just for testing -- these should be set by options */ 30 char DocsNextNode[] = ""; 31 char DocsPreviousNode[] = "Top"; 32 char DocsUpNode[] = "Top"; 30 char TopString[] = "Top"; 31 char EmptyString[] = ""; 32 33 char *DocsNextNode; 34 char *DocsPreviousNode; 35 char *DocsUpNode; 33 36 34 37 extern int optind; /* Why is this not in <stdlib.h>? */ … … 56 59 char *Usage_Strings[] = { 57 60 "\n", 58 "usage: cmd [-bv] files ...\n",61 "usage: cmd [-bv] [-p prev] [-n next] [-u up] files ...\n", 59 62 "\n", 60 63 "EOF" … … 418 421 419 422 Verbose = FALSE; 420 421 while ((c = getopt(argc, argv, "bv")) != EOF) { 423 DocsNextNode = EmptyString; 424 DocsPreviousNode = TopString; 425 DocsUpNode = TopString; 426 427 while ((c = getopt(argc, argv, "vp:n:u:")) != EOF) { 422 428 switch (c) { 423 429 case 'v': 424 430 Verbose = TRUE; 425 431 break; 432 case 'p': 433 DocsPreviousNode = strdup(optarg); 434 break; 435 case 'n': 436 DocsNextNode = strdup(optarg); 437 break; 438 case 'u': 439 DocsUpNode = strdup(optarg); 440 break; 441 426 442 case '?': 427 443 usage(); … … 466 482 } 467 483 484 if ( !strcmp( &inname[index], ".texi" ) ) { 485 fprintf( stderr, "Input file already has .texi extension\n" ); 486 exit_application( 1 ); 487 } 488 468 489 out[ index++ ] = '.'; 469 490 out[ index++ ] = 't'; 491 out[ index++ ] = 'e'; 470 492 out[ index++ ] = 'x'; 471 out[ index++ ] = ' t';493 out[ index++ ] = 'i'; 472 494 out[ index ] = '\0'; 473 474 495 } 475 496
Note: See TracChangeset
for help on using the changeset viewer.