]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Libopts-5.17.1pre14 update
authorHarlan Stenn <stenn@ntp.org>
Sun, 6 Jan 2013 10:17:07 +0000 (05:17 -0500)
committerHarlan Stenn <stenn@ntp.org>
Sun, 6 Jan 2013 10:17:07 +0000 (05:17 -0500)
bk: 50e94f23T0ZhsRN5botsMhrFTUtfYg

46 files changed:
sntp/libopts/COPYING.gplv3
sntp/libopts/COPYING.lgplv3
sntp/libopts/Makefile.am
sntp/libopts/README
sntp/libopts/ag-char-map.h
sntp/libopts/alias.c
sntp/libopts/ao-strs.c
sntp/libopts/ao-strs.h
sntp/libopts/autoopts.c
sntp/libopts/autoopts.h
sntp/libopts/boolean.c
sntp/libopts/check.c
sntp/libopts/configfile.c
sntp/libopts/cook.c
sntp/libopts/enum.c
sntp/libopts/env.c
sntp/libopts/file.c
sntp/libopts/find.c
sntp/libopts/genshell.c
sntp/libopts/genshell.h
sntp/libopts/gettext.h
sntp/libopts/init.c
sntp/libopts/load.c
sntp/libopts/makeshell.c
sntp/libopts/nested.c
sntp/libopts/numeric.c
sntp/libopts/option-value-type.c
sntp/libopts/option-value-type.h
sntp/libopts/option-xat-attribute.c
sntp/libopts/option-xat-attribute.h
sntp/libopts/parse-duration.c
sntp/libopts/parse-duration.h
sntp/libopts/pgusage.c
sntp/libopts/proto.h
sntp/libopts/putshell.c
sntp/libopts/reset.c
sntp/libopts/restore.c
sntp/libopts/save.c
sntp/libopts/sort.c
sntp/libopts/stack.c
sntp/libopts/streqvcmp.c
sntp/libopts/text_mmap.c
sntp/libopts/time.c
sntp/libopts/tokenize.c
sntp/libopts/usage.c
sntp/libopts/version.c

index f22cdbb20935717acd7e88c27444eee8d5ddbb08..e9bf0ffd15fc059e0fe45f544c0ee73b86500a20 100644 (file)
@@ -1,7 +1,7 @@
                     GNU GENERAL PUBLIC LICENSE
                        Version 3, 29 June 2007
 
- Copyright (c) 1992-2012 by Bruce Korb - all rights reserved
+ Copyright (C) 1992-2013 by Bruce Korb - all rights reserved
  Everyone is permitted to copy and distribute verbatim copies
  of this license document, but changing it is not allowed.
 
@@ -632,7 +632,7 @@ state the exclusion of warranty; and each file should have at least
 the "copyright" line and a pointer to where the full notice is found.
 
     <one line to give the program's name and a brief idea of what it does.>
-    copyright (c) by Bruce Korb - all rights reserved
+    Copyright (C) by Bruce Korb - all rights reserved
 
     This program is free software: you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -652,7 +652,7 @@ Also add information on how to contact you by electronic and paper mail.
   If the program does terminal interaction, make it output a short
 notice like this when it starts in an interactive mode:
 
-    <program>  copyright (c)  by Bruce Korb - all rights reserved
+    <program>  Copyright (C)  by Bruce Korb - all rights reserved
     This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
     This is free software, and you are welcome to redistribute it
     under certain conditions; type `show c' for details.
index a1bc40ddf878aef3e8e1370cf2cbfc51898cdc92..b8a3768e33aeed6ee8f8c5a9bde969796d524012 100644 (file)
@@ -1,7 +1,7 @@
                   GNU LESSER GENERAL PUBLIC LICENSE
                        Version 3, 29 June 2007
 
- Copyright (c) 1992-2012 by Bruce Korb - all rights reserved
+ Copyright (C) 1992-2013 by Bruce Korb - all rights reserved
  Everyone is permitted to copy and distribute verbatim copies
  of this license document, but changing it is not allowed.
 
index 81e01943c44499e6c9b155f5daf7b065acdac305..102de235d42102bd05418c40e3fbcc3fa8c4cef1 100644 (file)
@@ -7,7 +7,7 @@ noinst_LTLIBRARIES      = libopts.la
 endif
 libopts_la_SOURCES      = libopts.c
 libopts_la_CPPFLAGS     = -I$(top_srcdir)
-libopts_la_LDFLAGS      = -version-info  37:0:12
+libopts_la_LDFLAGS      = -version-info  37:1:12
 EXTRA_DIST              = \
     COPYING.gplv3           COPYING.lgplv3          COPYING.mbsd  \
     MakeDefs.inc            README                  ag-char-map.h  \
@@ -15,8 +15,8 @@ EXTRA_DIST              = \
     autoopts/options.h      autoopts/usage-txt.h    autoopts/project.h  \
     autoopts.c              autoopts.h              boolean.c  \
     check.c                 compat/pathfind.c       compat/snprintf.c  \
-    compat/strchr.c         compat/windows-config.h compat/compat.h  \
-    compat/strdup.c         configfile.c            cook.c  \
+    compat/strchr.c         compat/windows-config.h compat/strdup.c  \
+    compat/compat.h         configfile.c            cook.c  \
     enum.c                  env.c                   file.c  \
     find.c                  genshell.c              genshell.h  \
     gettext.h               init.c                  load.c  \
index 0d9ac649f6497334a93c0797941c2579fd12e27c..184473d85a04845e807237f15371913fa0534af1 100644 (file)
@@ -115,7 +115,7 @@ These macros work as follows:
 
 LICENSING:
 
-This material is Copyright (c) 1992-2012 by Bruce Korb.  You are
+This material is Copyright (C) 1992-2013 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 License (see: COPYING.mbsd).  Both of
index a8f45b492ae2b220a0ef5f514c7cb57caaa50189..ff8e2dc52d175cc0421102a4c21ed502b2779be0 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  29 bits for 46 character classifications
- *  generated by char-mapper on 12/27/12 at 12:58:59
+ *  generated by char-mapper on 01/04/13 at 16:15:42
  *
  *  This file contains the character classifications
  *  used by AutoGen and AutoOpts for identifying tokens.
@@ -8,7 +8,7 @@
  *
  *  This file is part of AutoOpts, a companion to AutoGen.
  *  AutoOpts is free software.
- *  AutoOpts is Copyright (c) 1992-2012 by Bruce Korb - all rights reserved
+ *  AutoOpts is Copyright (C) 1992-2013 by Bruce Korb - all rights reserved
  *
  *  AutoOpts is available under any one of two licenses.  The license
  *  in use must be one of these two and the choice is under the control
index bd4c57bf2c644de3b5030962beab4f48d07ce4ec..a4d44b651648ef6f057a1e10890c7785d024f19b 100644 (file)
@@ -8,7 +8,7 @@
  *
  *  This file is part of AutoOpts, a companion to AutoGen.
  *  AutoOpts is free software.
- *  AutoOpts is Copyright (c) 1992-2012 by Bruce Korb - all rights reserved
+ *  AutoOpts is Copyright (C) 1992-2013 by Bruce Korb - all rights reserved
  *
  *  AutoOpts is available under any one of two licenses.  The license
  *  in use must be one of these two and the choice is under the control
index 7b6db5311f0ebf25f0b28957cf4ebd05fe82f996..d6b7acc1cd27e85cf08ae979a5b53c380b4aa33f 100644 (file)
@@ -2,7 +2,7 @@
  * 
  * DO NOT EDIT THIS FILE   (ao-strs.c)
  * 
- * It has been AutoGen-ed  December 27, 2012 at 12:58:59 PM by AutoGen 5.17.0pre12
+ * It has been AutoGen-ed  January  4, 2013 at 04:15:42 PM by AutoGen 5.17.1pre14
  * From the definitions    ao-strs.def
  * and the template file   strings
  *
index 588a910ae727ae208bb1557a7e0b6a3907dfd5bf..d1f27b967f89b8b648faf5813fea9eb129542aeb 100644 (file)
@@ -2,7 +2,7 @@
  * 
  * DO NOT EDIT THIS FILE   (ao-strs.h)
  * 
- * It has been AutoGen-ed  December 27, 2012 at 12:58:59 PM by AutoGen 5.17.0pre12
+ * It has been AutoGen-ed  January  4, 2013 at 04:15:42 PM by AutoGen 5.17.1pre14
  * From the definitions    ao-strs.def
  * and the template file   strings
  *
index 3786c38030f6a64cda489b98ac335e2bf0b37de0..c9e380b2d3c9c830d983c3be46434393c9579987 100644 (file)
@@ -9,7 +9,7 @@
  *
  *  This file is part of AutoOpts, a companion to AutoGen.
  *  AutoOpts is free software.
- *  AutoOpts is Copyright (c) 1992-2012 by Bruce Korb - all rights reserved
+ *  AutoOpts is Copyright (C) 1992-2013 by Bruce Korb - all rights reserved
  *
  *  AutoOpts is available under any one of two licenses.  The license
  *  in use must be one of these two and the choice is under the control
index 88daff4d29f3a3b79f2b2a7f327de21e5118fb11..c4bf544cbae1ce98b3b27ffdacb6d5d5e3c96522 100644 (file)
@@ -7,7 +7,7 @@
  *
  *  This file is part of AutoOpts, a companion to AutoGen.
  *  AutoOpts is free software.
- *  AutoOpts is Copyright (c) 1992-2012 by Bruce Korb - all rights reserved
+ *  AutoOpts is Copyright (C) 1992-2013 by Bruce Korb - all rights reserved
  *
  *  AutoOpts is available under any one of two licenses.  The license
  *  in use must be one of these two and the choice is under the control
index 8e27fed1392d545f9390824ab434b4a479b97da4..cf3b116c37d0898d50c3bdc4af69c3ced5cda4aa 100644 (file)
@@ -9,7 +9,7 @@
  *
  *  This file is part of AutoOpts, a companion to AutoGen.
  *  AutoOpts is free software.
- *  AutoOpts is Copyright (c) 1992-2012 by Bruce Korb - all rights reserved
+ *  AutoOpts is Copyright (C) 1992-2013 by Bruce Korb - all rights reserved
  *
  *  AutoOpts is available under any one of two licenses.  The license
  *  in use must be one of these two and the choice is under the control
index ef4f25aadfe1fd12a861543b76de969a6539bafb..9860df1eae87dd3799f4a597213cac0262ee24c2 100644 (file)
@@ -8,7 +8,7 @@
  *
  *  This file is part of AutoOpts, a companion to AutoGen.
  *  AutoOpts is free software.
- *  AutoOpts is Copyright (c) 1992-2012 by Bruce Korb - all rights reserved
+ *  AutoOpts is Copyright (C) 1992-2013 by Bruce Korb - all rights reserved
  *
  *  AutoOpts is available under any one of two licenses.  The license
  *  in use must be one of these two and the choice is under the control
index cd7415189ae88ac899d429b66e8157a6dd15b8b5..b08169e0f0f8259350a449ddbe39a006df811035 100644 (file)
@@ -5,7 +5,7 @@
  *
  *  This file is part of AutoOpts, a companion to AutoGen.
  *  AutoOpts is free software.
- *  AutoOpts is Copyright (c) 1992-2012 by Bruce Korb - all rights reserved
+ *  AutoOpts is Copyright (C) 1992-2013 by Bruce Korb - all rights reserved
  *
  *  AutoOpts is available under any one of two licenses.  The license
  *  in use must be one of these two and the choice is under the control
index 8ddcc7f79da0a584044e4001e7baccd8fb43049d..98ce81ce202511a3cf60f87ffd28d93519c36062 100644 (file)
@@ -6,7 +6,7 @@
  *
  *  This file is part of AutoOpts, a companion to AutoGen.
  *  AutoOpts is free software.
- *  AutoOpts is Copyright (c) 1992-2012 by Bruce Korb - all rights reserved
+ *  AutoOpts is Copyright (C) 1992-2013 by Bruce Korb - all rights reserved
  *
  *  AutoOpts is available under any one of two licenses.  The license
  *  in use must be one of these two and the choice is under the control
@@ -84,13 +84,17 @@ ao_string_cook_escape_char(char const * pzIn, char * pRes, uint_t nl)
     case 'x':
     case 'X':         /* HEX Escape       */
         if (IS_HEX_DIGIT_CHAR(*pzIn))  {
-            char z[4], *pz = z;
+            char z[4];
+            unsigned int ct = 0;
 
-            do *(pz++) = *(pzIn++);
-            while (IS_HEX_DIGIT_CHAR(*pzIn) && (pz < z + 2));
-            *pz = NUL;
+            do  {
+                z[ct] = pzIn[ct];
+                if (++ct >= 2)
+                    break;
+            } while (IS_HEX_DIGIT_CHAR(pzIn[ct]));
+            z[ct] = NUL;
             *pRes = (char)strtoul(z, NULL, 16);
-            res += (unsigned int)(pz - z);
+            return ct + 1;
         }
         break;
 
@@ -99,24 +103,29 @@ ao_string_cook_escape_char(char const * pzIn, char * pRes, uint_t nl)
     {
         /*
          *  IF the character copied was an octal digit,
-         *  THEN set the output character to an octal value
+         *  THEN set the output character to an octal value.
+         *  The 3 octal digit result might exceed 0xFF, so check it.
          */
-        char z[4], *pz = z + 1;
+        char z[4];
         unsigned long val;
-        z[0] = *pRes;
+        unsigned int  ct = 0;
 
-        while (IS_OCT_DIGIT_CHAR(*pzIn) && (pz < z + 3))
-            *(pz++) = *(pzIn++);
-        *pz = NUL;
+        z[ct++] = *--pzIn;
+        while (IS_OCT_DIGIT_CHAR(pzIn[ct])) {
+            z[ct] = pzIn[ct];
+            if (++ct >= 3)
+                break;
+        }
+
+        z[ct] = NUL;
         val = strtoul(z, NULL, 8);
         if (val > 0xFF)
             val = 0xFF;
         *pRes = (char)val;
-        res = (unsigned int)(pz - z);
-        break;
+        return ct;
     }
 
-    default: ;
+    default: /* quoted character is result character */;
     }
 
     return res;
index a483bbe31b5c6ea922c12bd41e533e4d4b90aa78..f1f70ea50a5f462f2428cdc2eca4d5b2ddf626f5 100644 (file)
@@ -9,7 +9,7 @@
  *
  *  This file is part of AutoOpts, a companion to AutoGen.
  *  AutoOpts is free software.
- *  AutoOpts is Copyright (c) 1992-2012 by Bruce Korb - all rights reserved
+ *  AutoOpts is Copyright (C) 1992-2013 by Bruce Korb - all rights reserved
  *
  *  AutoOpts is available under any one of two licenses.  The license
  *  in use must be one of these two and the choice is under the control
index f3fa3465f0163959e1d63cae657e76331cd48ff2..3167a15005ddbbbba68f3951ee6936350c432c90 100644 (file)
@@ -9,7 +9,7 @@
  *
  *  This file is part of AutoOpts, a companion to AutoGen.
  *  AutoOpts is free software.
- *  AutoOpts is Copyright (c) 1992-2012 by Bruce Korb - all rights reserved
+ *  AutoOpts is Copyright (C) 1992-2013 by Bruce Korb - all rights reserved
  *
  *  AutoOpts is available under any one of two licenses.  The license
  *  in use must be one of these two and the choice is under the control
index 72a0cc5e9351377d51b99c99949afce78cb144be..a14ca315df40fe89ab2755543d7436ec11fea4f5 100644 (file)
@@ -4,7 +4,7 @@
  *
  *  This file is part of AutoOpts, a companion to AutoGen.
  *  AutoOpts is free software.
- *  AutoOpts is Copyright (c) 1992-2012 by Bruce Korb - all rights reserved
+ *  AutoOpts is Copyright (C) 1992-2013 by Bruce Korb - all rights reserved
  *
  *  AutoOpts is available under any one of two licenses.  The license
  *  in use must be one of these two and the choice is under the control
index 24d14eec2f3254431669ca092d4fd4f71715f86d..4d70bf8cd252f57c3b0ad3137e4cd1e9c946283b 100644 (file)
@@ -8,7 +8,7 @@
  *
  *  This file is part of AutoOpts, a companion to AutoGen.
  *  AutoOpts is free software.
- *  AutoOpts is Copyright (c) 1992-2012 by Bruce Korb - all rights reserved
+ *  AutoOpts is Copyright (C) 1992-2013 by Bruce Korb - all rights reserved
  *
  *  AutoOpts is available under any one of two licenses.  The license
  *  in use must be one of these two and the choice is under the control
index 1deee37a62c1d4080e1521fbcc0f7572140e37a8..9e81af0905ac4c293443fb955c1183d791b0e45e 100644 (file)
@@ -2,11 +2,11 @@
  *  
  *  DO NOT EDIT THIS FILE   (genshell.c)
  *  
- *  It has been AutoGen-ed  December 27, 2012 at 12:59:02 PM by AutoGen 5.17.0pre12
+ *  It has been AutoGen-ed  January  4, 2013 at 04:15:46 PM by AutoGen 5.17.1pre14
  *  From the definitions    genshell.def
  *  and the template file   options
  *
- * Generated from AutoOpts 37:0:12 templates.
+ * Generated from AutoOpts 37:1:12 templates.
  *
  *  AutoOpts is a copyrighted work.  This source file is not encumbered
  *  by AutoOpts licensing, but is provided under the licensing terms chosen
index e158cd161b0afa8f6920534180a0446e10ae64ab..c6ae4ed757b5adb7983d218cb8d749b1d696a0e0 100644 (file)
@@ -2,11 +2,11 @@
  *  
  *  DO NOT EDIT THIS FILE   (genshell.h)
  *  
- *  It has been AutoGen-ed  December 27, 2012 at 12:59:02 PM by AutoGen 5.17.0pre12
+ *  It has been AutoGen-ed  January  4, 2013 at 04:15:46 PM by AutoGen 5.17.1pre14
  *  From the definitions    genshell.def
  *  and the template file   options
  *
- * Generated from AutoOpts 37:0:12 templates.
+ * Generated from AutoOpts 37:1:12 templates.
  *
  *  AutoOpts is a copyrighted work.  This header file is not encumbered
  *  by AutoOpts licensing, but is provided under the licensing terms chosen
@@ -55,7 +55,7 @@
  *  tolerable version is at least as old as what was current when the header
  *  template was released.
  */
-#define AO_TEMPLATE_VERSION 151552
+#define AO_TEMPLATE_VERSION 151553
 #if (AO_TEMPLATE_VERSION < OPTIONS_MINIMUM_VERSION) \
  || (AO_TEMPLATE_VERSION > OPTIONS_STRUCT_VERSION)
 # error option template version mismatches autoopts/options.h header
index 151ba4f67e80fd6708978f841e670a3db3c6d16e..e059b209917d2e4b8737bfea7d1d44ce8ae0f994 100644 (file)
@@ -1,5 +1,5 @@
 /* Convenience header for conditional use of GNU <libintl.h>.
-   Copyright (C) 1995-1998, 2000-2002, 2004-2006, 2009-2012 Free Software
+   Copyright (C) 1995-1998, 2000-2002, 2004-2006, 2009-2013 Free Software
    Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
index dab2060a0cfa76ea77d90b76f45fc172fc0c6e6c..17bd87bb76ed53b7ad37f6dda6331eb75344e836 100644 (file)
@@ -5,7 +5,7 @@
  *
  *  This file is part of AutoOpts, a companion to AutoGen.
  *  AutoOpts is free software.
- *  AutoOpts is Copyright (c) 1992-2012 by Bruce Korb - all rights reserved
+ *  AutoOpts is Copyright (C) 1992-2013 by Bruce Korb - all rights reserved
  *
  *  AutoOpts is available under any one of two licenses.  The license
  *  in use must be one of these two and the choice is under the control
index 82680b5ed19b533cbfba09df566e57565f3db1ab..48fb03ae527f157c73144a0e60850894d011eb75 100644 (file)
@@ -7,7 +7,7 @@
  *
  *  This file is part of AutoOpts, a companion to AutoGen.
  *  AutoOpts is free software.
- *  AutoOpts is Copyright (c) 1992-2012 by Bruce Korb - all rights reserved
+ *  AutoOpts is Copyright (C) 1992-2013 by Bruce Korb - all rights reserved
  *
  *  AutoOpts is available under any one of two licenses.  The license
  *  in use must be one of these two and the choice is under the control
index 2d355fe94bf1d2be72423be4190c6e56a4217b7b..28710f8ccf7a9fdbd8c363531228c31b98cd1479 100644 (file)
@@ -7,7 +7,7 @@
  *
  *  This file is part of AutoOpts, a companion to AutoGen.
  *  AutoOpts is free software.
- *  AutoOpts is Copyright (c) 1992-2012 by Bruce Korb - all rights reserved
+ *  AutoOpts is Copyright (C) 1992-2013 by Bruce Korb - all rights reserved
  *
  *  AutoOpts is available under any one of two licenses.  The license
  *  in use must be one of these two and the choice is under the control
index 0f37e23473e17cb60688cbceb7020101724c3874..257ce844051dea6da36059e950e4d328a4a59b91 100644 (file)
@@ -6,7 +6,7 @@
  *
  *  This file is part of AutoOpts, a companion to AutoGen.
  *  AutoOpts is free software.
- *  AutoOpts is Copyright (c) 1992-2012 by Bruce Korb - all rights reserved
+ *  AutoOpts is Copyright (C) 1992-2013 by Bruce Korb - all rights reserved
  *
  *  AutoOpts is available under any one of two licenses.  The license
  *  in use must be one of these two and the choice is under the control
index a2256a509213dd0aa0eb66b19633cbc5ccd6ecb8..6b7a0b7e16eb40edcf1b2e1ccc84e35968976fe5 100644 (file)
@@ -4,7 +4,7 @@
  *
  *  This file is part of AutoOpts, a companion to AutoGen.
  *  AutoOpts is free software.
- *  AutoOpts is Copyright (c) 1992-2012 by Bruce Korb - all rights reserved
+ *  AutoOpts is Copyright (C) 1992-2013 by Bruce Korb - all rights reserved
  *
  *  AutoOpts is available under any one of two licenses.  The license
  *  in use must be one of these two and the choice is under the control
index aa56333ddcca769ae9cc6cdcc3e331b29645746e..06e32e5d4428afdc0baf1a9dca26db348a0987a1 100644 (file)
@@ -2,7 +2,7 @@
  *  
  *  DO NOT EDIT THIS FILE   (stdin.c)
  *  
- *  It has been AutoGen-ed  December 27, 2012 at 12:59:01 PM by AutoGen 5.17.0pre12
+ *  It has been AutoGen-ed  January  4, 2013 at 04:15:45 PM by AutoGen 5.17.1pre14
  *  From the definitions    stdin
  *  and the template file   str2enum
  * 
index becaa13e10bc1ec2d398b430b3b811524e95218d..ac1fb9e4d4b4b95bb3942b99c51f6901a0bf2cae 100644 (file)
@@ -2,7 +2,7 @@
  *  
  *  DO NOT EDIT THIS FILE   (stdin.h)
  *  
- *  It has been AutoGen-ed  December 27, 2012 at 12:59:01 PM by AutoGen 5.17.0pre12
+ *  It has been AutoGen-ed  January  4, 2013 at 04:15:45 PM by AutoGen 5.17.1pre14
  *  From the definitions    stdin
  *  and the template file   str2enum
  * 
index 85e475676b01570108315367ab3831cf4f0b5363..f5374716d357b4ca180ccbd5ebb4b4da70d4f667 100644 (file)
@@ -2,7 +2,7 @@
  *  
  *  DO NOT EDIT THIS FILE   (stdin.c)
  *  
- *  It has been AutoGen-ed  December 27, 2012 at 12:59:00 PM by AutoGen 5.17.0pre12
+ *  It has been AutoGen-ed  January  4, 2013 at 04:15:43 PM by AutoGen 5.17.1pre14
  *  From the definitions    stdin
  *  and the template file   str2enum
  * 
index 19d705a885cf0581292820c8ebf5f65a36b43c27..11204161a37ce66a50f9ab5df1f06f39149e94ab 100644 (file)
@@ -2,7 +2,7 @@
  *  
  *  DO NOT EDIT THIS FILE   (stdin.h)
  *  
- *  It has been AutoGen-ed  December 27, 2012 at 12:59:00 PM by AutoGen 5.17.0pre12
+ *  It has been AutoGen-ed  January  4, 2013 at 04:15:43 PM by AutoGen 5.17.1pre14
  *  From the definitions    stdin
  *  and the template file   str2enum
  * 
index c763a8ac1be92ff1cbd0b5c85e638cb98465eaa8..5f4496dbcc7e17885f3d53c1f5ff16e31661738e 100644 (file)
@@ -1,5 +1,5 @@
 /* Parse a time duration and return a seconds count
-   Copyright (C) 2008-2012 Free Software Foundation, Inc.
+   Copyright (C) 2008-2013 Free Software Foundation, Inc.
    Written by Bruce Korb <bkorb@gnu.org>, 2008.
 
    This program is free software: you can redistribute it and/or modify
@@ -113,7 +113,7 @@ parse_hr_min_sec (time_t start, cch_t * pz)
       if (errno != 0)
         return BAD_TIME;
 
-      start = scale_n_add ((time_t)v, start, 60);
+      start = scale_n_add (v, start, 60);
 
       if (errno != 0)
         return BAD_TIME;
@@ -144,7 +144,7 @@ parse_scaled_value (time_t base, cch_t ** ppz, cch_t * endp, int scale)
     return base;
 
   errno = 0;
-  val = (time_t)str_const_to_ul (pz, &pz, 10);
+  val = str_const_to_ul (pz, &pz, 10);
   if (errno != 0)
     return BAD_TIME;
   while (isspace ((unsigned char)*pz))
@@ -550,7 +550,7 @@ parse_non_iso8601 (cch_t * pz)
           break;
         }
 
-      res = scale_n_add (res, (time_t)val, (int)mult);
+      res = scale_n_add (res, val, mult);
 
       pz++;
       while (isspace ((unsigned char)*pz))
index 05570a09dd0b49ade11f6e6ef78dc877924a5c55..cbe31b87ffa34b299ac674957e47f3366eb8e42b 100644 (file)
@@ -1,5 +1,5 @@
 /* Parse a time duration and return a seconds count
-   Copyright (C) 2008-2012 Free Software Foundation, Inc.
+   Copyright (C) 2008-2013 Free Software Foundation, Inc.
    Written by Bruce Korb <bkorb@gnu.org>, 2008.
 
    This program is free software: you can redistribute it and/or modify
index 5634799e58345bed90a05c95c5835ba6b2e67c90..9e923d94b6971d4a797fc2bc877dca00ead9cb59 100644 (file)
@@ -9,7 +9,7 @@
  *
  *  This file is part of AutoOpts, a companion to AutoGen.
  *  AutoOpts is free software.
- *  AutoOpts is Copyright (c) 1992-2012 by Bruce Korb - all rights reserved
+ *  AutoOpts is Copyright (C) 1992-2013 by Bruce Korb - all rights reserved
  *
  *  AutoOpts is available under any one of two licenses.  The license
  *  in use must be one of these two and the choice is under the control
index 38e551b0121d2308b1a1906789a480aa155c8dd7..20fec4bc1f5b1ca07576979e2168b0636cebf642 100644 (file)
@@ -1,97 +1,91 @@
 /* -*- buffer-read-only: t -*- vi: set ro:
  *
  * Prototypes for autoopts
- * Generated Thu Dec 27 12:59:13 PST 2012
+ * Generated Fri Jan  4 16:15:56 PST 2013
  */
 #ifndef AUTOOPTS_PROTO_H_GUARD
 #define AUTOOPTS_PROTO_H_GUARD 1
 
-#ifndef LOCAL
-#  define LOCAL extern
-#  define REDEF_LOCAL 1
-#else
-#  undef  REDEF_LOCAL
-#endif
 /*
  *  Extracted from autoopts.c
  */
-LOCAL void *
+static void *
 ao_malloc(size_t sz);
 
-LOCAL void *
+static void *
 ao_realloc(void *p, size_t sz);
 
-LOCAL char *
+static char *
 ao_strdup(char const *str);
 
-LOCAL tSuccess
+static tSuccess
 handle_opt(tOptions * pOpts, tOptState * o_st);
 
-LOCAL tSuccess
+static tSuccess
 next_opt(tOptions * opts, tOptState * o_st);
 
-LOCAL tSuccess
+static tSuccess
 regular_opts(tOptions * opts);
 
 /*
  *  Extracted from check.c
  */
-LOCAL bool
+static bool
 is_consistent(tOptions * pOpts);
 
 /*
  *  Extracted from configfile.c
  */
-LOCAL void
+static void
 intern_file_load(tOptions * opts);
 
-LOCAL char*
+static char*
 parse_attrs(tOptions * opts, char * txt, tOptionLoadMode * pMode,
             tOptionValue * pType);
 
 /*
  *  Extracted from env.c
  */
-LOCAL void
+static void
 doPrognameEnv(tOptions * pOpts, teEnvPresetType type);
 
-LOCAL void
+static void
 env_presets(tOptions * pOpts, teEnvPresetType type);
 
 /*
  *  Extracted from find.c
  */
-LOCAL tSuccess
+static tSuccess
 opt_find_long(tOptions * opts, char const * opt_name, tOptState * state);
 
-LOCAL tSuccess
+static tSuccess
 opt_find_short(tOptions* pOpts, uint_t optValue, tOptState* pOptState);
 
-LOCAL tSuccess
+static tSuccess
 get_opt_arg(tOptions * opts, tOptState * o_st);
 
-LOCAL tSuccess
+static tSuccess
 find_opt(tOptions * opts, tOptState * o_st);
 
 /*
  *  Extracted from init.c
  */
-LOCAL tSuccess
+static tSuccess
 validate_struct(tOptions * opts, char const * pname);
 
-LOCAL tSuccess
+static tSuccess
 immediate_opts(tOptions * opts);
 
-LOCAL bool
+static bool
 ao_initialize(tOptions * opts, int a_ct, char ** a_v);
 
 /*
  *  Extracted from load.c
  */
-LOCAL void
+static void
 munge_str(char * txt, tOptionLoadMode mode);
 
-LOCAL void
+static void
 loadOptionLine(
     tOptions *  opts,
     tOptState * opt_state,
@@ -102,38 +96,34 @@ loadOptionLine(
 /*
  *  Extracted from nested.c
  */
-LOCAL void
+static void
 unload_arg_list(tArgList * arg_list);
 
-LOCAL tOptionValue *
+static tOptionValue *
 optionLoadNested(char const * text, char const * name, size_t nm_len);
 
-LOCAL int
+static int
 get_special_char(char const ** ppz, int * ct);
 
-LOCAL void
+static void
 emit_special_char(FILE * fp, int ch);
 
 /*
  *  Extracted from sort.c
  */
-LOCAL void
-optionSort(tOptions* pOpts);
+static void
+optionSort(tOptions * opts);
 
 /*
  *  Extracted from stack.c
  */
-LOCAL void
+static void
 addArgListEntry(void** ppAL, void* entry);
 
 /*
  *  Extracted from usage.c
  */
-LOCAL void
+static void
 set_usage_flags(tOptions * opts, char const * flg_txt);
 
-#ifdef REDEF_LOCAL
-#  undef LOCAL
-#  define LOCAL
-#endif
 #endif /* AUTOOPTS_PROTO_H_GUARD */
index 63f59218c66a25fd89217b795220de621a12c7cf..bafd4edd656e60b11ac0485cc7c37c25d18d0055 100644 (file)
@@ -8,7 +8,7 @@
  *
  *  This file is part of AutoOpts, a companion to AutoGen.
  *  AutoOpts is free software.
- *  AutoOpts is Copyright (c) 1992-2012 by Bruce Korb - all rights reserved
+ *  AutoOpts is Copyright (C) 1992-2013 by Bruce Korb - all rights reserved
  *
  *  AutoOpts is available under any one of two licenses.  The license
  *  in use must be one of these two and the choice is under the control
index 19d042702f9fb66618584db806cc71a98d9976f4..79967bfddbf9778a90bd14ccef1a34adb39e2912 100644 (file)
@@ -4,7 +4,7 @@
  *
  *  This file is part of AutoOpts, a companion to AutoGen.
  *  AutoOpts is free software.
- *  AutoOpts is Copyright (c) 1992-2012 by Bruce Korb - all rights reserved
+ *  AutoOpts is Copyright (C) 1992-2013 by Bruce Korb - all rights reserved
  *
  *  AutoOpts is available under any one of two licenses.  The license
  *  in use must be one of these two and the choice is under the control
index 7b36cf029e956cc9a2cb8110eb7bb6a81d9497b8..2a3d9e181488b48c341db5c76ba41b6ec5dbb419 100644 (file)
@@ -8,7 +8,7 @@
  *
  *  This file is part of AutoOpts, a companion to AutoGen.
  *  AutoOpts is free software.
- *  AutoOpts is Copyright (c) 1992-2012 by Bruce Korb - all rights reserved
+ *  AutoOpts is Copyright (C) 1992-2013 by Bruce Korb - all rights reserved
  *
  *  AutoOpts is available under any one of two licenses.  The license
  *  in use must be one of these two and the choice is under the control
index 9e42019fa2af15bb6d0a66949bddae13081a25eb..471130b0f4016a99f8c70246c98e3d69866dc07a 100644 (file)
@@ -8,7 +8,7 @@
  *
  *  This file is part of AutoOpts, a companion to AutoGen.
  *  AutoOpts is free software.
- *  AutoOpts is Copyright (c) 1992-2012 by Bruce Korb - all rights reserved
+ *  AutoOpts is Copyright (C) 1992-2013 by Bruce Korb - all rights reserved
  *
  *  AutoOpts is available under any one of two licenses.  The license
  *  in use must be one of these two and the choice is under the control
index f1c775c4f3385c95059959723e4990f055330bb2..e5fd661943c895090ac5f58d61edebf8ab2303e7 100644 (file)
@@ -6,7 +6,7 @@
  *
  *  This file is part of AutoOpts, a companion to AutoGen.
  *  AutoOpts is free software.
- *  AutoOpts is Copyright (c) 1992-2012 by Bruce Korb - all rights reserved
+ *  AutoOpts is Copyright (C) 1992-2013 by Bruce Korb - all rights reserved
  *
  *  AutoOpts is available under any one of two licenses.  The license
  *  in use must be one of these two and the choice is under the control
 
 /* = = = START-STATIC-FORWARD = = = */
 static tSuccess
-mustHandleArg(tOptions* pOpts, char* pzArg, tOptState* pOS,
-              char** ppzOpts, int* pOptsIdx);
+must_arg(tOptions * opts, char * arg_txt, tOptState * pOS,
+         char ** opt_txt, uint32_t * opt_idx);
 
 static tSuccess
-mayHandleArg(tOptions* pOpts, char* pzArg, tOptState* pOS,
-             char** ppzOpts, int* pOptsIdx);
+maybe_arg(tOptions * opts, char * arg_txt, tOptState * pOS,
+          char ** opt_txt, uint32_t * opt_idx);
 
 static tSuccess
-checkShortOpts(tOptions* pOpts, char* pzArg, tOptState* pOS,
-               char** ppzOpts, int* pOptsIdx);
+short_opt_ck(tOptions * opts, char * arg_txt, tOptState * pOS,
+             char ** opt_txt, uint32_t * opt_idx);
 /* = = = END-STATIC-FORWARD = = = */
 
 /*
- *  "mustHandleArg" and "mayHandleArg" are really similar.  The biggest
+ *  "must_arg" and "maybe_arg" are really similar.  The biggest
  *  difference is that "may" will consume the next argument only if it
  *  does not start with a hyphen and "must" will consume it, hyphen or not.
  */
 static tSuccess
-mustHandleArg(tOptions* pOpts, char* pzArg, tOptState* pOS,
-              char** ppzOpts, int* pOptsIdx)
+must_arg(tOptions * opts, char * arg_txt, tOptState * pOS,
+         char ** opt_txt, uint32_t * opt_idx)
 {
     /*
      *  An option argument is required.  Long options can either have
@@ -59,7 +59,7 @@ mustHandleArg(tOptions* pOpts, char* pzArg, tOptState* pOS,
          *  See if an arg string follows the flag character.  If not,
          *  the next arg must be the option argument.
          */
-        if (*pzArg != NUL)
+        if (*arg_txt != NUL)
             return SUCCESS;
         break;
 
@@ -75,16 +75,16 @@ mustHandleArg(tOptions* pOpts, char* pzArg, tOptState* pOS,
     default:
         return FAILURE;
     }
-    if (pOpts->curOptIdx >= pOpts->origArgCt)
+    if (opts->curOptIdx >= opts->origArgCt)
         return FAILURE;
 
-    ppzOpts[ (*pOptsIdx)++ ] = pOpts->origArgVect[ (pOpts->curOptIdx)++ ];
+    opt_txt[ (*opt_idx)++ ] = opts->origArgVect[ (opts->curOptIdx)++ ];
     return SUCCESS;
 }
 
 static tSuccess
-mayHandleArg(tOptions* pOpts, char* pzArg, tOptState* pOS,
-             char** ppzOpts, int* pOptsIdx)
+maybe_arg(tOptions * opts, char * arg_txt, tOptState * pOS,
+          char ** opt_txt, uint32_t * opt_idx)
 {
     /*
      *  An option argument is optional.
@@ -96,7 +96,7 @@ mayHandleArg(tOptions* pOpts, char* pzArg, tOptState* pOS,
          *  THEN see if there is another argument.  If so and if it
          *  does *NOT* start with a hyphen, then it is the option arg.
          */
-        if (*pzArg != NUL)
+        if (*arg_txt != NUL)
             return SUCCESS;
         break;
 
@@ -112,12 +112,12 @@ mayHandleArg(tOptions* pOpts, char* pzArg, tOptState* pOS,
     default:
         return FAILURE;
     }
-    if (pOpts->curOptIdx >= pOpts->origArgCt)
+    if (opts->curOptIdx >= opts->origArgCt)
         return PROBLEM;
 
-    pzArg = pOpts->origArgVect[ pOpts->curOptIdx ];
-    if (*pzArg != '-')
-        ppzOpts[ (*pOptsIdx)++ ] = pOpts->origArgVect[ (pOpts->curOptIdx)++ ];
+    arg_txt = opts->origArgVect[ opts->curOptIdx ];
+    if (*arg_txt != '-')
+        opt_txt[ (*opt_idx)++ ] = opts->origArgVect[ (opts->curOptIdx)++ ];
     return SUCCESS;
 }
 
@@ -126,31 +126,31 @@ mayHandleArg(tOptions* pOpts, char* pzArg, tOptState* pOS,
  *  does or may take an argument, the do the argument processing and leave.
  */
 static tSuccess
-checkShortOpts(tOptions* pOpts, char* pzArg, tOptState* pOS,
-               char** ppzOpts, int* pOptsIdx)
+short_opt_ck(tOptions * opts, char * arg_txt, tOptState * pOS,
+             char ** opt_txt, uint32_t * opt_idx)
 {
-    while (*pzArg != NUL) {
-        if (FAILED(opt_find_short(pOpts, (uint8_t)*pzArg, pOS)))
+    while (*arg_txt != NUL) {
+        if (FAILED(opt_find_short(opts, (uint8_t)*arg_txt, pOS)))
             return FAILURE;
 
         /*
          *  See if we can have an arg.
          */
         if (OPTST_GET_ARGTYPE(pOS->pOD->fOptState) == OPARG_TYPE_NONE) {
-            pzArg++;
+            arg_txt++;
 
         } else if (pOS->pOD->fOptState & OPTST_ARG_OPTIONAL) {
             /*
              *  Take an argument if it is not attached and it does not
              *  start with a hyphen.
              */
-            if (pzArg[1] != NUL)
+            if (arg_txt[1] != NUL)
                 return SUCCESS;
 
-            pzArg = pOpts->origArgVect[ pOpts->curOptIdx ];
-            if (*pzArg != '-')
-                ppzOpts[ (*pOptsIdx)++ ] =
-                    pOpts->origArgVect[ (pOpts->curOptIdx)++ ];
+            arg_txt = opts->origArgVect[ opts->curOptIdx ];
+            if (*arg_txt != '-')
+                opt_txt[ (*opt_idx)++ ] =
+                    opts->origArgVect[ (opts->curOptIdx)++ ];
             return SUCCESS;
 
         } else {
@@ -158,11 +158,11 @@ checkShortOpts(tOptions* pOpts, char* pzArg, tOptState* pOS,
              *  IF we need another argument, be sure it is there and
              *  take it.
              */
-            if (pzArg[1] == NUL) {
-                if (pOpts->curOptIdx >= pOpts->origArgCt)
+            if (arg_txt[1] == NUL) {
+                if (opts->curOptIdx >= opts->origArgCt)
                     return FAILURE;
-                ppzOpts[ (*pOptsIdx)++ ] =
-                    pOpts->origArgVect[ (pOpts->curOptIdx)++ ];
+                opt_txt[ (*opt_idx)++ ] =
+                    opts->origArgVect[ (opts->curOptIdx)++ ];
             }
             return SUCCESS;
         }
@@ -175,12 +175,12 @@ checkShortOpts(tOptions* pOpts, char* pzArg, tOptState* pOS,
  *  then this routine will to the trick.
  */
 LOCAL void
-optionSort(tOptions* pOpts)
+optionSort(tOptions * opts)
 {
-    char** ppzOpts;
-    char** ppzOpds;
-    int    optsIdx = 0;
-    int    opdsIdx = 0;
+    char **  opt_txt;
+    char **  ppzOpds;
+    uint32_t optsIdx = 0;
+    uint32_t opdsIdx = 0;
 
     tOptState os = OPTSTATE_INITIALIZER(DEFINED);
 
@@ -188,24 +188,24 @@ optionSort(tOptions* pOpts)
      *  Disable for POSIX conformance, or if there are no operands.
      */
     if (  (getenv("POSIXLY_CORRECT") != NULL)
-       || NAMED_OPTS(pOpts))
+       || NAMED_OPTS(opts))
         return;
 
     /*
      *  Make sure we can allocate two full-sized arg vectors.
      */
-    ppzOpts = malloc(pOpts->origArgCt * sizeof(char*));
-    if (ppzOpts == NULL)
+    opt_txt = malloc(opts->origArgCt * sizeof(char*));
+    if (opt_txt == NULL)
         goto exit_no_mem;
 
-    ppzOpds = malloc(pOpts->origArgCt * sizeof(char*));
+    ppzOpds = malloc(opts->origArgCt * sizeof(char*));
     if (ppzOpds == NULL) {
-        free(ppzOpts);
+        free(opt_txt);
         goto exit_no_mem;
     }
 
-    pOpts->curOptIdx = 1;
-    pOpts->pzCurOpt  = NULL;
+    opts->curOptIdx = 1;
+    opts->pzCurOpt  = NULL;
 
     /*
      *  Now, process all the options from our current position onward.
@@ -213,30 +213,30 @@ optionSort(tOptions* pOpts)
      *  non-standard programs that require it.)
      */
     for (;;) {
-        char* pzArg;
+        char * arg_txt;
         tSuccess res;
 
         /*
          *  If we're out of arguments, we're done.  Join the option and
          *  operand lists into the original argument vector.
          */
-        if (pOpts->curOptIdx >= pOpts->origArgCt) {
+        if (opts->curOptIdx >= opts->origArgCt) {
             errno = 0;
             goto joinLists;
         }
 
-        pzArg = pOpts->origArgVect[ pOpts->curOptIdx ];
-        if (*pzArg != '-') {
-            ppzOpds[ opdsIdx++ ] = pOpts->origArgVect[ (pOpts->curOptIdx)++ ];
+        arg_txt = opts->origArgVect[ opts->curOptIdx ];
+        if (*arg_txt != '-') {
+            ppzOpds[ opdsIdx++ ] = opts->origArgVect[ (opts->curOptIdx)++ ];
             continue;
         }
 
-        switch (pzArg[1]) {
+        switch (arg_txt[1]) {
         case NUL:
             /*
              *  A single hyphen is an operand.
              */
-            ppzOpds[ opdsIdx++ ] = pOpts->origArgVect[ (pOpts->curOptIdx)++ ];
+            ppzOpds[ opdsIdx++ ] = opts->origArgVect[ (opts->curOptIdx)++ ];
             continue;
 
         case '-':
@@ -244,12 +244,12 @@ optionSort(tOptions* pOpts)
              *  Two consecutive hypens.  Put them on the options list and then
              *  _always_ force the remainder of the arguments to be operands.
              */
-            if (pzArg[2] == NUL) {
-                ppzOpts[ optsIdx++ ] =
-                    pOpts->origArgVect[ (pOpts->curOptIdx)++ ];
+            if (arg_txt[2] == NUL) {
+                opt_txt[ optsIdx++ ] =
+                    opts->origArgVect[ (opts->curOptIdx)++ ];
                 goto restOperands;
             }
-            res = opt_find_long(pOpts, pzArg+2, &os);
+            res = opt_find_long(opts, arg_txt+2, &os);
             break;
 
         default:
@@ -258,10 +258,10 @@ optionSort(tOptions* pOpts)
              *  option processing.  Otherwise the character must be a
              *  short (i.e. single character) option.
              */
-            if ((pOpts->fOptSet & OPTPROC_SHORTOPT) == 0) {
-                res = opt_find_long(pOpts, pzArg+1, &os);
+            if ((opts->fOptSet & OPTPROC_SHORTOPT) == 0) {
+                res = opt_find_long(opts, arg_txt+1, &os);
             } else {
-                res = opt_find_short(pOpts, (uint8_t)pzArg[1], &os);
+                res = opt_find_short(opts, (uint8_t)arg_txt[1], &os);
             }
             break;
         }
@@ -275,7 +275,7 @@ optionSort(tOptions* pOpts)
          *  Next, we have to see if we need to pull another argument to be
          *  used as the option argument.
          */
-        ppzOpts[ optsIdx++ ] = pOpts->origArgVect[ (pOpts->curOptIdx)++ ];
+        opt_txt[ optsIdx++ ] = opts->origArgVect[ (opts->curOptIdx)++ ];
 
         if (OPTST_GET_ARGTYPE(os.pOD->fOptState) == OPARG_TYPE_NONE) {
             /*
@@ -284,20 +284,20 @@ optionSort(tOptions* pOpts)
              *  of the argument string.
              */
             if (  (os.optType == TOPT_SHORT)
-               && FAILED(checkShortOpts(pOpts, pzArg+2, &os, ppzOpts,
-                                        &optsIdx)) )  {
+               && FAILED(short_opt_ck(opts, arg_txt+2, &os, opt_txt,
+                                      &optsIdx)) )  {
                 errno = EINVAL;
                 goto freeTemps;
             }
 
         } else if (os.pOD->fOptState & OPTST_ARG_OPTIONAL) {
-            switch (mayHandleArg(pOpts, pzArg+2, &os, ppzOpts, &optsIdx)) {
+            switch (maybe_arg(opts, arg_txt+2, &os, opt_txt, &optsIdx)) {
             case FAILURE: errno = EIO; goto freeTemps;
             case PROBLEM: errno = 0;   goto joinLists;
             }
 
         } else {
-            switch (mustHandleArg(pOpts, pzArg+2, &os, ppzOpts, &optsIdx)) {
+            switch (must_arg(opts, arg_txt+2, &os, opt_txt, &optsIdx)) {
             case PROBLEM:
             case FAILURE: errno = EIO; goto freeTemps;
             }
@@ -305,19 +305,19 @@ optionSort(tOptions* pOpts)
     } /* for (;;) */
 
  restOperands:
-    while (pOpts->curOptIdx < pOpts->origArgCt)
-        ppzOpds[ opdsIdx++ ] = pOpts->origArgVect[ (pOpts->curOptIdx)++ ];
+    while (opts->curOptIdx < opts->origArgCt)
+        ppzOpds[ opdsIdx++ ] = opts->origArgVect[ (opts->curOptIdx)++ ];
 
  joinLists:
     if (optsIdx > 0)
-        memcpy(pOpts->origArgVect + 1, ppzOpts,
+        memcpy(opts->origArgVect + 1, opt_txt,
                (size_t)optsIdx * sizeof(char*));
     if (opdsIdx > 0)
-        memcpy(pOpts->origArgVect + 1 + optsIdx, ppzOpds,
+        memcpy(opts->origArgVect + 1 + optsIdx, ppzOpds,
                (size_t)opdsIdx * sizeof(char*));
 
  freeTemps:
-    free(ppzOpts);
+    free(opt_txt);
     free(ppzOpds);
     return;
 
index 4887aea0323b207075b6c9e18e0c09597f0a2990..95c211e7c6f621fb299ae6c1975d5da7dd48ac31 100644 (file)
@@ -7,7 +7,7 @@
  *
  *  This file is part of AutoOpts, a companion to AutoGen.
  *  AutoOpts is free software.
- *  AutoOpts is Copyright (c) 1992-2012 by Bruce Korb - all rights reserved
+ *  AutoOpts is Copyright (C) 1992-2013 by Bruce Korb - all rights reserved
  *
  *  AutoOpts is available under any one of two licenses.  The license
  *  in use must be one of these two and the choice is under the control
index c7b3ebde150cb5d7410cb8544be5eeef9798c282..425331f1f10722f70ea27c1d55ef748ff0c99f5f 100644 (file)
@@ -11,7 +11,7 @@
  *
  *  This file is part of AutoOpts, a companion to AutoGen.
  *  AutoOpts is free software.
- *  AutoOpts is Copyright (c) 1992-2012 by Bruce Korb - all rights reserved
+ *  AutoOpts is Copyright (C) 1992-2013 by Bruce Korb - all rights reserved
  *
  *  AutoOpts is available under any one of two licenses.  The license
  *  in use must be one of these two and the choice is under the control
index a72965d47f37f03b879f8f5aaf7b6a7a21484d65..64b23855f0de3ec2302145e36db388ce7a917322 100644 (file)
@@ -5,7 +5,7 @@
  *
  *  This file is part of AutoOpts, a companion to AutoGen.
  *  AutoOpts is free software.
- *  AutoOpts is Copyright (c) 1992-2012 by Bruce Korb - all rights reserved
+ *  AutoOpts is Copyright (C) 1992-2013 by Bruce Korb - all rights reserved
  *
  *  AutoOpts is available under any one of two licenses.  The license
  *  in use must be one of these two and the choice is under the control
index 2cd546800fd47542a65572193a3c15feb5d647f6..a45f6158e342a40094562d077c5483e3912c89dd 100644 (file)
@@ -4,7 +4,7 @@
  *
  *  This file is part of AutoOpts, a companion to AutoGen.
  *  AutoOpts is free software.
- *  AutoOpts is Copyright (c) 1992-2012 by Bruce Korb - all rights reserved
+ *  AutoOpts is Copyright (C) 1992-2013 by Bruce Korb - all rights reserved
  *
  *  AutoOpts is available under any one of two licenses.  The license
  *  in use must be one of these two and the choice is under the control
index 10073cf5f6273f2fdd20941911d5553278be047d..8c68e84e3b044bf5c3bf4adf291da84322230e3c 100644 (file)
@@ -2,7 +2,7 @@
  *  This file defines the string_tokenize interface
  *  This file is part of AutoOpts, a companion to AutoGen.
  *  AutoOpts is free software.
- *  AutoOpts is Copyright (c) 1992-2012 by Bruce Korb - all rights reserved
+ *  AutoOpts is Copyright (C) 1992-2013 by Bruce Korb - all rights reserved
  *
  *  AutoOpts is available under any one of two licenses.  The license
  *  in use must be one of these two and the choice is under the control
index 9cf2728444618c852bdedff93cdc13a67a2ffb49..3f26c05dace329d7fd4f4df5172d163e5f622792 100644 (file)
@@ -14,7 +14,7 @@
 /*
  *  This file is part of AutoOpts, a companion to AutoGen.
  *  AutoOpts is free software.
- *  AutoOpts is Copyright (c) 1992-2012 by Bruce Korb - all rights reserved
+ *  AutoOpts is Copyright (C) 1992-2013 by Bruce Korb - all rights reserved
  *
  *  AutoOpts is available under any one of two licenses.  The license
  *  in use must be one of these two and the choice is under the control
index 3a9c0488add68b00c7f2a9a0a5c4c30f7d69bf76..d0c4942bcda5e5d33a8ddcec7e2c61f8048e9c04 100644 (file)
@@ -7,7 +7,7 @@
 /*
  *  This file is part of AutoOpts, a companion to AutoGen.
  *  AutoOpts is free software.
- *  AutoOpts is Copyright (c) 1992-2012 by Bruce Korb - all rights reserved
+ *  AutoOpts is Copyright (C) 1992-2013 by Bruce Korb - all rights reserved
  *
  *  AutoOpts is available under any one of two licenses.  The license
  *  in use must be one of these two and the choice is under the control
 char const*
 optionVersion(void)
 {
-    static char const zVersion[] =
-        STR(AO_CURRENT.AO_REVISION);
-
-    return zVersion;
+    static char const ver[] = OPTIONS_DOTTED_VERSION;
+    return ver;
 }
 
 /**