+* Updated to AutoGen-5.9.9pre2.
(4.2.5p191) 2009/07/21 Released by Harlan Stenn <stenn@ntp.org>
* Updated to AutoGen-5.9.9pre1.
(4.2.5p190) 2009/07/20 Released by Harlan Stenn <stenn@ntp.org>
LICENSING:
-This material is copyright 1993-2007 by Bruce Korb.
+This material is copyright (c) 1993-2009 by Bruce Korb.
You are licensed to use this under the terms of either
the GNU Lesser General Public License (see: COPYING.lgpl), or,
at your option, the modified Berkeley Software Distribution
/*
- * Character mapping generated 07/20/09 21:05:27
+ * Character mapping generated 07/23/09 17:36:47
*
* This file contains the character classifications
* used by AutoGen and AutoOpts for identifying tokens.
/*
- * $Id: autoopts.c,v 4.39 2009/01/25 19:31:59 bkorb Exp $
+ * $Id: autoopts.c,v 4.44 2009/01/25 19:31:56 bkorb Exp $
* Time-stamp: "2009-01-12 02:49:49 bkorb"
*
* This file contains all of the routines that must be linked into
/*
* Time-stamp: "2008-11-01 20:08:06 bkorb"
*
- * autoopts.h $Id: autoopts.h,v 4.30 2009/01/01 16:51:47 bkorb Exp $
+ * autoopts.h $Id: autoopts.h,v 4.41 2009/01/01 16:49:26 bkorb Exp $
*
* This file defines all the global structures and special values
* used in the automated option processing library.
*
* DO NOT EDIT THIS FILE (options.h)
*
- * It has been AutoGen-ed Monday July 20, 2009 at 09:05:14 PM PDT
+ * It has been AutoGen-ed Thursday July 23, 2009 at 05:36:34 PM PDT
* From the definitions funcs.def
* and the template file options_h
*
* This file defines all the global structures and special values
* used in the automated option processing library.
*
- * Automated Options copyright 1992-Y Bruce Korb
+ * Automated Options copyright (c) 1992-Y by Bruce Korb
*
* AutoOpts is free software: you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
*
* DO NOT EDIT THIS FILE (usage-txt.h)
*
- * It has been AutoGen-ed Monday July 20, 2009 at 09:05:13 PM PDT
+ * It has been AutoGen-ed Thursday July 23, 2009 at 05:36:33 PM PDT
* From the definitions usage-txt.def
* and the template file usage-txt.tpl
*
/*
- * $Id: boolean.c,v 4.16 2009/01/01 16:51:47 bkorb Exp $
+ * $Id: boolean.c,v 4.15 2009/01/01 16:49:26 bkorb Exp $
* Time-stamp: "2008-08-03 13:06:02 bkorb"
*
* Automated Options Paged Usage module.
*
* Time-stamp: "2008-06-14 09:36:25 bkorb"
*
- * $Id: compat.h,v 4.21 2009/01/01 16:51:52 bkorb Exp $
+ * $Id: compat.h,v 4.22 2009/01/01 16:49:26 bkorb Exp $
*
* compat.h is free software.
* This file is part of AutoGen.
/*
* Author: Gary V Vaughan <gvaughan@oranda.demon.co.uk>
* Time-stamp: "2006-09-23 19:46:16 bkorb"
- * Last Modified: $Date: 2007/07/04 20:51:18 $
+ * Last Modified: $Date: 2007/10/07 16:54:54 $
* by: bkorb
*
- * $Id: pathfind.c,v 4.11 2007/07/04 20:51:18 bkorb Exp $
+ * $Id: pathfind.c,v 4.12 2007/10/07 16:54:54 bkorb Exp $
*/
/* Code: */
/*
- * Time-stamp: "2007-07-04 09:45:44 bkorb"
+ * Time-stamp: "2009-07-22 18:53:59 bkorb"
* by: bkorb
- * Last Committed: $Date: 2007/07/04 20:51:18 $
+ * Last Committed: $Date: 2009/07/23 02:05:55 $
*
* This file is part of AutoGen.
*
- * AutoGen copyright (c) 1992-2007 Bruce Korb - all rights reserved
+ * AutoGen copyright (c) 1992-2009 by Bruce Korb - all rights reserved
*
* AutoGen is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
/*
- * $Id: configfile.c,v 1.35 2009/01/18 22:48:51 bkorb Exp $
+ * $Id: configfile.c,v 4.46 2009/01/18 22:48:51 bkorb Exp $
* Time-stamp: "2009-01-18 10:21:58 bkorb"
*
* configuration/rc/ini file handling.
/*
- * $Id: cook.c,v 4.17 2009/01/01 16:51:47 bkorb Exp $
+ * $Id: cook.c,v 4.16 2009/01/01 16:49:26 bkorb Exp $
* Time-stamp: "2007-11-16 22:49:11 bkorb"
*
* This file contains the routines that deal with processing quoted strings
/*
- * $Id: enumeration.c,v 4.25 2009/01/01 16:51:47 bkorb Exp $
+ * $Id: enumeration.c,v 4.25 2009/01/01 16:49:26 bkorb Exp $
* Time-stamp: "2008-07-27 12:28:01 bkorb"
*
* Automated Options Paged Usage module.
/*
- * $Id: environment.c,v 4.20 2009/07/21 03:23:12 bkorb Exp $
+ * $Id: environment.c,v 4.20 2009/07/21 03:21:57 bkorb Exp $
* Time-stamp: "2009-07-20 20:12:24 bkorb"
*
* This file contains all of the routines that must be linked into
/*
- * $Id: file.c,v 1.7 2009/01/01 16:51:47 bkorb Exp $
- * Time-stamp: "2008-12-06 10:15:33 bkorb"
+ * $Id: file.c,v 4.7 2009/01/01 16:49:26 bkorb Exp $
+ * Time-stamp: "2009-07-23 17:23:46 bkorb"
*
* This file is part of AutoOpts, a companion to AutoGen.
* AutoOpts is free software.
pOpts->pUsageProc(pOpts, EXIT_FAILURE);
/* NOTREACHED */
}
- *p = '/';
+ if (p != NULL)
+ *p = DIRCH;
break;
}
*
* DO NOT EDIT THIS FILE (genshell.c)
*
- * It has been AutoGen-ed Monday July 20, 2009 at 09:05:14 PM PDT
+ * It has been AutoGen-ed Thursday July 23, 2009 at 05:36:35 PM PDT
* From the definitions genshell.def
* and the template file options
*
*
* DO NOT EDIT THIS FILE (genshell.h)
*
- * It has been AutoGen-ed Monday July 20, 2009 at 09:05:14 PM PDT
+ * It has been AutoGen-ed Thursday July 23, 2009 at 05:36:35 PM PDT
* From the definitions genshell.def
* and the template file options
*
/*
- * $Id: load.c,v 4.28 2009/01/01 16:51:48 bkorb Exp $
+ * $Id: load.c,v 4.37 2009/01/01 16:49:26 bkorb Exp $
* Time-stamp: "2008-12-06 10:16:05 bkorb"
*
* This file contains the routines that deal with processing text strings
dnl
dnl DO NOT EDIT THIS FILE (libopts.m4)
dnl
-dnl It has been AutoGen-ed Monday July 20, 2009 at 09:05:16 PM PDT
+dnl It has been AutoGen-ed Thursday July 23, 2009 at 05:36:36 PM PDT
dnl From the definitions libopts.def
dnl and the template file conftest.tpl
dnl
dnl @synopsis LIBOPTS_CHECK
dnl
-dnl Time-stamp: "2007-07-04 11:41:40 bkorb"
-dnl Last Committed: $Date: 2007/07/04 20:51:20 $
+dnl Time-stamp: "2009-07-22 18:50:49 bkorb"
+dnl Last Committed: $Date: 2009/07/23 02:05:55 $
dnl
dnl If autoopts-config works, add the linking information to LIBS.
dnl Otherwise, add ``libopts-${ao_rev}'' to SUBDIRS and run all
dnl "INVOKE_LIBOPTS_MACROS" macro iff we are building libopts.
dnl
dnl This file is part of AutoGen.
-dnl AutoGen copyright (c) 1992-2007 Bruce Korb - all rights reserved
+dnl AutoGen copyright (c) 1992-2009 by Bruce Korb - all rights reserved
dnl
dnl AutoGen is free software: you can redistribute it and/or modify it
dnl under the terms of the GNU General Public License as published by the
# liboptschk.m4 serial 1 (autogen - 5.7.3)
-dnl copyright (c) 2005 by Bruce Korb - all rights reserved
+dnl copyright (c) 2005-2009 by Bruce Korb - all rights reserved
+dnl
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
-dnl Time-stamp: "2006-09-23 19:42:31 bkorb"
-dnl Last Committed: $Date: 2007/07/04 20:51:18 $
+dnl Time-stamp: "2009-07-22 18:53:27 bkorb"
+dnl Last Committed: $Date: 2009/07/23 02:05:55 $
dnl This file can can be used in projects which are not available under
dnl the GNU General Public License or the GNU Library General Public
/*
- * $Id: makeshell.c,v 4.28 2009/01/01 16:51:48 bkorb Exp $
+ * $Id: makeshell.c,v 4.29 2009/01/01 16:49:26 bkorb Exp $
* Time-stamp: "2008-07-26 16:10:51 bkorb"
*
* This module will interpret the options set in the tOptions
/*
- * $Id: nested.c,v 4.27 2009/01/01 16:51:48 bkorb Exp $
+ * $Id: nested.c,v 4.31 2009/01/01 16:49:26 bkorb Exp $
* Time-stamp: "2008-07-28 19:18:28 bkorb"
*
* Automated Options Nested Values module.
/*
- * $Id: numeric.c,v 4.21 2009/01/17 22:08:07 bkorb Exp $
- * Time-stamp: "2009-01-11 18:05:28 bkorb"
+ * $Id: numeric.c,v 4.20 2009/01/17 22:08:09 bkorb Exp $
+ * Time-stamp: "2009-07-23 17:25:39 bkorb"
*
* This file is part of AutoOpts, a companion to AutoGen.
* AutoOpts is free software.
char* pz;
long val;
- if ((pOD->fOptState & OPTST_RESET) != 0)
- return;
-
/*
* Numeric options may have a range associated with it.
* If it does, the usage procedure requests that it be
- * emitted by passing a NULL pOD pointer.
+ * emitted by passing a NULL pOD pointer. Also bail out
+ * if there is no option argument or if we are being reset.
*/
- if ((pOD == NULL) || (pOD->optArg.argString == NULL))
+ if ( (pOD == NULL)
+ || (pOD->optArg.argString == NULL)
+ || ((pOD->fOptState & OPTST_RESET) != 0))
return;
errno = 0;
pOD->optArg.argInt = val;
return;
-bad_number:
+ bad_number:
+
fprintf( stderr, zNotNumber, pOpts->pzProgName, pOD->optArg.argString );
if ((pOpts->fOptSet & OPTPROC_ERRSTOP) != 0)
(*(pOpts->pUsageProc))(pOpts, EXIT_FAILURE);
/*
- * $Id: pgusage.c,v 4.17 2009/01/01 16:51:49 bkorb Exp $
+ * $Id: pgusage.c,v 4.17 2009/01/01 16:49:26 bkorb Exp $
* Time-stamp: "2008-07-27 21:08:42 bkorb"
*
* Automated Options Paged Usage module.
/* -*- buffer-read-only: t -*- vi: set ro:
*
* Prototypes for autoopts
- * Generated Mon Jul 20 21:05:15 PDT 2009
+ * Generated Thu Jul 23 17:36:35 PDT 2009
*/
#ifndef AUTOOPTS_PROTO_H_GUARD
#define AUTOOPTS_PROTO_H_GUARD 1
/*
- * $Id: putshell.c,v 4.26 2009/01/01 16:51:49 bkorb Exp $
+ * $Id: putshell.c,v 4.26 2009/01/01 16:49:26 bkorb Exp $
* Time-stamp: "2008-07-27 12:14:38 bkorb"
*
* This module will interpret the options set in the tOptions
/*
- * $Id: reset.c,v 4.3 2009/01/01 16:51:49 bkorb Exp $
+ * $Id: reset.c,v 4.6 2009/01/01 16:49:26 bkorb Exp $
* Time-stamp: "2008-08-02 12:25:18 bkorb"
*
* This file is part of AutoOpts, a companion to AutoGen.
/*
- * restore.c $Id: restore.c,v 4.14 2009/01/01 16:51:49 bkorb Exp $
+ * restore.c $Id: restore.c,v 4.13 2009/01/01 16:49:26 bkorb Exp $
* Time-stamp: "2007-07-04 11:34:40 bkorb"
*
* This module's routines will save the current option state to memory
/*
- * save.c $Id: save.c,v 4.31 2009/07/21 04:01:29 bkorb Exp $
+ * save.c $Id: save.c,v 4.35 2009/07/21 04:01:30 bkorb Exp $
* Time-stamp: "2009-07-20 20:40:28 bkorb"
*
* This module's routines will take the currently set options and
/*
- * sort.c $Id: sort.c,v 4.15 2009/01/01 16:51:49 bkorb Exp $
+ * sort.c $Id: sort.c,v 4.16 2009/01/01 16:49:26 bkorb Exp $
* Time-stamp: "2007-07-04 11:34:52 bkorb"
*
* This module implements argument sorting.
/*
* stack.c
- * $Id: stack.c,v 4.18 2009/01/01 16:51:49 bkorb Exp $
+ * $Id: stack.c,v 4.18 2009/01/01 16:49:26 bkorb Exp $
* Time-stamp: "2008-07-30 16:56:32 bkorb"
*
* This is a special option processing routine that will save the
/*
- * $Id: streqvcmp.c,v 4.15 2009/01/01 16:51:49 bkorb Exp $
+ * $Id: streqvcmp.c,v 4.16 2009/01/01 16:49:26 bkorb Exp $
* Time-stamp: "2008-12-26 10:15:46 bkorb"
*
* String Equivalence Comparison
/*
- * $Id: text_mmap.c,v 4.19 2009/01/01 16:51:49 bkorb Exp $
+ * $Id: text_mmap.c,v 4.20 2009/01/01 16:49:26 bkorb Exp $
*
* Time-stamp: "2007-07-04 11:35:49 bkorb"
*
/*
- * $Id: time.c,v 4.3 2009/01/01 16:51:50 bkorb Exp $
+ * $Id: time.c,v 4.4 2009/01/01 16:49:26 bkorb Exp $
* Time-stamp: "2008-11-16 14:51:48 bkorb"
*
* This file is part of AutoOpts, a companion to AutoGen.
/*
- * usage.c $Id: usage.c,v 4.30 2009/01/17 22:08:07 bkorb Exp $
+ * usage.c $Id: usage.c,v 4.29 2009/01/17 22:08:09 bkorb Exp $
* Time-stamp: "2009-01-17 13:18:23 bkorb"
*
* This module implements the default usage procedure for
/*
- * Generated header for gperf generated source Mon Jul 20 21:05:28 PDT 2009
+ * Generated header for gperf generated source Thu Jul 23 17:36:47 PDT 2009
* This file enumerates the list of names and declares the
* procedure for mapping string names to the enum value.
*/
-/* $Id: version.c,v 4.16 2009/01/01 16:51:50 bkorb Exp $
+/* $Id: version.c,v 4.18 2009/01/01 16:49:26 bkorb Exp $
* Time-stamp: "2008-07-27 10:11:30 bkorb"
*
* This module implements the default usage procedure for
/*
- * Generated header for gperf generated source Mon Jul 20 21:05:28 PDT 2009
+ * Generated header for gperf generated source Thu Jul 23 17:36:47 PDT 2009
* This file enumerates the list of names and declares the
* procedure for mapping string names to the enum value.
*/
LICENSING:
-This material is copyright 1993-2007 by Bruce Korb.
+This material is copyright (c) 1993-2009 by Bruce Korb.
You are licensed to use this under the terms of either
the GNU Lesser General Public License (see: COPYING.lgpl), or,
at your option, the modified Berkeley Software Distribution
/*
- * Character mapping generated 07/20/09 21:05:27
+ * Character mapping generated 07/23/09 17:36:47
*
* This file contains the character classifications
* used by AutoGen and AutoOpts for identifying tokens.
/*
- * $Id: autoopts.c,v 4.39 2009/01/25 19:31:59 bkorb Exp $
+ * $Id: autoopts.c,v 4.44 2009/01/25 19:31:56 bkorb Exp $
* Time-stamp: "2009-01-12 02:49:49 bkorb"
*
* This file contains all of the routines that must be linked into
/*
* Time-stamp: "2008-11-01 20:08:06 bkorb"
*
- * autoopts.h $Id: autoopts.h,v 4.30 2009/01/01 16:51:47 bkorb Exp $
+ * autoopts.h $Id: autoopts.h,v 4.41 2009/01/01 16:49:26 bkorb Exp $
*
* This file defines all the global structures and special values
* used in the automated option processing library.
*
* DO NOT EDIT THIS FILE (options.h)
*
- * It has been AutoGen-ed Monday July 20, 2009 at 09:05:14 PM PDT
+ * It has been AutoGen-ed Thursday July 23, 2009 at 05:36:34 PM PDT
* From the definitions funcs.def
* and the template file options_h
*
* This file defines all the global structures and special values
* used in the automated option processing library.
*
- * Automated Options copyright 1992-Y Bruce Korb
+ * Automated Options copyright (c) 1992-Y by Bruce Korb
*
* AutoOpts is free software: you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
*
* DO NOT EDIT THIS FILE (usage-txt.h)
*
- * It has been AutoGen-ed Monday July 20, 2009 at 09:05:13 PM PDT
+ * It has been AutoGen-ed Thursday July 23, 2009 at 05:36:33 PM PDT
* From the definitions usage-txt.def
* and the template file usage-txt.tpl
*
/*
- * $Id: boolean.c,v 4.16 2009/01/01 16:51:47 bkorb Exp $
+ * $Id: boolean.c,v 4.15 2009/01/01 16:49:26 bkorb Exp $
* Time-stamp: "2008-08-03 13:06:02 bkorb"
*
* Automated Options Paged Usage module.
*
* Time-stamp: "2008-06-14 09:36:25 bkorb"
*
- * $Id: compat.h,v 4.21 2009/01/01 16:51:52 bkorb Exp $
+ * $Id: compat.h,v 4.22 2009/01/01 16:49:26 bkorb Exp $
*
* compat.h is free software.
* This file is part of AutoGen.
/*
* Author: Gary V Vaughan <gvaughan@oranda.demon.co.uk>
* Time-stamp: "2006-09-23 19:46:16 bkorb"
- * Last Modified: $Date: 2007/07/04 20:51:18 $
+ * Last Modified: $Date: 2007/10/07 16:54:54 $
* by: bkorb
*
- * $Id: pathfind.c,v 4.11 2007/07/04 20:51:18 bkorb Exp $
+ * $Id: pathfind.c,v 4.12 2007/10/07 16:54:54 bkorb Exp $
*/
/* Code: */
/*
- * Time-stamp: "2007-07-04 09:45:44 bkorb"
+ * Time-stamp: "2009-07-22 18:53:59 bkorb"
* by: bkorb
- * Last Committed: $Date: 2007/07/04 20:51:18 $
+ * Last Committed: $Date: 2009/07/23 02:05:55 $
*
* This file is part of AutoGen.
*
- * AutoGen copyright (c) 1992-2007 Bruce Korb - all rights reserved
+ * AutoGen copyright (c) 1992-2009 by Bruce Korb - all rights reserved
*
* AutoGen is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
/*
- * $Id: configfile.c,v 1.35 2009/01/18 22:48:51 bkorb Exp $
+ * $Id: configfile.c,v 4.46 2009/01/18 22:48:51 bkorb Exp $
* Time-stamp: "2009-01-18 10:21:58 bkorb"
*
* configuration/rc/ini file handling.
/*
- * $Id: cook.c,v 4.17 2009/01/01 16:51:47 bkorb Exp $
+ * $Id: cook.c,v 4.16 2009/01/01 16:49:26 bkorb Exp $
* Time-stamp: "2007-11-16 22:49:11 bkorb"
*
* This file contains the routines that deal with processing quoted strings
/*
- * $Id: enumeration.c,v 4.25 2009/01/01 16:51:47 bkorb Exp $
+ * $Id: enumeration.c,v 4.25 2009/01/01 16:49:26 bkorb Exp $
* Time-stamp: "2008-07-27 12:28:01 bkorb"
*
* Automated Options Paged Usage module.
/*
- * $Id: environment.c,v 4.20 2009/07/21 03:23:12 bkorb Exp $
+ * $Id: environment.c,v 4.20 2009/07/21 03:21:57 bkorb Exp $
* Time-stamp: "2009-07-20 20:12:24 bkorb"
*
* This file contains all of the routines that must be linked into
/*
- * $Id: file.c,v 1.7 2009/01/01 16:51:47 bkorb Exp $
- * Time-stamp: "2008-12-06 10:15:33 bkorb"
+ * $Id: file.c,v 4.7 2009/01/01 16:49:26 bkorb Exp $
+ * Time-stamp: "2009-07-23 17:23:46 bkorb"
*
* This file is part of AutoOpts, a companion to AutoGen.
* AutoOpts is free software.
pOpts->pUsageProc(pOpts, EXIT_FAILURE);
/* NOTREACHED */
}
- *p = '/';
+ if (p != NULL)
+ *p = DIRCH;
break;
}
*
* DO NOT EDIT THIS FILE (genshell.c)
*
- * It has been AutoGen-ed Monday July 20, 2009 at 09:05:14 PM PDT
+ * It has been AutoGen-ed Thursday July 23, 2009 at 05:36:35 PM PDT
* From the definitions genshell.def
* and the template file options
*
*
* DO NOT EDIT THIS FILE (genshell.h)
*
- * It has been AutoGen-ed Monday July 20, 2009 at 09:05:14 PM PDT
+ * It has been AutoGen-ed Thursday July 23, 2009 at 05:36:35 PM PDT
* From the definitions genshell.def
* and the template file options
*
/*
- * $Id: load.c,v 4.28 2009/01/01 16:51:48 bkorb Exp $
+ * $Id: load.c,v 4.37 2009/01/01 16:49:26 bkorb Exp $
* Time-stamp: "2008-12-06 10:16:05 bkorb"
*
* This file contains the routines that deal with processing text strings
dnl
dnl DO NOT EDIT THIS FILE (libopts.m4)
dnl
-dnl It has been AutoGen-ed Monday July 20, 2009 at 09:05:16 PM PDT
+dnl It has been AutoGen-ed Thursday July 23, 2009 at 05:36:36 PM PDT
dnl From the definitions libopts.def
dnl and the template file conftest.tpl
dnl
dnl @synopsis LIBOPTS_CHECK
dnl
-dnl Time-stamp: "2007-07-04 11:41:40 bkorb"
-dnl Last Committed: $Date: 2007/07/04 20:51:20 $
+dnl Time-stamp: "2009-07-22 18:50:49 bkorb"
+dnl Last Committed: $Date: 2009/07/23 02:05:55 $
dnl
dnl If autoopts-config works, add the linking information to LIBS.
dnl Otherwise, add ``libopts-${ao_rev}'' to SUBDIRS and run all
dnl "INVOKE_LIBOPTS_MACROS" macro iff we are building libopts.
dnl
dnl This file is part of AutoGen.
-dnl AutoGen copyright (c) 1992-2007 Bruce Korb - all rights reserved
+dnl AutoGen copyright (c) 1992-2009 by Bruce Korb - all rights reserved
dnl
dnl AutoGen is free software: you can redistribute it and/or modify it
dnl under the terms of the GNU General Public License as published by the
# liboptschk.m4 serial 1 (autogen - 5.7.3)
-dnl copyright (c) 2005 by Bruce Korb - all rights reserved
+dnl copyright (c) 2005-2009 by Bruce Korb - all rights reserved
+dnl
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
-dnl Time-stamp: "2006-09-23 19:42:31 bkorb"
-dnl Last Committed: $Date: 2007/07/04 20:51:18 $
+dnl Time-stamp: "2009-07-22 18:53:27 bkorb"
+dnl Last Committed: $Date: 2009/07/23 02:05:55 $
dnl This file can can be used in projects which are not available under
dnl the GNU General Public License or the GNU Library General Public
/*
- * $Id: makeshell.c,v 4.28 2009/01/01 16:51:48 bkorb Exp $
+ * $Id: makeshell.c,v 4.29 2009/01/01 16:49:26 bkorb Exp $
* Time-stamp: "2008-07-26 16:10:51 bkorb"
*
* This module will interpret the options set in the tOptions
/*
- * $Id: nested.c,v 4.27 2009/01/01 16:51:48 bkorb Exp $
+ * $Id: nested.c,v 4.31 2009/01/01 16:49:26 bkorb Exp $
* Time-stamp: "2008-07-28 19:18:28 bkorb"
*
* Automated Options Nested Values module.
/*
- * $Id: numeric.c,v 4.21 2009/01/17 22:08:07 bkorb Exp $
- * Time-stamp: "2009-01-11 18:05:28 bkorb"
+ * $Id: numeric.c,v 4.20 2009/01/17 22:08:09 bkorb Exp $
+ * Time-stamp: "2009-07-23 17:25:39 bkorb"
*
* This file is part of AutoOpts, a companion to AutoGen.
* AutoOpts is free software.
char* pz;
long val;
- if ((pOD->fOptState & OPTST_RESET) != 0)
- return;
-
/*
* Numeric options may have a range associated with it.
* If it does, the usage procedure requests that it be
- * emitted by passing a NULL pOD pointer.
+ * emitted by passing a NULL pOD pointer. Also bail out
+ * if there is no option argument or if we are being reset.
*/
- if ((pOD == NULL) || (pOD->optArg.argString == NULL))
+ if ( (pOD == NULL)
+ || (pOD->optArg.argString == NULL)
+ || ((pOD->fOptState & OPTST_RESET) != 0))
return;
errno = 0;
pOD->optArg.argInt = val;
return;
-bad_number:
+ bad_number:
+
fprintf( stderr, zNotNumber, pOpts->pzProgName, pOD->optArg.argString );
if ((pOpts->fOptSet & OPTPROC_ERRSTOP) != 0)
(*(pOpts->pUsageProc))(pOpts, EXIT_FAILURE);
/*
- * $Id: pgusage.c,v 4.17 2009/01/01 16:51:49 bkorb Exp $
+ * $Id: pgusage.c,v 4.17 2009/01/01 16:49:26 bkorb Exp $
* Time-stamp: "2008-07-27 21:08:42 bkorb"
*
* Automated Options Paged Usage module.
/* -*- buffer-read-only: t -*- vi: set ro:
*
* Prototypes for autoopts
- * Generated Mon Jul 20 21:05:15 PDT 2009
+ * Generated Thu Jul 23 17:36:35 PDT 2009
*/
#ifndef AUTOOPTS_PROTO_H_GUARD
#define AUTOOPTS_PROTO_H_GUARD 1
/*
- * $Id: putshell.c,v 4.26 2009/01/01 16:51:49 bkorb Exp $
+ * $Id: putshell.c,v 4.26 2009/01/01 16:49:26 bkorb Exp $
* Time-stamp: "2008-07-27 12:14:38 bkorb"
*
* This module will interpret the options set in the tOptions
/*
- * $Id: reset.c,v 4.3 2009/01/01 16:51:49 bkorb Exp $
+ * $Id: reset.c,v 4.6 2009/01/01 16:49:26 bkorb Exp $
* Time-stamp: "2008-08-02 12:25:18 bkorb"
*
* This file is part of AutoOpts, a companion to AutoGen.
/*
- * restore.c $Id: restore.c,v 4.14 2009/01/01 16:51:49 bkorb Exp $
+ * restore.c $Id: restore.c,v 4.13 2009/01/01 16:49:26 bkorb Exp $
* Time-stamp: "2007-07-04 11:34:40 bkorb"
*
* This module's routines will save the current option state to memory
/*
- * save.c $Id: save.c,v 4.31 2009/07/21 04:01:29 bkorb Exp $
+ * save.c $Id: save.c,v 4.35 2009/07/21 04:01:30 bkorb Exp $
* Time-stamp: "2009-07-20 20:40:28 bkorb"
*
* This module's routines will take the currently set options and
/*
- * sort.c $Id: sort.c,v 4.15 2009/01/01 16:51:49 bkorb Exp $
+ * sort.c $Id: sort.c,v 4.16 2009/01/01 16:49:26 bkorb Exp $
* Time-stamp: "2007-07-04 11:34:52 bkorb"
*
* This module implements argument sorting.
/*
* stack.c
- * $Id: stack.c,v 4.18 2009/01/01 16:51:49 bkorb Exp $
+ * $Id: stack.c,v 4.18 2009/01/01 16:49:26 bkorb Exp $
* Time-stamp: "2008-07-30 16:56:32 bkorb"
*
* This is a special option processing routine that will save the
/*
- * $Id: streqvcmp.c,v 4.15 2009/01/01 16:51:49 bkorb Exp $
+ * $Id: streqvcmp.c,v 4.16 2009/01/01 16:49:26 bkorb Exp $
* Time-stamp: "2008-12-26 10:15:46 bkorb"
*
* String Equivalence Comparison
/*
- * $Id: text_mmap.c,v 4.19 2009/01/01 16:51:49 bkorb Exp $
+ * $Id: text_mmap.c,v 4.20 2009/01/01 16:49:26 bkorb Exp $
*
* Time-stamp: "2007-07-04 11:35:49 bkorb"
*
/*
- * $Id: time.c,v 4.3 2009/01/01 16:51:50 bkorb Exp $
+ * $Id: time.c,v 4.4 2009/01/01 16:49:26 bkorb Exp $
* Time-stamp: "2008-11-16 14:51:48 bkorb"
*
* This file is part of AutoOpts, a companion to AutoGen.
/*
- * usage.c $Id: usage.c,v 4.30 2009/01/17 22:08:07 bkorb Exp $
+ * usage.c $Id: usage.c,v 4.29 2009/01/17 22:08:09 bkorb Exp $
* Time-stamp: "2009-01-17 13:18:23 bkorb"
*
* This module implements the default usage procedure for
/*
- * Generated header for gperf generated source Mon Jul 20 21:05:28 PDT 2009
+ * Generated header for gperf generated source Thu Jul 23 17:36:47 PDT 2009
* This file enumerates the list of names and declares the
* procedure for mapping string names to the enum value.
*/
-/* $Id: version.c,v 4.16 2009/01/01 16:51:50 bkorb Exp $
+/* $Id: version.c,v 4.18 2009/01/01 16:49:26 bkorb Exp $
* Time-stamp: "2008-07-27 10:11:30 bkorb"
*
* This module implements the default usage procedure for
/*
- * Generated header for gperf generated source Mon Jul 20 21:05:28 PDT 2009
+ * Generated header for gperf generated source Thu Jul 23 17:36:47 PDT 2009
* This file enumerates the list of names and declares the
* procedure for mapping string names to the enum value.
*/
LICENSING:
-This material is copyright 1993-2007 by Bruce Korb.
+This material is copyright (c) 1993-2009 by Bruce Korb.
You are licensed to use this under the terms of either
the GNU Lesser General Public License (see: COPYING.lgpl), or,
at your option, the modified Berkeley Software Distribution
/*
- * Character mapping generated 07/20/09 21:05:27
+ * Character mapping generated 07/23/09 17:36:47
*
* This file contains the character classifications
* used by AutoGen and AutoOpts for identifying tokens.
/*
- * $Id: autoopts.c,v 4.39 2009/01/25 19:31:59 bkorb Exp $
+ * $Id: autoopts.c,v 4.44 2009/01/25 19:31:56 bkorb Exp $
* Time-stamp: "2009-01-12 02:49:49 bkorb"
*
* This file contains all of the routines that must be linked into
/*
* Time-stamp: "2008-11-01 20:08:06 bkorb"
*
- * autoopts.h $Id: autoopts.h,v 4.30 2009/01/01 16:51:47 bkorb Exp $
+ * autoopts.h $Id: autoopts.h,v 4.41 2009/01/01 16:49:26 bkorb Exp $
*
* This file defines all the global structures and special values
* used in the automated option processing library.
*
* DO NOT EDIT THIS FILE (options.h)
*
- * It has been AutoGen-ed Monday July 20, 2009 at 09:05:14 PM PDT
+ * It has been AutoGen-ed Thursday July 23, 2009 at 05:36:34 PM PDT
* From the definitions funcs.def
* and the template file options_h
*
* This file defines all the global structures and special values
* used in the automated option processing library.
*
- * Automated Options copyright 1992-Y Bruce Korb
+ * Automated Options copyright (c) 1992-Y by Bruce Korb
*
* AutoOpts is free software: you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
*
* DO NOT EDIT THIS FILE (usage-txt.h)
*
- * It has been AutoGen-ed Monday July 20, 2009 at 09:05:13 PM PDT
+ * It has been AutoGen-ed Thursday July 23, 2009 at 05:36:33 PM PDT
* From the definitions usage-txt.def
* and the template file usage-txt.tpl
*
/*
- * $Id: boolean.c,v 4.16 2009/01/01 16:51:47 bkorb Exp $
+ * $Id: boolean.c,v 4.15 2009/01/01 16:49:26 bkorb Exp $
* Time-stamp: "2008-08-03 13:06:02 bkorb"
*
* Automated Options Paged Usage module.
*
* Time-stamp: "2008-06-14 09:36:25 bkorb"
*
- * $Id: compat.h,v 4.21 2009/01/01 16:51:52 bkorb Exp $
+ * $Id: compat.h,v 4.22 2009/01/01 16:49:26 bkorb Exp $
*
* compat.h is free software.
* This file is part of AutoGen.
/*
* Author: Gary V Vaughan <gvaughan@oranda.demon.co.uk>
* Time-stamp: "2006-09-23 19:46:16 bkorb"
- * Last Modified: $Date: 2007/07/04 20:51:18 $
+ * Last Modified: $Date: 2007/10/07 16:54:54 $
* by: bkorb
*
- * $Id: pathfind.c,v 4.11 2007/07/04 20:51:18 bkorb Exp $
+ * $Id: pathfind.c,v 4.12 2007/10/07 16:54:54 bkorb Exp $
*/
/* Code: */
/*
- * Time-stamp: "2007-07-04 09:45:44 bkorb"
+ * Time-stamp: "2009-07-22 18:53:59 bkorb"
* by: bkorb
- * Last Committed: $Date: 2007/07/04 20:51:18 $
+ * Last Committed: $Date: 2009/07/23 02:05:55 $
*
* This file is part of AutoGen.
*
- * AutoGen copyright (c) 1992-2007 Bruce Korb - all rights reserved
+ * AutoGen copyright (c) 1992-2009 by Bruce Korb - all rights reserved
*
* AutoGen is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
/*
- * $Id: configfile.c,v 1.35 2009/01/18 22:48:51 bkorb Exp $
+ * $Id: configfile.c,v 4.46 2009/01/18 22:48:51 bkorb Exp $
* Time-stamp: "2009-01-18 10:21:58 bkorb"
*
* configuration/rc/ini file handling.
/*
- * $Id: cook.c,v 4.17 2009/01/01 16:51:47 bkorb Exp $
+ * $Id: cook.c,v 4.16 2009/01/01 16:49:26 bkorb Exp $
* Time-stamp: "2007-11-16 22:49:11 bkorb"
*
* This file contains the routines that deal with processing quoted strings
/*
- * $Id: enumeration.c,v 4.25 2009/01/01 16:51:47 bkorb Exp $
+ * $Id: enumeration.c,v 4.25 2009/01/01 16:49:26 bkorb Exp $
* Time-stamp: "2008-07-27 12:28:01 bkorb"
*
* Automated Options Paged Usage module.
/*
- * $Id: environment.c,v 4.20 2009/07/21 03:23:12 bkorb Exp $
+ * $Id: environment.c,v 4.20 2009/07/21 03:21:57 bkorb Exp $
* Time-stamp: "2009-07-20 20:12:24 bkorb"
*
* This file contains all of the routines that must be linked into
/*
- * $Id: file.c,v 1.7 2009/01/01 16:51:47 bkorb Exp $
- * Time-stamp: "2008-12-06 10:15:33 bkorb"
+ * $Id: file.c,v 4.7 2009/01/01 16:49:26 bkorb Exp $
+ * Time-stamp: "2009-07-23 17:23:46 bkorb"
*
* This file is part of AutoOpts, a companion to AutoGen.
* AutoOpts is free software.
pOpts->pUsageProc(pOpts, EXIT_FAILURE);
/* NOTREACHED */
}
- *p = '/';
+ if (p != NULL)
+ *p = DIRCH;
break;
}
*
* DO NOT EDIT THIS FILE (genshell.c)
*
- * It has been AutoGen-ed Monday July 20, 2009 at 09:05:14 PM PDT
+ * It has been AutoGen-ed Thursday July 23, 2009 at 05:36:35 PM PDT
* From the definitions genshell.def
* and the template file options
*
*
* DO NOT EDIT THIS FILE (genshell.h)
*
- * It has been AutoGen-ed Monday July 20, 2009 at 09:05:14 PM PDT
+ * It has been AutoGen-ed Thursday July 23, 2009 at 05:36:35 PM PDT
* From the definitions genshell.def
* and the template file options
*
/*
- * $Id: load.c,v 4.28 2009/01/01 16:51:48 bkorb Exp $
+ * $Id: load.c,v 4.37 2009/01/01 16:49:26 bkorb Exp $
* Time-stamp: "2008-12-06 10:16:05 bkorb"
*
* This file contains the routines that deal with processing text strings
dnl
dnl DO NOT EDIT THIS FILE (libopts.m4)
dnl
-dnl It has been AutoGen-ed Monday July 20, 2009 at 09:05:16 PM PDT
+dnl It has been AutoGen-ed Thursday July 23, 2009 at 05:36:36 PM PDT
dnl From the definitions libopts.def
dnl and the template file conftest.tpl
dnl
dnl @synopsis LIBOPTS_CHECK
dnl
-dnl Time-stamp: "2007-07-04 11:41:40 bkorb"
-dnl Last Committed: $Date: 2007/07/04 20:51:20 $
+dnl Time-stamp: "2009-07-22 18:50:49 bkorb"
+dnl Last Committed: $Date: 2009/07/23 02:05:55 $
dnl
dnl If autoopts-config works, add the linking information to LIBS.
dnl Otherwise, add ``libopts-${ao_rev}'' to SUBDIRS and run all
dnl "INVOKE_LIBOPTS_MACROS" macro iff we are building libopts.
dnl
dnl This file is part of AutoGen.
-dnl AutoGen copyright (c) 1992-2007 Bruce Korb - all rights reserved
+dnl AutoGen copyright (c) 1992-2009 by Bruce Korb - all rights reserved
dnl
dnl AutoGen is free software: you can redistribute it and/or modify it
dnl under the terms of the GNU General Public License as published by the
# liboptschk.m4 serial 1 (autogen - 5.7.3)
-dnl copyright (c) 2005 by Bruce Korb - all rights reserved
+dnl copyright (c) 2005-2009 by Bruce Korb - all rights reserved
+dnl
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
-dnl Time-stamp: "2006-09-23 19:42:31 bkorb"
-dnl Last Committed: $Date: 2007/07/04 20:51:18 $
+dnl Time-stamp: "2009-07-22 18:53:27 bkorb"
+dnl Last Committed: $Date: 2009/07/23 02:05:55 $
dnl This file can can be used in projects which are not available under
dnl the GNU General Public License or the GNU Library General Public
/*
- * $Id: makeshell.c,v 4.28 2009/01/01 16:51:48 bkorb Exp $
+ * $Id: makeshell.c,v 4.29 2009/01/01 16:49:26 bkorb Exp $
* Time-stamp: "2008-07-26 16:10:51 bkorb"
*
* This module will interpret the options set in the tOptions
/*
- * $Id: nested.c,v 4.27 2009/01/01 16:51:48 bkorb Exp $
+ * $Id: nested.c,v 4.31 2009/01/01 16:49:26 bkorb Exp $
* Time-stamp: "2008-07-28 19:18:28 bkorb"
*
* Automated Options Nested Values module.
/*
- * $Id: numeric.c,v 4.21 2009/01/17 22:08:07 bkorb Exp $
- * Time-stamp: "2009-01-11 18:05:28 bkorb"
+ * $Id: numeric.c,v 4.20 2009/01/17 22:08:09 bkorb Exp $
+ * Time-stamp: "2009-07-23 17:25:39 bkorb"
*
* This file is part of AutoOpts, a companion to AutoGen.
* AutoOpts is free software.
char* pz;
long val;
- if ((pOD->fOptState & OPTST_RESET) != 0)
- return;
-
/*
* Numeric options may have a range associated with it.
* If it does, the usage procedure requests that it be
- * emitted by passing a NULL pOD pointer.
+ * emitted by passing a NULL pOD pointer. Also bail out
+ * if there is no option argument or if we are being reset.
*/
- if ((pOD == NULL) || (pOD->optArg.argString == NULL))
+ if ( (pOD == NULL)
+ || (pOD->optArg.argString == NULL)
+ || ((pOD->fOptState & OPTST_RESET) != 0))
return;
errno = 0;
pOD->optArg.argInt = val;
return;
-bad_number:
+ bad_number:
+
fprintf( stderr, zNotNumber, pOpts->pzProgName, pOD->optArg.argString );
if ((pOpts->fOptSet & OPTPROC_ERRSTOP) != 0)
(*(pOpts->pUsageProc))(pOpts, EXIT_FAILURE);
/*
- * $Id: pgusage.c,v 4.17 2009/01/01 16:51:49 bkorb Exp $
+ * $Id: pgusage.c,v 4.17 2009/01/01 16:49:26 bkorb Exp $
* Time-stamp: "2008-07-27 21:08:42 bkorb"
*
* Automated Options Paged Usage module.
/* -*- buffer-read-only: t -*- vi: set ro:
*
* Prototypes for autoopts
- * Generated Mon Jul 20 21:05:15 PDT 2009
+ * Generated Thu Jul 23 17:36:35 PDT 2009
*/
#ifndef AUTOOPTS_PROTO_H_GUARD
#define AUTOOPTS_PROTO_H_GUARD 1
/*
- * $Id: putshell.c,v 4.26 2009/01/01 16:51:49 bkorb Exp $
+ * $Id: putshell.c,v 4.26 2009/01/01 16:49:26 bkorb Exp $
* Time-stamp: "2008-07-27 12:14:38 bkorb"
*
* This module will interpret the options set in the tOptions
/*
- * $Id: reset.c,v 4.3 2009/01/01 16:51:49 bkorb Exp $
+ * $Id: reset.c,v 4.6 2009/01/01 16:49:26 bkorb Exp $
* Time-stamp: "2008-08-02 12:25:18 bkorb"
*
* This file is part of AutoOpts, a companion to AutoGen.
/*
- * restore.c $Id: restore.c,v 4.14 2009/01/01 16:51:49 bkorb Exp $
+ * restore.c $Id: restore.c,v 4.13 2009/01/01 16:49:26 bkorb Exp $
* Time-stamp: "2007-07-04 11:34:40 bkorb"
*
* This module's routines will save the current option state to memory
/*
- * save.c $Id: save.c,v 4.31 2009/07/21 04:01:29 bkorb Exp $
+ * save.c $Id: save.c,v 4.35 2009/07/21 04:01:30 bkorb Exp $
* Time-stamp: "2009-07-20 20:40:28 bkorb"
*
* This module's routines will take the currently set options and
/*
- * sort.c $Id: sort.c,v 4.15 2009/01/01 16:51:49 bkorb Exp $
+ * sort.c $Id: sort.c,v 4.16 2009/01/01 16:49:26 bkorb Exp $
* Time-stamp: "2007-07-04 11:34:52 bkorb"
*
* This module implements argument sorting.
/*
* stack.c
- * $Id: stack.c,v 4.18 2009/01/01 16:51:49 bkorb Exp $
+ * $Id: stack.c,v 4.18 2009/01/01 16:49:26 bkorb Exp $
* Time-stamp: "2008-07-30 16:56:32 bkorb"
*
* This is a special option processing routine that will save the
/*
- * $Id: streqvcmp.c,v 4.15 2009/01/01 16:51:49 bkorb Exp $
+ * $Id: streqvcmp.c,v 4.16 2009/01/01 16:49:26 bkorb Exp $
* Time-stamp: "2008-12-26 10:15:46 bkorb"
*
* String Equivalence Comparison
/*
- * $Id: text_mmap.c,v 4.19 2009/01/01 16:51:49 bkorb Exp $
+ * $Id: text_mmap.c,v 4.20 2009/01/01 16:49:26 bkorb Exp $
*
* Time-stamp: "2007-07-04 11:35:49 bkorb"
*
/*
- * $Id: time.c,v 4.3 2009/01/01 16:51:50 bkorb Exp $
+ * $Id: time.c,v 4.4 2009/01/01 16:49:26 bkorb Exp $
* Time-stamp: "2008-11-16 14:51:48 bkorb"
*
* This file is part of AutoOpts, a companion to AutoGen.
/*
- * usage.c $Id: usage.c,v 4.30 2009/01/17 22:08:07 bkorb Exp $
+ * usage.c $Id: usage.c,v 4.29 2009/01/17 22:08:09 bkorb Exp $
* Time-stamp: "2009-01-17 13:18:23 bkorb"
*
* This module implements the default usage procedure for
/*
- * Generated header for gperf generated source Mon Jul 20 21:05:28 PDT 2009
+ * Generated header for gperf generated source Thu Jul 23 17:36:47 PDT 2009
* This file enumerates the list of names and declares the
* procedure for mapping string names to the enum value.
*/
-/* $Id: version.c,v 4.16 2009/01/01 16:51:50 bkorb Exp $
+/* $Id: version.c,v 4.18 2009/01/01 16:49:26 bkorb Exp $
* Time-stamp: "2008-07-27 10:11:30 bkorb"
*
* This module implements the default usage procedure for
/*
- * Generated header for gperf generated source Mon Jul 20 21:05:28 PDT 2009
+ * Generated header for gperf generated source Thu Jul 23 17:36:47 PDT 2009
* This file enumerates the list of names and declares the
* procedure for mapping string names to the enum value.
*/