Changeset 2412
- Timestamp:
- 03/12/10 18:51:27 (5 months ago)
- Location:
- trunk/libopts
- Files:
-
- 42 edited
-
. (modified) (1 prop)
-
COPYING.gplv3 (modified) (2 diffs)
-
COPYING.lgplv3 (modified) (1 diff)
-
README (modified) (1 diff)
-
ag-char-map.h (modified) (3 diffs)
-
autoopts.c (modified) (7 diffs)
-
autoopts.h (modified) (3 diffs)
-
autoopts/options.h (modified) (28 diffs)
-
autoopts/usage-txt.h (modified) (7 diffs)
-
boolean.c (modified) (3 diffs)
-
compat/compat.h (modified) (1 diff)
-
compat/pathfind.c (modified) (1 diff)
-
compat/windows-config.h (modified) (1 diff)
-
configfile.c (modified) (6 diffs)
-
cook.c (modified) (3 diffs)
-
enumeration.c (modified) (3 diffs)
-
environment.c (modified) (6 diffs)
-
file.c (modified) (3 diffs)
-
genshell.c (modified) (5 diffs)
-
genshell.h (modified) (5 diffs)
-
load.c (modified) (3 diffs)
-
makeshell.c (modified) (3 diffs)
-
nested.c (modified) (3 diffs)
-
numeric.c (modified) (7 diffs)
-
pgusage.c (modified) (3 diffs)
-
proto.h (modified) (1 diff)
-
putshell.c (modified) (3 diffs)
-
reset.c (modified) (2 diffs)
-
restore.c (modified) (3 diffs)
-
save.c (modified) (4 diffs)
-
sort.c (modified) (3 diffs)
-
stack.c (modified) (3 diffs)
-
streqvcmp.c (modified) (3 diffs)
-
text_mmap.c (modified) (3 diffs)
-
time.c (modified) (2 diffs)
-
tokenize.c (modified) (2 diffs)
-
usage.c (modified) (4 diffs)
-
value-type.c (modified) (2 diffs)
-
value-type.h (modified) (1 diff)
-
version.c (modified) (3 diffs)
-
xat-attribute.c (modified) (2 diffs)
-
xat-attribute.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/libopts
-
Property
svn:mergeinfo
set to
/branches/3.4/libopts merged eligible /features/win32port/libopts merged eligible
-
Property
svn:mergeinfo
set to
-
trunk/libopts/COPYING.gplv3
r1892 r2412 2 2 Version 3, 29 June 2007 3 3 4 copyright (c) 200 7by Bruce Korb - all rights reserved4 copyright (c) 2009 by Bruce Korb - all rights reserved 5 5 Everyone is permitted to copy and distribute verbatim copies 6 6 of this license document, but changing it is not allowed. … … 633 633 634 634 <one line to give the program's name and a brief idea of what it does.> 635 copyright (c) by Bruce Korb - all rights reserved635 copyright (c) by Bruce Korb - all rights reserved 636 636 637 637 This program is free software: you can redistribute it and/or modify -
trunk/libopts/COPYING.lgplv3
r1892 r2412 2 2 Version 3, 29 June 2007 3 3 4 copyright (c) 200 7by Bruce Korb - all rights reserved4 copyright (c) 2009 by Bruce Korb - all rights reserved 5 5 Everyone is permitted to copy and distribute verbatim copies 6 6 of this license document, but changing it is not allowed. -
trunk/libopts/README
r1885 r2412 86 86 LICENSING: 87 87 88 This material is copyright 1993-2007by Bruce Korb.88 This material is copyright (c) 1993-2009 by Bruce Korb. 89 89 You are licensed to use this under the terms of either 90 90 the GNU Lesser General Public License (see: COPYING.lgpl), or, -
trunk/libopts/ag-char-map.h
r2091 r2412 1 1 /* 2 * Character mapping generated 12/31/08 19:07:312 * Character mapping generated 08/08/09 10:14:55 3 3 * 4 4 * This file contains the character classifications … … 13 13 # elif defined(HAVE_STDINT_H) 14 14 # include <stdint.h> 15 15 16 # else 16 # error "no int-types header." 17 # choke-me-now. 18 # endif 19 #else 17 # ifndef HAVE_INT8_T 18 typedef signed char int8_t; 19 # endif 20 # ifndef HAVE_UINT8_T 21 typedef unsigned char uint8_t; 22 # endif 23 # ifndef HAVE_INT16_T 24 typedef signed short int16_t; 25 # endif 26 # ifndef HAVE_UINT16_T 27 typedef unsigned short uint16_t; 28 # endif 29 # ifndef HAVE_UINT_T 30 typedef unsigned int uint_t; 31 # endif 32 33 # ifndef HAVE_INT32_T 34 # if SIZEOF_INT == 4 35 typedef signed int int32_t; 36 # elif SIZEOF_LONG == 4 37 typedef signed long int32_t; 38 # endif 39 # endif 40 41 # ifndef HAVE_UINT32_T 42 # if SIZEOF_INT == 4 43 typedef unsigned int uint32_t; 44 # elif SIZEOF_LONG == 4 45 typedef unsigned long uint32_t; 46 # endif 47 # endif 48 # endif /* HAVE_*INT*_H header */ 49 50 #else /* not HAVE_CONFIG_H -- */ 20 51 # ifdef __sun 21 52 # include <inttypes.h> … … 23 54 # include <stdint.h> 24 55 # endif 25 #endif 56 #endif /* HAVE_CONFIG_H */ 26 57 27 58 #if 0 /* mapping specification source (from autogen.map) */ -
trunk/libopts/autoopts.c
r2091 r2412 1 1 2 2 /* 3 * $Id: autoopts.c,v 4. 36 2008/12/20 18:35:26bkorb Exp $4 * Time-stamp: "200 8-12-16 14:52:28bkorb"3 * $Id: autoopts.c,v 4.45 2009/08/01 17:43:05 bkorb Exp $ 4 * Time-stamp: "2009-01-12 02:49:49 bkorb" 5 5 * 6 6 * This file contains all of the routines that must be linked into … … 11 11 * This file is part of AutoOpts, a companion to AutoGen. 12 12 * AutoOpts is free software. 13 * AutoOpts is copyright (c) 1992-2008 by Bruce Korb - all rights reserved 14 * AutoOpts is copyright (c) 1992-2008 by Bruce Korb - all rights reserved 13 * AutoOpts is copyright (c) 1992-2009 by Bruce Korb - all rights reserved 15 14 * 16 15 * AutoOpts is available under any one of two licenses. The license … … 26 25 * These files have the following md5sums: 27 26 * 28 * 239588c55c22c60ffe159946a760a33epkg/libopts/COPYING.gplv329 * fa82ca978890795162346e661b47161apkg/libopts/COPYING.lgplv327 * 43b91e8ca915626ed3818ffb1b71248b pkg/libopts/COPYING.gplv3 28 * 06a1a2e4760c90ea5e1dad8dfaac4d39 pkg/libopts/COPYING.lgplv3 30 29 * 66a5cedaf62c4b2637025f049f9b826f pkg/libopts/COPYING.mbsd 31 30 */ … … 39 38 40 39 static tSuccess 41 nextOption( tOptions* pOpts, tOptState* pOptState ); 40 next_opt_arg_must(tOptions* pOpts, tOptState* pOptState); 41 42 static tSuccess 43 next_opt_arg_may(tOptions* pOpts, tOptState* pOptState); 44 45 static tSuccess 46 next_opt_arg_none(tOptions* pOpts, tOptState* pOptState); 47 48 static tSuccess 49 nextOption(tOptions* pOpts, tOptState* pOptState); 42 50 43 51 static tSuccess … … 547 555 548 556 557 static tSuccess 558 next_opt_arg_must(tOptions* pOpts, tOptState* pOptState) 559 { 560 /* 561 * An option argument is required. Long options can either have 562 * a separate command line argument, or an argument attached by 563 * the '=' character. Figure out which. 564 */ 565 switch (pOptState->optType) { 566 case TOPT_SHORT: 567 /* 568 * See if an arg string follows the flag character 569 */ 570 if (*++(pOpts->pzCurOpt) == NUL) 571 pOpts->pzCurOpt = pOpts->origArgVect[ pOpts->curOptIdx++ ]; 572 pOptState->pzOptArg = pOpts->pzCurOpt; 573 break; 574 575 case TOPT_LONG: 576 /* 577 * See if an arg string has already been assigned (glued on 578 * with an `=' character) 579 */ 580 if (pOptState->pzOptArg == NULL) 581 pOptState->pzOptArg = pOpts->origArgVect[ pOpts->curOptIdx++ ]; 582 break; 583 584 default: 585 #ifdef DEBUG 586 fputs( "AutoOpts lib error: option type not selected\n", 587 stderr ); 588 exit( EXIT_FAILURE ); 589 #endif 590 591 case TOPT_DEFAULT: 592 /* 593 * The option was selected by default. The current token is 594 * the option argument. 595 */ 596 break; 597 } 598 599 /* 600 * Make sure we did not overflow the argument list. 601 */ 602 if (pOpts->curOptIdx > pOpts->origArgCt) { 603 fprintf( stderr, zMisArg, pOpts->pzProgPath, 604 pOptState->pOD->pz_Name ); 605 return FAILURE; 606 } 607 608 pOpts->pzCurOpt = NULL; /* next time advance to next arg */ 609 return SUCCESS; 610 } 611 612 613 static tSuccess 614 next_opt_arg_may(tOptions* pOpts, tOptState* pOptState) 615 { 616 /* 617 * An option argument is optional. 618 */ 619 switch (pOptState->optType) { 620 case TOPT_SHORT: 621 if (*++pOpts->pzCurOpt != NUL) 622 pOptState->pzOptArg = pOpts->pzCurOpt; 623 else { 624 char* pzLA = pOpts->origArgVect[ pOpts->curOptIdx ]; 625 626 /* 627 * BECAUSE it is optional, we must make sure 628 * we did not find another flag and that there 629 * is such an argument. 630 */ 631 if ((pzLA == NULL) || (*pzLA == '-')) 632 pOptState->pzOptArg = NULL; 633 else { 634 pOpts->curOptIdx++; /* argument found */ 635 pOptState->pzOptArg = pzLA; 636 } 637 } 638 break; 639 640 case TOPT_LONG: 641 /* 642 * Look for an argument if we don't already have one (glued on 643 * with a `=' character) *AND* we are not in named argument mode 644 */ 645 if ( (pOptState->pzOptArg == NULL) 646 && (! NAMED_OPTS(pOpts))) { 647 char* pzLA = pOpts->origArgVect[ pOpts->curOptIdx ]; 648 649 /* 650 * BECAUSE it is optional, we must make sure 651 * we did not find another flag and that there 652 * is such an argument. 653 */ 654 if ((pzLA == NULL) || (*pzLA == '-')) 655 pOptState->pzOptArg = NULL; 656 else { 657 pOpts->curOptIdx++; /* argument found */ 658 pOptState->pzOptArg = pzLA; 659 } 660 } 661 break; 662 663 default: 664 case TOPT_DEFAULT: 665 fputs(zAO_Woops, stderr ); 666 exit( EX_SOFTWARE ); 667 } 668 669 /* 670 * After an option with an optional argument, we will 671 * *always* start with the next option because if there 672 * were any characters following the option name/flag, 673 * they would be interpreted as the argument. 674 */ 675 pOpts->pzCurOpt = NULL; 676 return SUCCESS; 677 } 678 679 680 static tSuccess 681 next_opt_arg_none(tOptions* pOpts, tOptState* pOptState) 682 { 683 /* 684 * No option argument. Make sure next time around we find 685 * the correct option flag character for short options 686 */ 687 if (pOptState->optType == TOPT_SHORT) 688 (pOpts->pzCurOpt)++; 689 690 /* 691 * It is a long option. Make sure there was no ``=xxx'' argument 692 */ 693 else if (pOptState->pzOptArg != NULL) { 694 fprintf(stderr, zNoArg, pOpts->pzProgPath, pOptState->pOD->pz_Name); 695 return FAILURE; 696 } 697 698 /* 699 * It is a long option. Advance to next command line argument. 700 */ 701 else 702 pOpts->pzCurOpt = NULL; 703 return SUCCESS; 704 } 705 549 706 /* 550 707 * nextOption … … 556 713 */ 557 714 static tSuccess 558 nextOption( tOptions* pOpts, tOptState* pOptState ) 559 { 560 tSuccess res; 561 enum { ARG_NONE, ARG_MAY, ARG_MUST } arg_type = ARG_NONE; 562 teOptArgType at; 563 564 res = findOptDesc( pOpts, pOptState ); 565 if (! SUCCESSFUL( res )) 566 return res; 715 nextOption(tOptions* pOpts, tOptState* pOptState) 716 { 717 { 718 tSuccess res; 719 res = findOptDesc( pOpts, pOptState ); 720 if (! SUCCESSFUL( res )) 721 return res; 722 } 723 724 if ( ((pOptState->flags & OPTST_DEFINED) != 0) 725 && ((pOptState->pOD->fOptState & OPTST_NO_COMMAND) != 0)) { 726 fprintf(stderr, zNotCmdOpt, pOptState->pOD->pz_Name); 727 return FAILURE; 728 } 729 567 730 pOptState->flags |= (pOptState->pOD->fOptState & OPTST_PERSISTENT_MASK); 568 at = OPTST_GET_ARGTYPE(pOptState->flags);569 731 570 732 /* … … 574 736 * Disabled mode option selection also disables option arguments. 575 737 */ 576 if ((pOptState->flags & OPTST_DISABLED) != 0) 577 arg_type = ARG_NONE; 578 else if (at == OPARG_TYPE_NONE) 579 arg_type = ARG_NONE; 580 else if (pOptState->flags & OPTST_ARG_OPTIONAL) 581 arg_type = ARG_MAY; 582 else 583 arg_type = ARG_MUST; 584 585 switch (arg_type) { 586 case ARG_MUST: 587 /* 588 * An option argument is required. Long options can either have 589 * a separate command line argument, or an argument attached by 590 * the '=' character. Figure out which. 591 */ 592 switch (pOptState->optType) { 593 case TOPT_SHORT: 594 /* 595 * See if an arg string follows the flag character 596 */ 597 if (*++(pOpts->pzCurOpt) == NUL) 598 pOpts->pzCurOpt = pOpts->origArgVect[ pOpts->curOptIdx++ ]; 599 pOptState->pzOptArg = pOpts->pzCurOpt; 600 break; 601 602 case TOPT_LONG: 603 /* 604 * See if an arg string has already been assigned (glued on 605 * with an `=' character) 606 */ 607 if (pOptState->pzOptArg == NULL) 608 pOptState->pzOptArg = pOpts->origArgVect[ pOpts->curOptIdx++ ]; 609 break; 610 611 default: 612 #ifdef DEBUG 613 fputs( "AutoOpts lib error: option type not selected\n", 614 stderr ); 615 exit( EXIT_FAILURE ); 616 #endif 617 618 case TOPT_DEFAULT: 619 /* 620 * The option was selected by default. The current token is 621 * the option argument. 622 */ 623 break; 624 } 625 626 /* 627 * Make sure we did not overflow the argument list. 628 */ 629 if (pOpts->curOptIdx > pOpts->origArgCt) { 630 fprintf( stderr, zMisArg, pOpts->pzProgPath, 631 pOptState->pOD->pz_Name ); 632 return FAILURE; 633 } 634 635 pOpts->pzCurOpt = NULL; /* next time advance to next arg */ 636 break; 637 638 case ARG_MAY: 639 /* 640 * An option argument is optional. 641 */ 642 switch (pOptState->optType) { 643 case TOPT_SHORT: 644 if (*++pOpts->pzCurOpt != NUL) 645 pOptState->pzOptArg = pOpts->pzCurOpt; 646 else { 647 char* pzLA = pOpts->origArgVect[ pOpts->curOptIdx ]; 648 649 /* 650 * BECAUSE it is optional, we must make sure 651 * we did not find another flag and that there 652 * is such an argument. 653 */ 654 if ((pzLA == NULL) || (*pzLA == '-')) 655 pOptState->pzOptArg = NULL; 656 else { 657 pOpts->curOptIdx++; /* argument found */ 658 pOptState->pzOptArg = pzLA; 659 } 660 } 661 break; 662 663 case TOPT_LONG: 664 /* 665 * Look for an argument if we don't already have one (glued on 666 * with a `=' character) *AND* we are not in named argument mode 667 */ 668 if ( (pOptState->pzOptArg == NULL) 669 && (! NAMED_OPTS(pOpts))) { 670 char* pzLA = pOpts->origArgVect[ pOpts->curOptIdx ]; 671 672 /* 673 * BECAUSE it is optional, we must make sure 674 * we did not find another flag and that there 675 * is such an argument. 676 */ 677 if ((pzLA == NULL) || (*pzLA == '-')) 678 pOptState->pzOptArg = NULL; 679 else { 680 pOpts->curOptIdx++; /* argument found */ 681 pOptState->pzOptArg = pzLA; 682 } 683 } 684 break; 685 686 default: 687 case TOPT_DEFAULT: 688 fputs("AutoOpts lib error: defaulted to option with optional arg\n", 689 stderr ); 690 exit( EX_SOFTWARE ); 691 } 692 693 /* 694 * After an option with an optional argument, we will 695 * *always* start with the next option because if there 696 * were any characters following the option name/flag, 697 * they would be interpreted as the argument. 698 */ 699 pOpts->pzCurOpt = NULL; 700 break; 701 702 default: /* CANNOT */ 703 /* 704 * No option argument. Make sure next time around we find 705 * the correct option flag character for short options 706 */ 707 if (pOptState->optType == TOPT_SHORT) 708 (pOpts->pzCurOpt)++; 709 710 /* 711 * It is a long option. Make sure there was no ``=xxx'' argument 712 */ 713 else if (pOptState->pzOptArg != NULL) { 714 fprintf( stderr, zNoArg, pOpts->pzProgPath, 715 pOptState->pOD->pz_Name ); 716 return FAILURE; 717 } 718 719 /* 720 * It is a long option. Advance to next command line argument. 721 */ 738 { 739 enum { ARG_NONE, ARG_MAY, ARG_MUST } arg_type = ARG_NONE; 740 tSuccess res; 741 742 if ((pOptState->flags & OPTST_DISABLED) != 0) 743 arg_type = ARG_NONE; 744 745 else if (OPTST_GET_ARGTYPE(pOptState->flags) == OPARG_TYPE_NONE) 746 arg_type = ARG_NONE; 747 748 else if (pOptState->flags & OPTST_ARG_OPTIONAL) 749 arg_type = ARG_MAY; 750 722 751 else 723 pOpts->pzCurOpt = NULL; 724 } 725 726 return SUCCESS; 752 arg_type = ARG_MUST; 753 754 switch (arg_type) { 755 case ARG_MUST: res = next_opt_arg_must(pOpts, pOptState); break; 756 case ARG_MAY: res = next_opt_arg_may( pOpts, pOptState); break; 757 case ARG_NONE: res = next_opt_arg_none(pOpts, pOptState); break; 758 } 759 760 return res; 761 } 727 762 } 728 763 -
trunk/libopts/autoopts.h
r2091 r2412 3 3 * Time-stamp: "2008-11-01 20:08:06 bkorb" 4 4 * 5 * autoopts.h $Id: autoopts.h,v 4. 29 2008/11/02 18:51:26bkorb Exp $5 * autoopts.h $Id: autoopts.h,v 4.42 2009/08/01 17:43:05 bkorb Exp $ 6 6 * 7 7 * This file defines all the global structures and special values … … 10 10 * This file is part of AutoOpts, a companion to AutoGen. 11 11 * AutoOpts is free software. 12 * AutoOpts is copyright (c) 1992-2008 by Bruce Korb - all rights reserved 13 * AutoOpts is copyright (c) 1992-2008 by Bruce Korb - all rights reserved 12 * AutoOpts is copyright (c) 1992-2009 by Bruce Korb - all rights reserved 14 13 * 15 14 * AutoOpts is available under any one of two licenses. The license … … 25 24 * These files have the following md5sums: 26 25 * 27 * 239588c55c22c60ffe159946a760a33epkg/libopts/COPYING.gplv328 * fa82ca978890795162346e661b47161apkg/libopts/COPYING.lgplv326 * 43b91e8ca915626ed3818ffb1b71248b pkg/libopts/COPYING.gplv3 27 * 06a1a2e4760c90ea5e1dad8dfaac4d39 pkg/libopts/COPYING.lgplv3 29 28 * 66a5cedaf62c4b2637025f049f9b826f pkg/libopts/COPYING.mbsd 30 29 */ -
trunk/libopts/autoopts/options.h
r2091 r2412 3 3 * DO NOT EDIT THIS FILE (options.h) 4 4 * 5 * It has been AutoGen-ed Wednesday December 31, 2008 at 07:07:15 PM PST5 * It has been AutoGen-ed August 8, 2009 at 10:14:44 AM by AutoGen 5.9.9 6 6 * From the definitions funcs.def 7 7 * and the template file options_h … … 10 10 * used in the automated option processing library. 11 11 * 12 * Automated Options copyright 1992-YBruce Korb12 * Automated Options copyright (c) 1992-Y by Bruce Korb 13 13 * 14 14 * AutoOpts is free software: you can redistribute it and/or modify it … … 67 67 */ 68 68 69 #define OPTIONS_STRUCT_VERSION 13107 270 #define OPTIONS_VERSION_STRING "32: 0:7"69 #define OPTIONS_STRUCT_VERSION 131074 70 #define OPTIONS_VERSION_STRING "32:2:7" 71 71 #define OPTIONS_MINIMUM_VERSION 102400 72 72 #define OPTIONS_MIN_VER_STRING "25:0:0" … … 140 140 OPTST_TWICE_ID = 22, /* process opt twice - imm + reg */ 141 141 OPTST_DISABLE_TWICE_ID = 23, /* process disabled option twice */ 142 OPTST_SCALED_NUM_ID = 24 /* scaled integer value */ 142 OPTST_SCALED_NUM_ID = 24, /* scaled integer value */ 143 OPTST_NO_COMMAND_ID = 25, /* disable from cmd line */ 144 OPTST_DEPRECATED_ID = 26 /* support is being removed */ 143 145 } opt_state_enum_t; 144 146 145 #define OPTST_INIT 0U147 #define OPTST_INIT 0U 146 148 #define OPTST_SET (1U << OPTST_SET_ID) 147 149 #define OPTST_PRESET (1U << OPTST_PRESET_ID) … … 168 170 #define OPTST_DISABLE_TWICE (1U << OPTST_DISABLE_TWICE_ID) 169 171 #define OPTST_SCALED_NUM (1U << OPTST_SCALED_NUM_ID) 170 #define OPT_STATE_MASK 0x01FFFF7FU 171 172 #define OPTST_SET_MASK ( \ 173 OPTST_SET | \ 174 OPTST_PRESET | \ 175 OPTST_RESET | \ 176 OPTST_DEFINED ) 177 178 #define OPTST_MUTABLE_MASK ( \ 179 OPTST_SET | \ 180 OPTST_PRESET | \ 181 OPTST_RESET | \ 182 OPTST_DEFINED | \ 183 OPTST_EQUIVALENCE | \ 184 OPTST_DISABLED | \ 185 OPTST_ALLOC_ARG ) 186 187 #define OPTST_SELECTED_MASK ( \ 188 OPTST_SET | \ 189 OPTST_DEFINED ) 190 191 #define OPTST_ARG_TYPE_MASK ( \ 192 OPTST_ARG_TYPE_1 | \ 193 OPTST_ARG_TYPE_2 | \ 194 OPTST_ARG_TYPE_3 | \ 195 OPTST_ARG_TYPE_4 ) 196 197 #define OPTST_DO_NOT_SAVE_MASK ( \ 198 OPTST_NO_INIT | \ 199 OPTST_DOCUMENT | \ 200 OPTST_OMITTED ) 172 #define OPTST_NO_COMMAND (1U << OPTST_NO_COMMAND_ID) 173 #define OPTST_DEPRECATED (1U << OPTST_DEPRECATED_ID) 174 #define OPT_STATE_MASK 0x07FFFF7FU 175 176 #define OPTST_SET_MASK ( \ 177 OPTST_DEFINED | OPTST_PRESET | OPTST_RESET | \ 178 OPTST_SET \ 179 /* 0x0000000FU */ ) 180 181 #define OPTST_MUTABLE_MASK ( \ 182 OPTST_ALLOC_ARG | OPTST_DEFINED | \ 183 OPTST_DISABLED | OPTST_EQUIVALENCE | \ 184 OPTST_PRESET | OPTST_RESET | \ 185 OPTST_SET \ 186 /* 0x0000007FU */ ) 187 188 #define OPTST_SELECTED_MASK ( \ 189 OPTST_DEFINED | OPTST_SET \ 190 /* 0x00000005U */ ) 191 192 #define OPTST_ARG_TYPE_MASK ( \ 193 OPTST_ARG_TYPE_1 | OPTST_ARG_TYPE_2 | OPTST_ARG_TYPE_3 | \ 194 OPTST_ARG_TYPE_4 \ 195 /* 0x0000F000U */ ) 196 197 #define OPTST_DO_NOT_SAVE_MASK ( \ 198 OPTST_DOCUMENT | OPTST_NO_INIT | OPTST_OMITTED \ 199 /* 0x00280100U */ ) 200 201 #define OPTST_NO_USAGE_MASK ( \ 202 OPTST_DEPRECATED | OPTST_NO_COMMAND | OPTST_OMITTED \ 203 /* 0x06080000U */ ) 201 204 202 205 #ifdef NO_OPTIONAL_OPT_ARGS … … 240 243 OPTPROC_GNUUSAGE_ID = 12, /* emit usage in GNU style */ 241 244 OPTPROC_TRANSLATE_ID = 13, /* Translate strings in tOptions */ 242 OPTPROC_HAS_IMMED_ID = 14, /* program defines immed options */243 245 OPTPROC_NXLAT_OPT_CFG_ID = 16, /* suppress for config only */ 244 246 OPTPROC_NXLAT_OPT_ID = 17, /* suppress xlation always */ … … 246 248 } optproc_state_enum_t; 247 249 248 #define OPTPROC_NONE 0U250 #define OPTPROC_NONE 0U 249 251 #define OPTPROC_LONGOPT (1U << OPTPROC_LONGOPT_ID) 250 252 #define OPTPROC_SHORTOPT (1U << OPTPROC_SHORTOPT_ID) … … 261 263 #define OPTPROC_GNUUSAGE (1U << OPTPROC_GNUUSAGE_ID) 262 264 #define OPTPROC_TRANSLATE (1U << OPTPROC_TRANSLATE_ID) 263 #define OPTPROC_HAS_IMMED (1U << OPTPROC_HAS_IMMED_ID)264 265 #define OPTPROC_NXLAT_OPT_CFG (1U << OPTPROC_NXLAT_OPT_CFG_ID) 265 266 #define OPTPROC_NXLAT_OPT (1U << OPTPROC_NXLAT_OPT_ID) 266 267 #define OPTPROC_PRESETTING (1U << OPTPROC_PRESETTING_ID) 267 #define OPTPROC_STATE_MASK 0x000B 7FFFU268 269 #define OPTPROC_NO_XLAT_MASK ( \270 OPTPROC_NXLAT_OPT _CFG |\271 OPTPROC_NXLAT_OPT)268 #define OPTPROC_STATE_MASK 0x000B3FFFU 269 270 #define OPTPROC_NO_XLAT_MASK ( \ 271 OPTPROC_NXLAT_OPT | OPTPROC_NXLAT_OPT_CFG \ 272 /* 0x00030000U */ ) 272 273 273 274 #define STMTS(s) do { s; } while (0) … … 501 502 */ 502 503 503 /* From: tokenize.c line 11 8504 /* From: tokenize.c line 117 504 505 * 505 506 * ao_string_tokenize - tokenize an input string … … 545 546 546 547 547 /* From: configfile.c line 8 6548 /* From: configfile.c line 85 548 549 * 549 550 * configFileLoad - parse a configuration file … … 565 566 566 567 567 /* From: configfile.c line 8 83568 /* From: configfile.c line 897 568 569 * 569 570 * optionFileLoad - Load the locatable config files, in order … … 595 596 596 597 597 /* From: configfile.c line 21 8598 /* From: configfile.c line 217 598 599 * 599 600 * optionFindNextValue - find a hierarcicaly valued option instance … … 614 615 615 616 616 /* From: configfile.c line 14 4617 /* From: configfile.c line 143 617 618 * 618 619 * optionFindValue - find a hierarcicaly valued option instance … … 631 632 632 633 633 /* From: restore.c line 16 6634 /* From: restore.c line 165 634 635 * 635 636 * optionFree - free allocated option processing memory … … 644 645 645 646 646 /* From: configfile.c line 28 7647 /* From: configfile.c line 286 647 648 * 648 649 * optionGetValue - get a specific value from a hierarcical list … … 662 663 663 664 664 /* From: load.c line 49 9665 /* From: load.c line 498 665 666 * 666 667 * optionLoadLine - process a string for an option name and value … … 686 687 687 688 688 /* From: configfile.c line 34 6689 /* From: configfile.c line 345 689 690 * 690 691 * optionNextValue - get the next value from a hierarchical list … … 705 706 706 707 707 /* From: usage.c line 10 8708 /* From: usage.c line 107 708 709 * 709 710 * optionOnlyUsage - Print usage text for just the options … … 720 721 721 722 722 /* From: autoopts.c line 10 06723 /* From: autoopts.c line 1041 723 724 * 724 725 * optionProcess - this is the main option processing routine … … 750 751 751 752 752 /* From: restore.c line 12 3753 /* From: restore.c line 122 753 754 * 754 755 * optionRestore - restore option state from memory copy … … 792 793 793 794 794 /* From: restore.c line 7 1795 /* From: restore.c line 70 795 796 * 796 797 * optionSaveState - saves the option state to memory … … 814 815 815 816 816 /* From: nested.c line 5 70817 /* From: nested.c line 569 817 818 * 818 819 * optionUnloadNested - Deallocate the memory for a nested value … … 828 829 829 830 830 /* From: version.c line 3 8831 /* From: version.c line 37 831 832 * 832 833 * optionVersion - return the compiled AutoOpts version number … … 884 885 885 886 886 /* From: streqvcmp.c line 20 9887 /* From: streqvcmp.c line 208 887 888 * 888 889 * strequate - map a list of characters to the same value … … 899 900 900 901 901 /* From: streqvcmp.c line 11 9902 /* From: streqvcmp.c line 118 902 903 * 903 904 * streqvcmp - compare two strings with an equivalence mapping … … 918 919 919 920 920 /* From: streqvcmp.c line 15 6921 /* From: streqvcmp.c line 155 921 922 * 922 923 * streqvmap - Set the character mappings for the streqv functions … … 946 947 947 948 948 /* From: streqvcmp.c line 7 8949 /* From: streqvcmp.c line 77 949 950 * 950 951 * strneqvcmp - compare two strings with an equivalence mapping … … 967 968 968 969 969 /* From: streqvcmp.c line 23 5970 /* From: streqvcmp.c line 234 970 971 * 971 972 * strtransform - convert a string into its mapped-to value -
trunk/libopts/autoopts/usage-txt.h
r2091 r2412 3 3 * DO NOT EDIT THIS FILE (usage-txt.h) 4 4 * 5 * It has been AutoGen-ed Wednesday December 31, 2008 at 07:07:15 PM PST5 * It has been AutoGen-ed August 8, 2009 at 10:14:43 AM by AutoGen 5.9.9 6 6 * From the definitions usage-txt.def 7 7 * and the template file usage-txt.tpl 8 8 * 9 9 * This file handles all the bookkeeping required for tracking all the little 10 * tiny strings used by the AutoOpts library. There are 1 2810 * tiny strings used by the AutoOpts library. There are 130 11 11 * of them. This is not versioned because it is entirely internal to the 12 12 * library and accessed by client code only in a very well-controlled way: … … 45 45 char* utpz_GnuNumArg; 46 46 char* utpz_GnuStrArg; 47 cch_t* apz_str[ 12 1];47 cch_t* apz_str[ 123 ]; 48 48 } usage_text_t; 49 49 … … 63 63 #define zAO_Sml (option_usage_text.apz_str[ 3]) 64 64 #define zAO_Ver (option_usage_text.apz_str[ 4]) 65 #define zAll (option_usage_text.apz_str[ 5]) 66 #define zAlt (option_usage_text.apz_str[ 6]) 67 #define zAmbigKey (option_usage_text.apz_str[ 7]) 68 #define zAmbigOptStr (option_usage_text.apz_str[ 8]) 69 #define zArgsMust (option_usage_text.apz_str[ 9]) 70 #define zAtMost (option_usage_text.apz_str[ 10]) 71 #define zAuto (option_usage_text.apz_str[ 11]) 72 #define zBadPipe (option_usage_text.apz_str[ 12]) 73 #define zBadVerArg (option_usage_text.apz_str[ 13]) 74 #define zCantFmt (option_usage_text.apz_str[ 14]) 75 #define zCantSave (option_usage_text.apz_str[ 15]) 76 #define zDefaultOpt (option_usage_text.apz_str[ 16]) 77 #define zDis (option_usage_text.apz_str[ 17]) 78 #define zEnab (option_usage_text.apz_str[ 18]) 79 #define zEquiv (option_usage_text.apz_str[ 19]) 80 #define zErrOnly (option_usage_text.apz_str[ 20]) 81 #define zExamineFmt (option_usage_text.apz_str[ 21]) 82 #define zFiveSpaces (option_usage_text.apz_str[ 22]) 83 #define zFlagOkay (option_usage_text.apz_str[ 23]) 84 #define zFmtFmt (option_usage_text.apz_str[ 24]) 85 #define zForkFail (option_usage_text.apz_str[ 25]) 86 #define zFSErrOptLoad (option_usage_text.apz_str[ 26]) 87 #define zFSErrReadFile (option_usage_text.apz_str[ 27]) 88 #define zFSOptError (option_usage_text.apz_str[ 28]) 89 #define zFSOptErrMayExist (option_usage_text.apz_str[ 29]) 90 #define zFSOptErrMustExist (option_usage_text.apz_str[ 30]) 91 #define zFSOptErrNoExist (option_usage_text.apz_str[ 31]) 92 #define zFSOptErrOpen (option_usage_text.apz_str[ 32]) 93 #define zFSOptErrFopen (option_usage_text.apz_str[ 33]) 94 #define zFileCannotExist (option_usage_text.apz_str[ 34]) 95 #define zFileMustExist (option_usage_text.apz_str[ 35]) 96 #define zGenshell (option_usage_text.apz_str[ 36]) 65 #define zAO_Woops (option_usage_text.apz_str[ 5]) 66 #define zAll (option_usage_text.apz_str[ 6]) 67 #define zAlt (option_usage_text.apz_str[ 7]) 68 #define zAmbigKey (option_usage_text.apz_str[ 8]) 69 #define zAmbigOptStr (option_usage_text.apz_str[ 9]) 70 #define zArgsMust (option_usage_text.apz_str[ 10]) 71 #define zAtMost (option_usage_text.apz_str[ 11]) 72 #define zAuto (option_usage_text.apz_str[ 12]) 73 #define zBadPipe (option_usage_text.apz_str[ 13]) 74 #define zBadVerArg (option_usage_text.apz_str[ 14]) 75 #define zCantFmt (option_usage_text.apz_str[ 15]) 76 #define zCantSave (option_usage_text.apz_str[ 16]) 77 #define zDefaultOpt (option_usage_text.apz_str[ 17]) 78 #define zDis (option_usage_text.apz_str[ 18]) 79 #define zEnab (option_usage_text.apz_str[ 19]) 80 #define zEquiv (option_usage_text.apz_str[ 20]) 81 #define zErrOnly (option_usage_text.apz_str[ 21]) 82 #define zExamineFmt (option_usage_text.apz_str[ 22]) 83 #define zFiveSpaces (option_usage_text.apz_str[ 23]) 84 #define zFlagOkay (option_usage_text.apz_str[ 24]) 85 #define zFmtFmt (option_usage_text.apz_str[ 25]) 86 #define zForkFail (option_usage_text.apz_str[ 26]) 87 #define zFSErrOptLoad (option_usage_text.apz_str[ 27]) 88 #define zFSErrReadFile (option_usage_text.apz_str[ 28]) 89 #define zFSOptError (option_usage_text.apz_str[ 29]) 90 #define zFSOptErrMayExist (option_usage_text.apz_str[ 30]) 91 #define zFSOptErrMustExist (option_usage_text.apz_str[ 31]) 92 #define zFSOptErrNoExist (option_usage_text.apz_str[ 32]) 93 #define zFSOptErrOpen (option_usage_text.apz_str[ 33]) 94 #define zFSOptErrFopen (option_usage_text.apz_str[ 34]) 95 #define zFileCannotExist (option_usage_text.apz_str[ 35]) 96 #define zFileMustExist (option_usage_text.apz_str[ 36]) 97 #define zGenshell (option_usage_text.apz_str[ 37]) 97 98 #define zGnuBoolArg (option_usage_text.utpz_GnuBoolArg) 98 #define zGnuBreak (option_usage_text.apz_str[ 3 7])99 #define zGnuBreak (option_usage_text.apz_str[ 38]) 99 100 #define zGnuKeyArg (option_usage_text.utpz_GnuKeyArg) 100 101 #define zGnuFileArg (option_usage_text.utpz_GnuFileArg) 101 102 #define zGnuKeyLArg (option_usage_text.utpz_GnuKeyLArg) 102 103 #define zGnuTimeArg (option_usage_text.utpz_GnuTimeArg) 103 #define zGnuNestArg (option_usage_text.apz_str[ 3 8])104 #define zGnuNestArg (option_usage_text.apz_str[ 39]) 104 105 #define zGnuNumArg (option_usage_text.utpz_GnuNumArg) 105 #define zGnuOptArg (option_usage_text.apz_str[ 39])106 #define zGnuOptFmt (option_usage_text.apz_str[ 4 0])106 #define zGnuOptArg (option_usage_text.apz_str[ 40]) 107 #define zGnuOptFmt (option_usage_text.apz_str[ 41]) 107 108 #define zGnuStrArg (option_usage_text.utpz_GnuStrArg) 108 #define zIllOptChr (option_usage_text.apz_str[ 41]) 109 #define zIllOptStr (option_usage_text.apz_str[ 42]) 110 #define zIllegal (option_usage_text.apz_str[ 43]) 111 #define zIntRange (option_usage_text.apz_str[ 44]) 112 #define zInvalOptDesc (option_usage_text.apz_str[ 45]) 113 #define zLowerBits (option_usage_text.apz_str[ 46]) 114 #define zMembers (option_usage_text.apz_str[ 47]) 115 #define zMisArg (option_usage_text.apz_str[ 48]) 116 #define zMultiEquiv (option_usage_text.apz_str[ 49]) 117 #define zMust (option_usage_text.apz_str[ 50]) 118 #define zNeedOne (option_usage_text.apz_str[ 51]) 119 #define zNoArg (option_usage_text.apz_str[ 52]) 120 #define zNoArgs (option_usage_text.apz_str[ 53]) 121 #define zNoCreat (option_usage_text.apz_str[ 54]) 122 #define zNoFlags (option_usage_text.apz_str[ 55]) 123 #define zNoKey (option_usage_text.apz_str[ 56]) 124 #define zNoLim (option_usage_text.apz_str[ 57]) 125 #define zNoPreset (option_usage_text.apz_str[ 58]) 126 #define zNoResetArg (option_usage_text.apz_str[ 59]) 127 #define zNoRq_NoShrtTtl (option_usage_text.apz_str[ 60]) 128 #define zNoRq_ShrtTtl (option_usage_text.apz_str[ 61]) 129 #define zNoStat (option_usage_text.apz_str[ 62]) 130 #define zNoState (option_usage_text.apz_str[ 63]) 131 #define zNone (option_usage_text.apz_str[ 64]) 132 #define zNotDef (option_usage_text.apz_str[ 65]) 133 #define zNotEnough (option_usage_text.apz_str[ 66]) 134 #define zNotFile (option_usage_text.apz_str[ 67]) 135 #define zNotNumber (option_usage_text.apz_str[ 68]) 136 #define zNrmOptFmt (option_usage_text.apz_str[ 69]) 137 #define zNumberOpt (option_usage_text.apz_str[ 70]) 138 #define zOneSpace (option_usage_text.apz_str[ 71]) 139 #define zOnlyOne (option_usage_text.apz_str[ 72]) 140 #define zOptsOnly (option_usage_text.apz_str[ 73]) 141 #define zPathFmt (option_usage_text.apz_str[ 74]) 142 #define zPlsSendBugs (option_usage_text.apz_str[ 75]) 143 #define zPreset (option_usage_text.apz_str[ 76]) 144 #define zPresetFile (option_usage_text.apz_str[ 77]) 145 #define zPresetIntro (option_usage_text.apz_str[ 78]) 146 #define zProg (option_usage_text.apz_str[ 79]) 147 #define zProhib (option_usage_text.apz_str[ 80]) 148 #define zReorder (option_usage_text.apz_str[ 81]) 149 #define zRange (option_usage_text.apz_str[ 82]) 150 #define zRangeAbove (option_usage_text.apz_str[ 83]) 151 #define zRangeLie (option_usage_text.apz_str[ 84]) 152 #define zRangeBadLie (option_usage_text.apz_str[ 85]) 153 #define zRangeOnly (option_usage_text.apz_str[ 86]) 154 #define zRangeOr (option_usage_text.apz_str[ 87]) 155 #define zRangeErr (option_usage_text.apz_str[ 88]) 156 #define zRangeExact (option_usage_text.apz_str[ 89]) 157 #define zRangeScaled (option_usage_text.apz_str[ 90]) 158 #define zRangeUpto (option_usage_text.apz_str[ 91]) 159 #define zResetNotConfig (option_usage_text.apz_str[ 92]) 160 #define zReqFmt (option_usage_text.apz_str[ 93]) 161 #define zReqOptFmt (option_usage_text.apz_str[ 94]) 162 #define zReqThese (option_usage_text.apz_str[ 95]) 163 #define zReq_NoShrtTtl (option_usage_text.apz_str[ 96]) 164 #define zReq_ShrtTtl (option_usage_text.apz_str[ 97]) 165 #define zSepChars (option_usage_text.apz_str[ 98]) 166 #define zSetMemberSettings (option_usage_text.apz_str[ 99]) 167 #define zShrtGnuOptFmt (option_usage_text.apz_str[100]) 168 #define zSixSpaces (option_usage_text.apz_str[101]) 169 #define zStdBoolArg (option_usage_text.apz_str[102]) 170 #define zStdBreak (option_usage_text.apz_str[103]) 171 #define zStdFileArg (option_usage_text.apz_str[104]) 172 #define zStdKeyArg (option_usage_text.apz_str[105]) 173 #define zStdKeyLArg (option_usage_text.apz_str[106]) 174 #define zStdTimeArg (option_usage_text.apz_str[107]) 175 #define zStdNestArg (option_usage_text.apz_str[108]) 176 #define zStdNoArg (option_usage_text.apz_str[109]) 177 #define zStdNumArg (option_usage_text.apz_str[110]) 178 #define zStdOptArg (option_usage_text.apz_str[111]) 179 #define zStdReqArg (option_usage_text.apz_str[112]) 180 #define zStdStrArg (option_usage_text.apz_str[113]) 181 #define zTabHyp (option_usage_text.apz_str[114]) 182 #define zTabHypAnd (option_usage_text.apz_str[115]) 183 #define zTabout (option_usage_text.apz_str[116]) 184 #define zThreeSpaces (option_usage_text.apz_str[117]) 185 #define zTwoSpaces (option_usage_text.apz_str[118]) 186 #define zUpTo (option_usage_text.apz_str[119]) 187 #define zValidKeys (option_usage_text.apz_str[120]) 109 #define zIllOptChr (option_usage_text.apz_str[ 42]) 110 #define zIllOptStr (option_usage_text.apz_str[ 43]) 111 #define zIllegal (option_usage_text.apz_str[ 44]) 112 #define zIntRange (option_usage_text.apz_str[ 45]) 113 #define zInvalOptDesc (option_usage_text.apz_str[ 46]) 114 #define zLowerBits (option_usage_text.apz_str[ 47]) 115 #define zMembers (option_usage_text.apz_str[ 48]) 116 #define zMisArg (option_usage_text.apz_str[ 49]) 117 #define zMultiEquiv (option_usage_text.apz_str[ 50]) 118 #define zMust (option_usage_text.apz_str[ 51]) 119 #define zNeedOne (option_usage_text.apz_str[ 52]) 120 #define zNoArg (option_usage_text.apz_str[ 53]) 121 #define zNoArgs (option_usage_text.apz_str[ 54]) 122 #define zNoCreat (option_usage_text.apz_str[ 55]) 123 #define zNoFlags (option_usage_text.apz_str[ 56]) 124 #define zNoKey (option_usage_text.apz_str[ 57]) 125 #define zNoLim (option_usage_text.apz_str[ 58]) 126 #define zNoPreset (option_usage_text.apz_str[ 59]) 127 #define zNoResetArg (option_usage_text.apz_str[ 60]) 128 #define zNoRq_NoShrtTtl (option_usage_text.apz_str[ 61]) 129 #define zNoRq_ShrtTtl (option_usage_text.apz_str[ 62]) 130 #define zNoStat (option_usage_text.apz_str[ 63]) 131 #define zNoState (option_usage_text.apz_str[ 64]) 132 #define zNone (option_usage_text.apz_str[ 65]) 133 #define zNotDef (option_usage_text.apz_str[ 66]) 134 #define zNotCmdOpt (option_usage_text.apz_str[ 67]) 135 #define zNotEnough (option_usage_text.apz_str[ 68]) 136 #define zNotFile (option_usage_text.apz_str[ 69]) 137 #define zNotNumber (option_usage_text.apz_str[ 70]) 138 #define zNrmOptFmt (option_usage_text.apz_str[ 71]) 139 #define zNumberOpt (option_usage_text.apz_str[ 72]) 140 #define zOneSpace (option_usage_text.apz_str[ 73]) 141 #define zOnlyOne (option_usage_text.apz_str[ 74]) 142 #define zOptsOnly (option_usage_text.apz_str[ 75]) 143 #define zPathFmt (option_usage_text.apz_str[ 76]) 144 #define zPlsSendBugs (option_usage_text.apz_str[ 77]) 145 #define zPreset (option_usage_text.apz_str[ 78]) 146 #define zPresetFile (option_usage_text.apz_str[ 79]) 147 #define zPresetIntro (option_usage_text.apz_str[ 80]) 148 #define zProg (option_usage_text.apz_str[ 81]) 149 #define zProhib (option_usage_text.apz_str[ 82]) 150 #define zReorder (option_usage_text.apz_str[ 83]) 151 #define zRange (option_usage_text.apz_str[ 84]) 152 #define zRangeAbove (option_usage_text.apz_str[ 85]) 153 #define zRangeLie (option_usage_text.apz_str[ 86]) 154 #define zRangeBadLie (option_usage_text.apz_str[ 87]) 155 #define zRangeOnly (option_usage_text.apz_str[ 88]) 156 #define zRangeOr (option_usage_text.apz_str[ 89]) 157 #define zRangeErr (option_usage_text.apz_str[ 90]) 158 #define zRangeExact (option_usage_text.apz_str[ 91]) 159 #define zRangeScaled (option_usage_text.apz_str[ 92]) 160 #define zRangeUpto (option_usage_text.apz_str[ 93]) 161 #define zResetNotConfig (option_usage_text.apz_str[ 94]) 162 #define zReqFmt (option_usage_text.apz_str[ 95]) 163 #define zReqOptFmt (option_usage_text.apz_str[ 96]) 164 #define zReqThese (option_usage_text.apz_str[ 97]) 165 #define zReq_NoShrtTtl (option_usage_text.apz_str[ 98]) 166 #define zReq_ShrtTtl (option_usage_text.apz_str[ 99]) 167 #define zSepChars (option_usage_text.apz_str[100]) 168 #define zSetMemberSettings (option_usage_text.apz_str[101]) 169 #define zShrtGnuOptFmt (option_usage_text.apz_str[102]) 170 #define zSixSpaces (option_usage_text.apz_str[103]) 171 #define zStdBoolArg (option_usage_text.apz_str[104]) 172 #define zStdBreak (option_usage_text.apz_str[105]) 173 #define zStdFileArg (option_usage_text.apz_str[106]) 174 #define zStdKeyArg (option_usage_text.apz_str[107]) 175 #define zStdKeyLArg (option_usage_text.apz_str[108]) 176 #define zStdTimeArg (option_usage_text.apz_str[109]) 177 #define zStdNestArg (option_usage_text.apz_str[110]) 178 #define zStdNoArg (option_usage_text.apz_str[111]) 179 #define zStdNumArg (option_usage_text.apz_str[112]) 180 #define zStdOptArg (option_usage_text.apz_str[113]) 181 #define zStdReqArg (option_usage_text.apz_str[114]) 182 #define zStdStrArg (option_usage_text.apz_str[115]) 183 #define zTabHyp (option_usage_text.apz_str[116]) 184 #define zTabHypAnd (option_usage_text.apz_str[117]) 185 #define zTabout (option_usage_text.apz_str[118]) 186 #define zThreeSpaces (option_usage_text.apz_str[119]) 187 #define zTwoSpaces (option_usage_text.apz_str[120]) 188 #define zUpTo (option_usage_text.apz_str[121]) 189 #define zValidKeys (option_usage_text.apz_str[122]) 188 190 189 191 /* … … 200 202 static char eng_zGnuNumArg[] = "=num"; 201 203 static char eng_zGnuStrArg[] = "=str"; 202 static char const usage_txt[ 3927] =204 static char const usage_txt[4024] = 203 205 "AutoOpts function called without option descriptor\n\0" 204 206 "\tThis exceeds the compiled library version: \0" … … 207 209 "\tThis is less than the minimum library version: \0" 208 210 "Automated Options version %s\n" 209 "\tcopyright (c) 1999-2008 Bruce Korb - all rights reserved\n\0" 211 "\tcopyright (c) 1999-2009 by Bruce Korb - all rights reserved\n\0" 212 "AutoOpts lib error: defaulted to option with optional arg\n\0" 210 213 "all\0" 211 214 "\t\t\t\t- an alternate for %s\n\0" … … 278 281 "none\0" 279 282 "'%s' not defined\n\0" 283 "'%s' is not a command line option\n\0" 280 284 "ERROR: The %s option must appear %d times\n\0" 281 285 "error: cannot load options from non-regular file %s\n\0" … … 348 352 */ 349 353 usage_text_t option_usage_text = { 350 1 28,354 130, 351 355 eng_zGnuBoolArg, eng_zGnuKeyArg, eng_zGnuFileArg, eng_zGnuKeyLArg, 352 356 eng_zGnuTimeArg, eng_zGnuNumArg, eng_zGnuStrArg, 353 357 { 354 358 usage_txt + 0, usage_txt + 52, usage_txt + 98, usage_txt + 197, 355 usage_txt + 247, usage_txt + 33 5, usage_txt + 339, usage_txt + 366,356 usage_txt + 4 15, usage_txt + 443, usage_txt + 480, usage_txt + 505,357 usage_txt + 5 31, usage_txt + 571, usage_txt + 708, usage_txt + 756,358 usage_txt + 81 0, usage_txt + 852, usage_txt + 876, usage_txt + 902,359 usage_txt + 9 15, usage_txt + 929, usage_txt + 976, usage_txt + 982,360 usage_txt +10 85, usage_txt +1097, usage_txt +1148, usage_txt +1199,361 usage_txt +12 33, usage_txt +1274, usage_txt +1297, usage_txt +1323,362 usage_txt +13 54, usage_txt +1368, usage_txt +1383, usage_txt +1414,363 usage_txt +14 41, usage_txt +1547, usage_txt +1553, usage_txt +1559,364 usage_txt +1 566, usage_txt +1577, usage_txt +1603, usage_txt +1629,365 usage_txt +16 37, usage_txt +1673, usage_txt +1724, usage_txt +1780,366 usage_txt +18 14, usage_txt +1852, usage_txt +1917, usage_txt +1960,367 usage_txt + 1995, usage_txt +2036, usage_txt +2076, usage_txt +2103,368 usage_txt +21 70, usage_txt +2218, usage_txt +2251, usage_txt +2276,369 usage_txt +23 24, usage_txt +2359, usage_txt +2397, usage_txt +2424,370 usage_txt +24 73, usage_txt +2478, usage_txt +2496, usage_txt +2540,371 usage_txt +259 4, usage_txt +2640, usage_txt +2648, usage_txt +2696,372 usage_txt +2 698, usage_txt +2723, usage_txt +2757, usage_txt +2776,373 usage_txt +28 10, usage_txt +2846, usage_txt +2884, usage_txt +2940,374 usage_txt +29 48, usage_txt +2974, usage_txt +3040, usage_txt +3053,375 usage_txt +3 084, usage_txt +3121, usage_txt +3167, usage_txt +3183,376 usage_txt +3 189, usage_txt +3241, usage_txt +3255, usage_txt +3301,377 usage_txt +33 29, usage_txt +3374, usage_txt +3416, usage_txt +3430,378 usage_txt +3 455, usage_txt +3495, usage_txt +3538, usage_txt +3542,379 usage_txt +3 761, usage_txt +3764, usage_txt +3771, usage_txt +3775,380 usage_txt +3 783, usage_txt +3787, usage_txt +3791, usage_txt +3795,381 usage_txt +3 799, usage_txt +3803, usage_txt +3807, usage_txt +3811,382 usage_txt +3 815, usage_txt +3819, usage_txt +3823, usage_txt +3830,383 usage_txt +3 842, usage_txt +3850, usage_txt +3854, usage_txt +3857,384 usage_txt +3 890359 usage_txt + 247, usage_txt + 338, usage_txt + 397, usage_txt + 401, 360 usage_txt + 428, usage_txt + 477, usage_txt + 505, usage_txt + 542, 361 usage_txt + 567, usage_txt + 593, usage_txt + 633, usage_txt + 770, 362 usage_txt + 818, usage_txt + 872, usage_txt + 914, usage_txt + 938, 363 usage_txt + 964, usage_txt + 977, usage_txt + 991, usage_txt +1038, 364 usage_txt +1044, usage_txt +1147, usage_txt +1159, usage_txt +1210, 365 usage_txt +1261, usage_txt +1295, usage_txt +1336, usage_txt +1359, 366 usage_txt +1385, usage_txt +1416, usage_txt +1430, usage_txt +1445, 367 usage_txt +1476, usage_txt +1503, usage_txt +1609, usage_txt +1615, 368 usage_txt +1621, usage_txt +1628, usage_txt +1639, usage_txt +1665, 369 usage_txt +1691, usage_txt +1699, usage_txt +1735, usage_txt +1786, 370 usage_txt +1842, usage_txt +1876, usage_txt +1914, usage_txt +1979, 371 usage_txt +2022, usage_txt +2057, usage_txt +2098, usage_txt +2138, 372 usage_txt +2165, usage_txt +2232, usage_txt +2280, usage_txt +2313, 373 usage_txt +2338, usage_txt +2386, usage_txt +2421, usage_txt +2459, 374 usage_txt +2486, usage_txt +2535, usage_txt +2540, usage_txt +2558, 375 usage_txt +2593, usage_txt +2637, usage_txt +2691, usage_txt +2737, 376 usage_txt +2745, usage_txt +2793, usage_txt +2795, usage_txt +2820, 377 usage_txt +2854, usage_txt +2873, usage_txt +2907, usage_txt +2943, 378 usage_txt +2981, usage_txt +3037, usage_txt +3045, usage_txt +3071, 379 usage_txt +3137, usage_txt +3150, usage_txt +3181, usage_txt +3218, 380 usage_txt +3264, usage_txt +3280, usage_txt +3286, usage_txt +3338, 381 usage_txt +3352, usage_txt +3398, usage_txt +3426, usage_txt +3471, 382 usage_txt +3513, usage_txt +3527, usage_txt +3552, usage_txt +3592, 383 usage_txt +3635, usage_txt +3639, usage_txt +3858, usage_txt +3861, 384 usage_txt +3868, usage_txt +3872, usage_txt +3880, usage_txt +3884, 385 usage_txt +3888, usage_txt +3892, usage_txt +3896, usage_txt +3900, 386 usage_txt +3904, usage_txt +3908, usage_txt +3912, usage_txt +3916, 387 usage_txt +3920, usage_txt +3927, usage_txt +3939, usage_txt +3947, 388 usage_txt +3951, usage_txt +3954, usage_txt +3987 385 389 } 386 390 }; -
trunk/libopts/boolean.c
r2091 r2412 1 1 2 2 /* 3 * $Id: boolean.c,v 4.1 5 2008/08/04 01:01:52bkorb Exp $3 * $Id: boolean.c,v 4.16 2009/08/01 17:43:05 bkorb Exp $ 4 4 * Time-stamp: "2008-08-03 13:06:02 bkorb" 5 5 * … … 11 11 * This file is part of AutoOpts, a companion to AutoGen. 12 12 * AutoOpts is free software. 13 * AutoOpts is copyright (c) 1992-2008 by Bruce Korb - all rights reserved 14 * AutoOpts is copyright (c) 1992-2008 by Bruce Korb - all rights reserved 13 * AutoOpts is copyright (c) 1992-2009 by Bruce Korb - all rights reserved 15 14 * 16 15 * AutoOpts is available under any one of two licenses. The license … … 26 25 * These files have the following md5sums: 27 26 * 28 * 239588c55c22c60ffe159946a760a33epkg/libopts/COPYING.gplv329 * fa82ca978890795162346e661b47161apkg/libopts/COPYING.lgplv327 * 43b91e8ca915626ed3818ffb1b71248b pkg/libopts/COPYING.gplv3 28 * 06a1a2e4760c90ea5e1dad8dfaac4d39 pkg/libopts/COPYING.lgplv3 30 29 * 66a5cedaf62c4b2637025f049f9b826f pkg/libopts/COPYING.mbsd 31 30 */ -
trunk/libopts/compat/compat.h
r2198 r2412 5 5 * Time-stamp: "2008-06-14 09:36:25 bkorb" 6 6 * 7 * $Id: compat.h,v 4.2 0 2008/06/14 22:24:22bkorb Exp $7 * $Id: compat.h,v 4.22 2009/01/01 16:49:26 bkorb Exp $ 8 8 * 9 9 * compat.h is free software. 10 10 * This file is part of AutoGen. 11 11 * 12 * AutoGen copyright (c) 1992-2008 Bruce Korb - all rights reserved 13 * AutoGen copyright (c) 1992-2008 Bruce Korb - all rights reserved 12 * AutoGen copyright (c) 1992-2009 by Bruce Korb - all rights reserved 14 13 * 15 14 * AutoGen is free software: you can redistribute it and/or modify it -
trunk/libopts/compat/pathfind.c
r1892 r2412 6 6 * Author: Gary V Vaughan <gvaughan@oranda.demon.co.uk> 7 7 * Time-stamp: "2006-09-23 19:46:16 bkorb" 8 * Last Modified: $Date: 2007/ 07/04 20:51:18$8 * Last Modified: $Date: 2007/10/07 16:54:54 $ 9 9 * by: bkorb 10 10 * 11 * $Id: pathfind.c,v 4.1 1 2007/07/04 20:51:18bkorb Exp $11 * $Id: pathfind.c,v 4.12 2007/10/07 16:54:54 bkorb Exp $ 12 12 */ 13 13 -
trunk/libopts/compat/windows-config.h
r1892 r2412 1 1 2 2 /* 3 * Time-stamp: "200 7-07-04 09:45:44bkorb"3 * Time-stamp: "2009-07-22 18:53:59 bkorb" 4 4 * by: bkorb 5 * Last Committed: $Date: 200 7/07/04 20:51:18$5 * Last Committed: $Date: 2009/07/23 02:05:55 $ 6 6 * 7 7 * This file is part of AutoGen. 8 8 * 9 * AutoGen copyright (c) 1992-200 7Bruce Korb - all rights reserved9 * AutoGen copyright (c) 1992-2009 by Bruce Korb - all rights reserved 10 10 * 11 11 * AutoGen is free software: you can redistribute it and/or modify it -
trunk/libopts/configfile.c
r2091 r2412 1 1 /* 2 * $Id: configfile.c,v 1.32 2008/08/04 01:01:52bkorb Exp $3 * Time-stamp: "200 8-08-03 11:00:30bkorb"2 * $Id: configfile.c,v 4.47 2009/08/01 17:43:05 bkorb Exp $ 3 * Time-stamp: "2009-01-18 10:21:58 bkorb" 4 4 * 5 5 * configuration/rc/ini file handling. … … 7 7 * This file is part of AutoOpts, a companion to AutoGen. 8 8 * AutoOpts is free software. 9 * AutoOpts is copyright (c) 1992-2008 by Bruce Korb - all rights reserved 10 * AutoOpts is copyright (c) 1992-2008 by Bruce Korb - all rights reserved 9 * AutoOpts is copyright (c) 1992-2009 by Bruce Korb - all rights reserved 11 10 * 12 11 * AutoOpts is available under any one of two licenses. The license … … 22 21 * These files have the following md5sums: 23 22 * 24 * 239588c55c22c60ffe159946a760a33epkg/libopts/COPYING.gplv325 * fa82ca978890795162346e661b47161apkg/libopts/COPYING.lgplv323 * 43b91e8ca915626ed3818ffb1b71248b pkg/libopts/COPYING.gplv3 24 * 06a1a2e4760c90ea5e1dad8dfaac4d39 pkg/libopts/COPYING.lgplv3 26 25 * 66a5cedaf62c4b2637025f049f9b826f pkg/libopts/COPYING.mbsd 27 26 */ … … 754 753 memset(pcNulPoint, ' ', pzData - pcNulPoint); 755 754 756 if ((pOS->pOD->fOptState & OPTST_ARG_TYPE_MASK) == OPARG_TYPE_STRING) { 755 /* 756 * If we are getting a "string" value, the process the XML-ish 757 * %XX hex characters. 758 */ 759 if (valu.valType == OPARG_TYPE_STRING) { 757 760 char * pzSrc = pzData; 758 761 char * pzDst = pzData; … … 799 802 internalFileLoad( tOptions* pOpts ) 800 803 { 801 int idx; 802 int inc = DIRECTION_PRESET; 803 char zFileName[ AG_PATH_MAX+1 ]; 804 uint32_t svfl; 805 int idx; 806 int inc; 807 char zFileName[ AG_PATH_MAX+1 ]; 804 808 805 809 if (pOpts->papzHomeList == NULL) 806 810 return; 811 812 svfl = pOpts->fOptSet; 813 inc = DIRECTION_PRESET; 814 815 /* 816 * Never stop on errors in config files. 817 */ 818 pOpts->fOptSet &= ~OPTPROC_ERRSTOP; 807 819 808 820 /* … … 878 890 } 879 891 } /* twice for every path in the home list, ... */ 892 893 pOpts->fOptSet = svfl; 880 894 } 881 895 -
trunk/libopts/cook.c
r2091 r2412 1 1 /* 2 * $Id: cook.c,v 4.1 6 2008/01/23 00:36:04bkorb Exp $2 * $Id: cook.c,v 4.17 2009/08/01 17:43:06 bkorb Exp $ 3 3 * Time-stamp: "2007-11-16 22:49:11 bkorb" 4 4 * … … 8 8 * This file is part of AutoOpts, a companion to AutoGen. 9 9 * AutoOpts is free software. 10 * AutoOpts is copyright (c) 1992-2008 by Bruce Korb - all rights reserved 11 * AutoOpts is copyright (c) 1992-2008 by Bruce Korb - all rights reserved 10 * AutoOpts is copyright (c) 1992-2009 by Bruce Korb - all rights reserved 12 11 * 13 12 * AutoOpts is available under any one of two licenses. The license … … 23 22 * These files have the following md5sums: 24 23 * 25 * 239588c55c22c60ffe159946a760a33epkg/libopts/COPYING.gplv326 * fa82ca978890795162346e661b47161apkg/libopts/COPYING.lgplv324 * 43b91e8ca915626ed3818ffb1b71248b pkg/libopts/COPYING.gplv3 25 * 06a1a2e4760c90ea5e1dad8dfaac4d39 pkg/libopts/COPYING.lgplv3 27 26 * 66a5cedaf62c4b2637025f049f9b826f pkg/libopts/COPYING.mbsd 28 27 */ -
trunk/libopts/enumeration.c
r2091 r2412 1 1 2 2 /* 3 * $Id: enumeration.c,v 4.2 4 2008/07/28 04:51:29bkorb Exp $3 * $Id: enumeration.c,v 4.26 2009/08/01 17:43:06 bkorb Exp $ 4 4 * Time-stamp: "2008-07-27 12:28:01 bkorb" 5 5 * … … 11 11 * This file is part of AutoOpts, a companion to AutoGen. 12 12 * AutoOpts is free software. 13 * AutoOpts is copyright (c) 1992-2008 by Bruce Korb - all rights reserved 14 * AutoOpts is copyright (c) 1992-2008 by Bruce Korb - all rights reserved 13 * AutoOpts is copyright (c) 1992-2009 by Bruce Korb - all rights reserved 15 14 * 16 15 * AutoOpts is available under any one of two licenses. The license … … 26 25 * These files have the following md5sums: 27 26 * 28 * 239588c55c22c60ffe159946a760a33epkg/libopts/COPYING.gplv329 * fa82ca978890795162346e661b47161apkg/libopts/COPYING.lgplv327 * 43b91e8ca915626ed3818ffb1b71248b pkg/libopts/COPYING.gplv3 28 * 06a1a2e4760c90ea5e1dad8dfaac4d39 pkg/libopts/COPYING.lgplv3 30 29 * 66a5cedaf62c4b2637025f049f9b826f pkg/libopts/COPYING.mbsd 31 30 */ -
trunk/libopts/environment.c
r2091 r2412 1 1 2 2 /* 3 * $Id: environment.c,v 4. 17 2008/06/14 22:24:22bkorb Exp $4 * Time-stamp: "200 7-07-04 11:33:50bkorb"3 * $Id: environment.c,v 4.21 2009/08/01 17:43:06 bkorb Exp $ 4 * Time-stamp: "2009-07-20 20:12:24 bkorb" 5 5 * 6 6 * This file contains all of the routines that must be linked into … … 11 11 * This file is part of AutoOpts, a companion to AutoGen. 12 12 * AutoOpts is free software. 13 * AutoOpts is copyright (c) 1992-2008 by Bruce Korb - all rights reserved 14 * AutoOpts is copyright (c) 1992-2008 by Bruce Korb - all rights reserved 13 * AutoOpts is copyright (c) 1992-2009 by Bruce Korb - all rights reserved 15 14 * 16 15 * AutoOpts is available under any one of two licenses. The license … … 26 25 * These files have the following md5sums: 27 26 * 28 * 239588c55c22c60ffe159946a760a33epkg/libopts/COPYING.gplv329 * fa82ca978890795162346e661b47161apkg/libopts/COPYING.lgplv327 * 43b91e8ca915626ed3818ffb1b71248b pkg/libopts/COPYING.gplv3 28 * 06a1a2e4760c90ea5e1dad8dfaac4d39 pkg/libopts/COPYING.lgplv3 30 29 * 66a5cedaf62c4b2637025f049f9b826f pkg/libopts/COPYING.mbsd 31 30 */ … … 54 53 55 54 /* 56 * IF there is no such environment variable 57 * *or* there is, but we are doing immediate opts and there are 58 * no immediate opts to do (--help inside $PROGNAME is silly, 59 * but --no-load-defs is not, so that is marked) 60 * THEN bail out now. ( 61 */ 62 if ( (pczOptStr == NULL) 63 || ( (type == ENV_IMM) 64 && ((pOpts->fOptSet & OPTPROC_HAS_IMMED) == 0) ) ) 55 * No such beast? Then bail now. 56 */ 57 if (pczOptStr == NULL) 65 58 return; 66 59 … … 95 88 switch (type) { 96 89 case ENV_IMM: 97 /*98 * We know the OPTPROC_HAS_IMMED bit is set.99 */100 90 (void)doImmediateOpts( pOpts ); 101 91 break; 102 92 93 case ENV_ALL: 94 (void)doImmediateOpts( pOpts ); 95 pOpts->curOptIdx = 1; 96 pOpts->pzCurOpt = NULL; 97 /* FALLTHROUGH */ 98 103 99 case ENV_NON_IMM: 104 100 (void)doRegularOpts( pOpts ); 105 break;106 107 default:108 /*109 * Only to immediate opts if the OPTPROC_HAS_IMMED bit is set.110 */111 if (pOpts->fOptSet & OPTPROC_HAS_IMMED) {112 (void)doImmediateOpts( pOpts );113 pOpts->curOptIdx = 1;114 pOpts->pzCurOpt = NULL;115 }116 (void)doRegularOpts( pOpts );117 break;118 101 } 119 102 … … 242 225 * Special handling for ${PROGNAME_LOAD_OPTS} 243 226 */ 244 if (pOpts->specOptIdx.save_opts != 0) { 227 if ( (pOpts->specOptIdx.save_opts != NO_EQUIVALENT) 228 && (pOpts->specOptIdx.save_opts != 0)) { 245 229 st.pOD = pOpts->pOptDesc + pOpts->specOptIdx.save_opts + 1; 246 230 strcpy( pzFlagName, st.pOD->pz_NAME ); -
trunk/libopts/file.c
r2091 r2412 1 1 2 2 /* 3 * $Id: file.c,v 1.6 2008/12/20 18:35:27bkorb Exp $4 * Time-stamp: "200 8-12-06 10:15:33bkorb"3 * $Id: file.c,v 4.9 2009/08/01 17:43:06 bkorb Exp $ 4 * Time-stamp: "2009-07-23 17:23:46 bkorb" 5 5 * 6 6 * This file is part of AutoOpts, a companion to AutoGen. 7 7 * AutoOpts is free software. 8 * AutoOpts is copyright (c) 1992-2008 by Bruce Korb - all rights reserved 9 * AutoOpts is copyright (c) 1992-2008 by Bruce Korb - all rights reserved 8 * AutoOpts is copyright (c) 1992-2009 by Bruce Korb - all rights reserved 10 9 * 11 10 * AutoOpts is available under any one of two licenses. The license … … 21 20 * These files have the following md5sums: 22 21 * 23 * 239588c55c22c60ffe159946a760a33epkg/libopts/COPYING.gplv324 * fa82ca978890795162346e661b47161apkg/libopts/COPYING.lgplv322 * 43b91e8ca915626ed3818ffb1b71248b pkg/libopts/COPYING.gplv3 23 * 06a1a2e4760c90ea5e1dad8dfaac4d39 pkg/libopts/COPYING.lgplv3 25 24 * 66a5cedaf62c4b2637025f049f9b826f pkg/libopts/COPYING.mbsd 26 25 */ … … 99 98 /* NOTREACHED */ 100 99 } 101 *p = '/'; 100 if (p != NULL) 101 *p = DIRCH; 102 102 break; 103 103 } -
trunk/libopts/genshell.c
r2091 r2412 3 3 * DO NOT EDIT THIS FILE (genshell.c) 4 4 * 5 * It has been AutoGen-ed Wednesday December 31, 2008 at 07:07:16 PM PST5 * It has been AutoGen-ed August 8, 2009 at 10:14:45 AM by AutoGen 5.9.9 6 6 * From the definitions genshell.def 7 7 * and the template file options 8 8 * 9 * Generated from AutoOpts 32:0:7templates.9 * Generated from AutoOpts @AO_CURRENT@:@AO_REVISION@:@AO_AGE@ templates. 10 10 */ 11 11 … … 21 21 * This source file is copyrighted and licensed under the following terms: 22 22 * 23 * genshellopt copyright 1999-2007Bruce Korb - all rights reserved23 * genshellopt copyright (c) 1999-2009 Bruce Korb - all rights reserved 24 24 * 25 25 * genshellopt is free software: you can redistribute it and/or modify it … … 52 52 cannot ever change your mind. */ 53 53 tSCC zCopyright[] = 54 "genshellopt copyright (c) 1999-200 7Bruce Korb, all rights reserved";54 "genshellopt copyright (c) 1999-2009 Bruce Korb, all rights reserved"; 55 55 tSCC zCopyrightNotice[610] = 56 56 "genshellopt is free software: you can redistribute it and/or modify it under\n\ … … 211 211 by the newly generated text. The first `#!' line will be regenerated.\n"; 212 212 tSCC zFullVersion[] = GENSHELLOPT_FULL_VERSION; 213 /* extracted from optcode.tpl near line 496*/213 /* extracted from optcode.tpl near line 501 */ 214 214 215 215 #if defined(ENABLE_NLS) … … 264 264 tOptDesc* pOptDesc ) 265 265 { 266 (void)pOptions; 266 267 USAGE( EXIT_SUCCESS ); 267 268 } 268 /* extracted from optcode.tpl near line 6 29*/269 /* extracted from optcode.tpl near line 633 */ 269 270 270 271 #if ENABLE_NLS -
trunk/libopts/genshell.h
r2091 r2412 3 3 * DO NOT EDIT THIS FILE (genshell.h) 4 4 * 5 * It has been AutoGen-ed Wednesday December 31, 2008 at 07:07:16 PM PST5 * It has been AutoGen-ed August 8, 2009 at 10:14:45 AM by AutoGen 5.9.9 6 6 * From the definitions genshell.def 7 7 * and the template file options 8 8 * 9 * Generated from AutoOpts 32:0:7templates.9 * Generated from AutoOpts @AO_CURRENT@:@AO_REVISION@:@AO_AGE@ templates. 10 10 */ 11 11 … … 21 21 * This source file is copyrighted and licensed under the following terms: 22 22 * 23 * genshellopt copyright 1999-2007Bruce Korb - all rights reserved23 * genshellopt copyright (c) 1999-2009 Bruce Korb - all rights reserved 24 24 * 25 25 * genshellopt is free software: you can redistribute it and/or modify it … … 53 53 * template was released. 54 54 */ 55 #define AO_TEMPLATE_VERSION 13107 255 #define AO_TEMPLATE_VERSION 131074 56 56 #if (AO_TEMPLATE_VERSION < OPTIONS_MINIMUM_VERSION) \ 57 57 || (AO_TEMPLATE_VERSION > OPTIONS_STRUCT_VERSION) … … 64 64 */ 65 65 typedef enum { 66 INDEX_OPT_SCRIPT= 0,67 INDEX_OPT_SHELL= 1,68 INDEX_OPT_VERSION =2,69 INDEX_OPT_HELP =3,70 INDEX_OPT_MORE_HELP =466 INDEX_OPT_SCRIPT = 0, 67 INDEX_OPT_SHELL = 1, 68 INDEX_OPT_VERSION = 2, 69 INDEX_OPT_HELP = 3, 70 INDEX_OPT_MORE_HELP = 4 71 71 } teOptIndex; 72 72 … … 115 115 #define START_OPT RESTART_OPT(1) 116 116 #define USAGE(c) (*genshelloptOptions.pUsageProc)( &genshelloptOptions, c ) 117 /* extracted from opthead.tpl near line 4 15*/117 /* extracted from opthead.tpl near line 409 */ 118 118 119 119 /* * * * * * -
trunk/libopts/load.c
r2091 r2412 1 1 2 2 /* 3 * $Id: load.c,v 4. 27 2008/12/20 18:35:27bkorb Exp $3 * $Id: load.c,v 4.38 2009/08/01 17:43:06 bkorb Exp $ 4 4 * Time-stamp: "2008-12-06 10:16:05 bkorb" 5 5 * … … 10 10 * This file is part of AutoOpts, a companion to AutoGen. 11 11 * AutoOpts is free software. 12 * AutoOpts is copyright (c) 1992-2008 by Bruce Korb - all rights reserved 13 * AutoOpts is copyright (c) 1992-2008 by Bruce Korb - all rights reserved 12 * AutoOpts is copyright (c) 1992-2009 by Bruce Korb - all rights reserved 14 13 * 15 14 * AutoOpts is available under any one of two licenses. The license … … 25 24 * These files have the following md5sums: 26 25 * 27 * 239588c55c22c60ffe159946a760a33epkg/libopts/COPYING.gplv328 * fa82ca978890795162346e661b47161apkg/libopts/COPYING.lgplv326 * 43b91e8ca915626ed3818ffb1b71248b pkg/libopts/COPYING.gplv3 27 * 06a1a2e4760c90ea5e1dad8dfaac4d39 pkg/libopts/COPYING.lgplv3 29 28 * 66a5cedaf62c4b2637025f049f9b826f pkg/libopts/COPYING.mbsd 30 29 */ -
trunk/libopts/makeshell.c
r2091 r2412 1 1 2 2 /* 3 * $Id: makeshell.c,v 4. 27 2008/07/28 04:51:29bkorb Exp $3 * $Id: makeshell.c,v 4.30 2009/08/01 17:43:06 bkorb Exp $ 4 4 * Time-stamp: "2008-07-26 16:10:51 bkorb" 5 5 * … … 9 9 * This file is part of AutoOpts, a companion to AutoGen. 10 10 * AutoOpts is free software. 11 * AutoOpts is copyright (c) 1992-2008 by Bruce Korb - all rights reserved 12 * AutoOpts is copyright (c) 1992-2008 by Bruce Korb - all rights reserved 11 * AutoOpts is copyright (c) 1992-2009 by Bruce Korb - all rights reserved 13 12 * 14 13 * AutoOpts is available under any one of two licenses. The license … … 24 23 * These files have the following md5sums: 25 24 * 26 * 239588c55c22c60ffe159946a760a33epkg/libopts/COPYING.gplv327 * fa82ca978890795162346e661b47161apkg/libopts/COPYING.lgplv325 * 43b91e8ca915626ed3818ffb1b71248b pkg/libopts/COPYING.gplv3 26 * 06a1a2e4760c90ea5e1dad8dfaac4d39 pkg/libopts/COPYING.lgplv3 28 27 * 66a5cedaf62c4b2637025f049f9b826f pkg/libopts/COPYING.mbsd 29 28 */ -
trunk/libopts/nested.c
r2091 r2412 1 1 2 2 /* 3 * $Id: nested.c,v 4. 26 2008/08/02 16:10:07bkorb Exp $3 * $Id: nested.c,v 4.32 2009/08/01 17:43:06 bkorb Exp $ 4 4 * Time-stamp: "2008-07-28 19:18:28 bkorb" 5 5 * … … 8 8 * This file is part of AutoOpts, a companion to AutoGen. 9 9 * AutoOpts is free software. 10 * AutoOpts is copyright (c) 1992-2008 by Bruce Korb - all rights reserved 11 * AutoOpts is copyright (c) 1992-2008 by Bruce Korb - all rights reserved 10 * AutoOpts is copyright (c) 1992-2009 by Bruce Korb - all rights reserved 12 11 * 13 12 * AutoOpts is available under any one of two licenses. The license … … 23 22 * These files have the following md5sums: 24 23 * 25 * 239588c55c22c60ffe159946a760a33epkg/libopts/COPYING.gplv326 * fa82ca978890795162346e661b47161apkg/libopts/COPYING.lgplv324 * 43b91e8ca915626ed3818ffb1b71248b pkg/libopts/COPYING.gplv3 25 * 06a1a2e4760c90ea5e1dad8dfaac4d39 pkg/libopts/COPYING.lgplv3 27 26 * 66a5cedaf62c4b2637025f049f9b826f pkg/libopts/COPYING.mbsd 28 27 */ -
trunk/libopts/numeric.c
r2091 r2412 1 1 2 2 /* 3 * $Id: numeric.c,v 4. 19 2008/11/02 18:51:26 bkorb Exp $4 * Time-stamp: "200 8-11-01 14:28:56bkorb"3 * $Id: numeric.c,v 4.22 2009/08/01 17:43:06 bkorb Exp $ 4 * Time-stamp: "2009-07-23 17:25:39 bkorb" 5 5 * 6 6 * This file is part of AutoOpts, a companion to AutoGen. 7 7 * AutoOpts is free software. 8 * AutoOpts is copyright (c) 1992-2008 by Bruce Korb - all rights reserved 9 * AutoOpts is copyright (c) 1992-2008 by Bruce Korb - all rights reserved 8 * AutoOpts is copyright (c) 1992-2009 by Bruce Korb - all rights reserved 10 9 * 11 10 * AutoOpts is available under any one of two licenses. The license … … 21 20 * These files have the following md5sums: 22 21 * 23 * 239588c55c22c60ffe159946a760a33epkg/libopts/COPYING.gplv324 * fa82ca978890795162346e661b47161apkg/libopts/COPYING.lgplv322 * 43b91e8ca915626ed3818ffb1b71248b pkg/libopts/COPYING.gplv3 23 * 06a1a2e4760c90ea5e1dad8dfaac4d39 pkg/libopts/COPYING.lgplv3 25 24 * 66a5cedaf62c4b2637025f049f9b826f pkg/libopts/COPYING.mbsd 26 25 */ … … 41 40 optionShowRange(tOptions* pOpts, tOptDesc* pOD, void * rng_table, int rng_ct) 42 41 { 42 static char const bullet[] = "\t\t\t\t- "; 43 static char const deepin[] = "\t\t\t\t "; 44 static char const onetab[] = "\t"; 45 43 46 const struct {long const rmin, rmax;} * rng = rng_table; 47 44 48 char const * pz_indent = 45 (pOpts != OPTPROC_EMIT_USAGE) ? "\t" : "\t\t\t\t ";49 (pOpts != OPTPROC_EMIT_USAGE) ? onetab : bullet; 46 50 47 51 if ((pOpts == OPTPROC_EMIT_USAGE) || (pOpts > OPTPROC_EMIT_LIMIT)) { … … 59 63 fprintf(option_usage_fp, zRangeScaled, pz_indent); 60 64 61 if (rng_ct > 1) 65 if (rng_ct > 1) { 62 66 fprintf(option_usage_fp, lie_in_range, pz_indent); 63 else { 67 pz_indent = 68 (pOpts != OPTPROC_EMIT_USAGE) ? onetab : deepin; 69 70 } else { 64 71 fprintf(option_usage_fp, zRangeOnly, pz_indent); 72 pz_indent = onetab + 1; /* empty string */ 65 73 } 66 74 … … 82 90 fputs(zRangeOr, option_usage_fp); 83 91 rng++; 92 pz_indent = 93 (pOpts != OPTPROC_EMIT_USAGE) ? onetab : deepin; 84 94 } 85 95 … … 106 116 long val; 107 117 108 if ((pOD->fOptState & OPTST_RESET) != 0)109 return;110 111 118 /* 112 119 * Numeric options may have a range associated with it. 113 120 * If it does, the usage procedure requests that it be 114 * emitted by passing a NULL pOD pointer. 121 * emitted by passing a NULL pOD pointer. Also bail out 122 * if there is no option argument or if we are being reset. 115 123 */ 116 if ((pOD == NULL) || (pOD->optArg.argString == NULL)) 124 if ( (pOD == NULL) 125 || (pOD->optArg.argString == NULL) 126 || ((pOD->fOptState & OPTST_RESET) != 0)) 117 127 return; 118 128 … … 149 159 return; 150 160 151 bad_number: 161 bad_number: 162 152 163 fprintf( stderr, zNotNumber, pOpts->pzProgName, pOD->optArg.argString ); 153 164 if ((pOpts->fOptSet & OPTPROC_ERRSTOP) != 0) -
trunk/libopts/pgusage.c
r2091 r2412 1 1 2 2 /* 3 * $Id: pgusage.c,v 4.1 6 2008/07/28 04:51:30bkorb Exp $3 * $Id: pgusage.c,v 4.18 2009/08/01 17:43:06 bkorb Exp $ 4 4 * Time-stamp: "2008-07-27 21:08:42 bkorb" 5 5 * … … 11 11 * This file is part of AutoOpts, a companion to AutoGen. 12 12 * AutoOpts is free software. 13 * AutoOpts is copyright (c) 1992-2008 by Bruce Korb - all rights reserved 14 * AutoOpts is copyright (c) 1992-2008 by Bruce Korb - all rights reserved 13 * AutoOpts is copyright (c) 1992-2009 by Bruce Korb - all rights reserved 15 14 * 16 15 * AutoOpts is available under any one of two licenses. The license … … 26 25 * These files have the following md5sums: 27 26 * 28 * 239588c55c22c60ffe159946a760a33epkg/libopts/COPYING.gplv329 * fa82ca978890795162346e661b47161apkg/libopts/COPYING.lgplv327 * 43b91e8ca915626ed3818ffb1b71248b pkg/libopts/COPYING.gplv3 28 * 06a1a2e4760c90ea5e1dad8dfaac4d39 pkg/libopts/COPYING.lgplv3 30 29 * 66a5cedaf62c4b2637025f049f9b826f pkg/libopts/COPYING.mbsd 31 30 */ -
trunk/libopts/proto.h
r2091 r2412 2 2 * 3 3 * Prototypes for autoopts 4 * Generated Wed Dec 31 19:07:16 PST 20084 * Generated Sat Aug 8 10:14:45 PDT 2009 5 5 */ 6 6 #ifndef AUTOOPTS_PROTO_H_GUARD -
trunk/libopts/putshell.c
r2091 r2412 1 1 2 2 /* 3 * $Id: putshell.c,v 4.2 5 2008/07/28 04:51:30bkorb Exp $3 * $Id: putshell.c,v 4.27 2009/08/01 17:43:06 bkorb Exp $ 4 4 * Time-stamp: "2008-07-27 12:14:38 bkorb" 5 5 * … … 10 10 * This file is part of AutoOpts, a companion to AutoGen. 11 11 * AutoOpts is free software. 12 * AutoOpts is copyright (c) 1992-2008 by Bruce Korb - all rights reserved 13 * AutoOpts is copyright (c) 1992-2008 by Bruce Korb - all rights reserved 12 * AutoOpts is copyright (c) 1992-2009 by Bruce Korb - all rights reserved 14 13 * 15 14 * AutoOpts is available under any one of two licenses. The license … … 25 24 * These files have the following md5sums: 26 25 * 27 * 239588c55c22c60ffe159946a760a33epkg/libopts/COPYING.gplv328 * fa82ca978890795162346e661b47161apkg/libopts/COPYING.lgplv326 * 43b91e8ca915626ed3818ffb1b71248b pkg/libopts/COPYING.gplv3 27 * 06a1a2e4760c90ea5e1dad8dfaac4d39 pkg/libopts/COPYING.lgplv3 29 28 * 66a5cedaf62c4b2637025f049f9b826f pkg/libopts/COPYING.mbsd 30 29 */ -
trunk/libopts/reset.c
r2091 r2412 1 1 2 2 /* 3 * $Id: reset.c,v 4. 2 2008/08/02 22:50:30bkorb Exp $3 * $Id: reset.c,v 4.7 2009/08/01 17:43:06 bkorb Exp $ 4 4 * Time-stamp: "2008-08-02 12:25:18 bkorb" 5 5 * 6 6 * This file is part of AutoOpts, a companion to AutoGen. 7 7 * AutoOpts is free software. 8 * AutoOpts is copyright (c) 1992-200 8by Bruce Korb - all rights reserved8 * AutoOpts is copyright (c) 1992-2009 by Bruce Korb - all rights reserved 9 9 * 10 10 * AutoOpts is available under any one of two licenses. The license … … 20 20 * These files have the following md5sums: 21 21 * 22 * 239588c55c22c60ffe159946a760a33epkg/libopts/COPYING.gplv323 * fa82ca978890795162346e661b47161apkg/libopts/COPYING.lgplv322 * 43b91e8ca915626ed3818ffb1b71248b pkg/libopts/COPYING.gplv3 23 * 06a1a2e4760c90ea5e1dad8dfaac4d39 pkg/libopts/COPYING.lgplv3 24 24 * 66a5cedaf62c4b2637025f049f9b826f pkg/libopts/COPYING.mbsd 25 25 */ -
trunk/libopts/restore.c
r2091 r2412 1 1 2 2 /* 3 * restore.c $Id: restore.c,v 4.1 3 2008/01/23 00:36:05bkorb Exp $3 * restore.c $Id: restore.c,v 4.14 2009/08/01 17:43:06 bkorb Exp $ 4 4 * Time-stamp: "2007-07-04 11:34:40 bkorb" 5 5 * … … 10 10 * This file is part of AutoOpts, a companion to AutoGen. 11 11 * AutoOpts is free software. 12 * AutoOpts is copyright (c) 1992-2008 by Bruce Korb - all rights reserved 13 * AutoOpts is copyright (c) 1992-2008 by Bruce Korb - all rights reserved 12 * AutoOpts is copyright (c) 1992-2009 by Bruce Korb - all rights reserved 14 13 * 15 14 * AutoOpts is available under any one of two licenses. The license … … 25 24 * These files have the following md5sums: 26 25 * 27 * 239588c55c22c60ffe159946a760a33epkg/libopts/COPYING.gplv328 * fa82ca978890795162346e661b47161apkg/libopts/COPYING.lgplv326 * 43b91e8ca915626ed3818ffb1b71248b pkg/libopts/COPYING.gplv3 27 * 06a1a2e4760c90ea5e1dad8dfaac4d39 pkg/libopts/COPYING.lgplv3 29 28 * 66a5cedaf62c4b2637025f049f9b826f pkg/libopts/COPYING.mbsd 30 29 */ -
trunk/libopts/save.c
r2091 r2412 1 1 2 2 /* 3 * save.c $Id: save.c,v 4. 28 2008/09/28 23:23:36 bkorb Exp $4 * Time-stamp: "200 8-09-23 14:24:58 bkorb"3 * save.c $Id: save.c,v 4.36 2009/08/01 17:43:06 bkorb Exp $ 4 * Time-stamp: "2009-07-20 20:40:28 bkorb" 5 5 * 6 6 * This module's routines will take the currently set options and … … 10 10 * This file is part of AutoOpts, a companion to AutoGen. 11 11 * AutoOpts is free software. 12 * AutoOpts is copyright (c) 1992-2008 by Bruce Korb - all rights reserved 13 * AutoOpts is copyright (c) 1992-2008 by Bruce Korb - all rights reserved 12 * AutoOpts is copyright (c) 1992-2009 by Bruce Korb - all rights reserved 14 13 * 15 14 * AutoOpts is available under any one of two licenses. The license … … 25 24 * These files have the following md5sums: 26 25 * 27 * 239588c55c22c60ffe159946a760a33epkg/libopts/COPYING.gplv328 * fa82ca978890795162346e661b47161apkg/libopts/COPYING.lgplv326 * 43b91e8ca915626ed3818ffb1b71248b pkg/libopts/COPYING.gplv3 27 * 06a1a2e4760c90ea5e1dad8dfaac4d39 pkg/libopts/COPYING.lgplv3 29 28 * 66a5cedaf62c4b2637025f049f9b826f pkg/libopts/COPYING.mbsd 30 29 */ … … 83 82 tCC* pzDir; 84 83 85 if (pOpts->specOptIdx.save_opts == 0) 84 if ( (pOpts->specOptIdx.save_opts == NO_EQUIVALENT) 85 || (pOpts->specOptIdx.save_opts == 0)) 86 86 return NULL; 87 87 -
trunk/libopts/sort.c
r2091 r2412 1 1 2 2 /* 3 * sort.c $Id: sort.c,v 4.1 4 2008/06/14 22:24:22bkorb Exp $3 * sort.c $Id: sort.c,v 4.17 2009/08/01 17:43:06 bkorb Exp $ 4 4 * Time-stamp: "2007-07-04 11:34:52 bkorb" 5 5 * … … 8 8 * This file is part of AutoOpts, a companion to AutoGen. 9 9 * AutoOpts is free software. 10 * AutoOpts is copyright (c) 1992-2008 by Bruce Korb - all rights reserved 11 * AutoOpts is copyright (c) 1992-2008 by Bruce Korb - all rights reserved 10 * AutoOpts is copyright (c) 1992-2009 by Bruce Korb - all rights reserved 12 11 * 13 12 * AutoOpts is available under any one of two licenses. The license … … 23 22 * These files have the following md5sums: 24 23 * 25 * 239588c55c22c60ffe159946a760a33epkg/libopts/COPYING.gplv326 * fa82ca978890795162346e661b47161apkg/libopts/COPYING.lgplv324 * 43b91e8ca915626ed3818ffb1b71248b pkg/libopts/COPYING.gplv3 25 * 06a1a2e4760c90ea5e1dad8dfaac4d39 pkg/libopts/COPYING.lgplv3 27 26 * 66a5cedaf62c4b2637025f049f9b826f pkg/libopts/COPYING.mbsd 28 27 */ -
trunk/libopts/stack.c
r2091 r2412 2 2 /* 3 3 * stack.c 4 * $Id: stack.c,v 4.1 7 2008/08/02 16:10:07bkorb Exp $4 * $Id: stack.c,v 4.19 2009/08/01 17:43:06 bkorb Exp $ 5 5 * Time-stamp: "2008-07-30 16:56:32 bkorb" 6 6 * … … 10 10 * This file is part of AutoOpts, a companion to AutoGen. 11 11 * AutoOpts is free software. 12 * AutoOpts is copyright (c) 1992-2008 by Bruce Korb - all rights reserved 13 * AutoOpts is copyright (c) 1992-2008 by Bruce Korb - all rights reserved 12 * AutoOpts is copyright (c) 1992-2009 by Bruce Korb - all rights reserved 14 13 * 15 14 * AutoOpts is available under any one of two licenses. The license … … 25 24 * These files have the following md5sums: 26 25 * 27 * 239588c55c22c60ffe159946a760a33epkg/libopts/COPYING.gplv328 * fa82ca978890795162346e661b47161apkg/libopts/COPYING.lgplv326 * 43b91e8ca915626ed3818ffb1b71248b pkg/libopts/COPYING.gplv3 27 * 06a1a2e4760c90ea5e1dad8dfaac4d39 pkg/libopts/COPYING.lgplv3 29 28 * 66a5cedaf62c4b2637025f049f9b826f pkg/libopts/COPYING.mbsd 30 29 */ -
trunk/libopts/streqvcmp.c
r2091 r2412 1 1 2 2 /* 3 * $Id: streqvcmp.c,v 4.1 4 2008/12/29 06:14:25bkorb Exp $3 * $Id: streqvcmp.c,v 4.17 2009/08/01 17:43:06 bkorb Exp $ 4 4 * Time-stamp: "2008-12-26 10:15:46 bkorb" 5 5 * … … 13 13 * This file is part of AutoOpts, a companion to AutoGen. 14 14 * AutoOpts is free software. 15 * AutoOpts is copyright (c) 1992-2008 by Bruce Korb - all rights reserved 16 * AutoOpts is copyright (c) 1992-2008 by Bruce Korb - all rights reserved 15 * AutoOpts is copyright (c) 1992-2009 by Bruce Korb - all rights reserved 17 16 * 18 17 * AutoOpts is available under any one of two licenses. The license … … 28 27 * These files have the following md5sums: 29 28 * 30 * 239588c55c22c60ffe159946a760a33epkg/libopts/COPYING.gplv331 * fa82ca978890795162346e661b47161apkg/libopts/COPYING.lgplv329 * 43b91e8ca915626ed3818ffb1b71248b pkg/libopts/COPYING.gplv3 30 * 06a1a2e4760c90ea5e1dad8dfaac4d39 pkg/libopts/COPYING.lgplv3 32 31 * 66a5cedaf62c4b2637025f049f9b826f pkg/libopts/COPYING.mbsd 33 32 * -
trunk/libopts/text_mmap.c
r2091 r2412 1 1 /* 2 * $Id: text_mmap.c,v 4. 18 2008/01/23 00:36:05bkorb Exp $2 * $Id: text_mmap.c,v 4.21 2009/08/01 17:43:06 bkorb Exp $ 3 3 * 4 4 * Time-stamp: "2007-07-04 11:35:49 bkorb" … … 6 6 * This file is part of AutoOpts, a companion to AutoGen. 7 7 * AutoOpts is free software. 8 * AutoOpts is copyright (c) 1992-2008 by Bruce Korb - all rights reserved 9 * AutoOpts is copyright (c) 1992-2008 by Bruce Korb - all rights reserved 8 * AutoOpts is copyright (c) 1992-2009 by Bruce Korb - all rights reserved 10 9 * 11 10 * AutoOpts is available under any one of two licenses. The license … … 21 20 * These files have the following md5sums: 22 21 * 23 * 239588c55c22c60ffe159946a760a33epkg/libopts/COPYING.gplv324 * fa82ca978890795162346e661b47161apkg/libopts/COPYING.lgplv322 * 43b91e8ca915626ed3818ffb1b71248b pkg/libopts/COPYING.gplv3 23 * 06a1a2e4760c90ea5e1dad8dfaac4d39 pkg/libopts/COPYING.lgplv3 25 24 * 66a5cedaf62c4b2637025f049f9b826f pkg/libopts/COPYING.mbsd 26 25 */ -
trunk/libopts/time.c
r2091 r2412 1 1 2 2 /* 3 * $Id: time.c,v 4. 2 2008/11/16 23:56:59bkorb Exp $3 * $Id: time.c,v 4.5 2009/08/01 17:43:06 bkorb Exp $ 4 4 * Time-stamp: "2008-11-16 14:51:48 bkorb" 5 5 * 6 6 * This file is part of AutoOpts, a companion to AutoGen. 7 7 * AutoOpts is free software. 8 * AutoOpts is copyright (c) 1992-2008 by Bruce Korb - all rights reserved 9 * AutoOpts is copyright (c) 1992-2008 by Bruce Korb - all rights reserved 8 * AutoOpts is copyright (c) 1992-2009 by Bruce Korb - all rights reserved 10 9 * 11 10 * AutoOpts is available under any one of two licenses. The license … … 21 20 * These files have the following md5sums: 22 21 * 23 * 239588c55c22c60ffe159946a760a33epkg/libopts/COPYING.gplv324 * fa82ca978890795162346e661b47161apkg/libopts/COPYING.lgplv322 * 43b91e8ca915626ed3818ffb1b71248b pkg/libopts/COPYING.gplv3 23 * 06a1a2e4760c90ea5e1dad8dfaac4d39 pkg/libopts/COPYING.lgplv3 25 24 * 66a5cedaf62c4b2637025f049f9b826f pkg/libopts/COPYING.mbsd 26 25 */ -
trunk/libopts/tokenize.c
r2091 r2412 5 5 * This file is part of AutoOpts, a companion to AutoGen. 6 6 * AutoOpts is free software. 7 * AutoOpts is copyright (c) 1992-2008 by Bruce Korb - all rights reserved 8 * AutoOpts is copyright (c) 1992-2008 by Bruce Korb - all rights reserved 7 * AutoOpts is copyright (c) 1992-2009 by Bruce Korb - all rights reserved 9 8 * 10 9 * AutoOpts is available under any one of two licenses. The license … … 20 19 * These files have the following md5sums: 21 20 * 22 * 239588c55c22c60ffe159946a760a33epkg/libopts/COPYING.gplv323 * fa82ca978890795162346e661b47161apkg/libopts/COPYING.lgplv321 * 43b91e8ca915626ed3818ffb1b71248b pkg/libopts/COPYING.gplv3 22 * 06a1a2e4760c90ea5e1dad8dfaac4d39 pkg/libopts/COPYING.lgplv3 24 23 * 66a5cedaf62c4b2637025f049f9b826f pkg/libopts/COPYING.mbsd 25 24 */ -
trunk/libopts/usage.c
r2091 r2412 1 1 2 2 /* 3 * usage.c $Id: usage.c,v 4. 28 2008/11/02 18:51:27bkorb Exp $4 * Time-stamp: "200 8-11-01 20:09:17bkorb"3 * usage.c $Id: usage.c,v 4.30 2009/08/01 17:43:06 bkorb Exp $ 4 * Time-stamp: "2009-01-17 13:18:23 bkorb" 5 5 * 6 6 * This module implements the default usage procedure for … … 16 16 * This file is part of AutoOpts, a companion to AutoGen. 17 17 * AutoOpts is free software. 18 * AutoOpts is copyright (c) 1992-2008 by Bruce Korb - all rights reserved 19 * AutoOpts is copyright (c) 1992-2008 by Bruce Korb - all rights reserved 18 * AutoOpts is copyright (c) 1992-2009 by Bruce Korb - all rights reserved 20 19 * 21 20 * AutoOpts is available under any one of two licenses. The license … … 31 30 * These files have the following md5sums: 32 31 * 33 * 239588c55c22c60ffe159946a760a33epkg/libopts/COPYING.gplv334 * fa82ca978890795162346e661b47161apkg/libopts/COPYING.lgplv332 * 43b91e8ca915626ed3818ffb1b71248b pkg/libopts/COPYING.gplv3 33 * 06a1a2e4760c90ea5e1dad8dfaac4d39 pkg/libopts/COPYING.lgplv3 35 34 * 66a5cedaf62c4b2637025f049f9b826f pkg/libopts/COPYING.mbsd 36 35 */ … … 551 550 552 551 do { 553 if ((pOD->fOptState & OPTST_ OMITTED) != 0)552 if ((pOD->fOptState & OPTST_NO_USAGE_MASK) != 0) 554 553 continue; 555 554 -
trunk/libopts/value-type.c
r2091 r2412 1 /* ANSI-C code produced by gperf version 3.0. 3*/1 /* ANSI-C code produced by gperf version 3.0.2 */ 2 2 3 3 … … 92 92 93 93 #ifdef __GNUC__ 94 #ifdef __GNUC_STDC_INLINE__95 __attribute__ ((__gnu_inline__))96 #endif97 94 #endif 98 95 static inline const value_type_map_t * -
trunk/libopts/value-type.h
r2091 r2412 1 1 /* 2 * Generated header for gperf generated source Wed Dec 31 19:07:31 PST 20082 * Generated header for gperf generated source Sat Aug 8 10:14:55 PDT 2009 3 3 * This file enumerates the list of names and declares the 4 4 * procedure for mapping string names to the enum value. -
trunk/libopts/version.c
r2091 r2412 1 1 2 /* $Id: version.c,v 4.1 5 2008/07/28 04:51:30bkorb Exp $2 /* $Id: version.c,v 4.19 2009/08/01 17:43:06 bkorb Exp $ 3 3 * Time-stamp: "2008-07-27 10:11:30 bkorb" 4 4 * … … 10 10 * This file is part of AutoOpts, a companion to AutoGen. 11 11 * AutoOpts is free software. 12 * AutoOpts is copyright (c) 1992-2008 by Bruce Korb - all rights reserved 13 * AutoOpts is copyright (c) 1992-2008 by Bruce Korb - all rights reserved 12 * AutoOpts is copyright (c) 1992-2009 by Bruce Korb - all rights reserved 14 13 * 15 14 * AutoOpts is available under any one of two licenses. The license … … 25 24 * These files have the following md5sums: 26 25 * 27 * 239588c55c22c60ffe159946a760a33epkg/libopts/COPYING.gplv328 * fa82ca978890795162346e661b47161apkg/libopts/COPYING.lgplv326 * 43b91e8ca915626ed3818ffb1b71248b pkg/libopts/COPYING.gplv3 27 * 06a1a2e4760c90ea5e1dad8dfaac4d39 pkg/libopts/COPYING.lgplv3 29 28 * 66a5cedaf62c4b2637025f049f9b826f pkg/libopts/COPYING.mbsd 30 29 */ -
trunk/libopts/xat-attribute.c
r2091 r2412 1 /* ANSI-C code produced by gperf version 3.0. 3*/1 /* ANSI-C code produced by gperf version 3.0.2 */ 2 2 3 3 … … 83 83 84 84 #ifdef __GNUC__ 85 #ifdef __GNUC_STDC_INLINE__86 __attribute__ ((__gnu_inline__))87 #endif88 85 #endif 89 86 static inline const xat_attribute_map_t * -
trunk/libopts/xat-attribute.h
r2091 r2412 1 1 /* 2 * Generated header for gperf generated source Wed Dec 31 19:07:31 PST 20082 * Generated header for gperf generated source Sat Aug 8 10:14:55 PDT 2009 3 3 * This file enumerates the list of names and declares the 4 4 * procedure for mapping string names to the enum value.
Note: See TracChangeset
for help on using the changeset viewer.
