]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Upgrade to libopts-27.4.3
authorHarlan Stenn <stenn@ntp.org>
Fri, 22 Sep 2006 23:38:01 +0000 (19:38 -0400)
committerHarlan Stenn <stenn@ntp.org>
Fri, 22 Sep 2006 23:38:01 +0000 (19:38 -0400)
bk: 451473d9jh3RpgEEZnc6MlCqToeVWg

34 files changed:
libopts/Makefile.am
libopts/autoopts.c
libopts/autoopts.h
libopts/autoopts/options.h
libopts/autoopts/usage-txt.h
libopts/boolean.c
libopts/compat/compat.h
libopts/compat/pathfind.c
libopts/compat/snprintf.c
libopts/compat/strdup.c
libopts/compat/windows-config.h
libopts/configfile.c
libopts/cook.c
libopts/enumeration.c
libopts/environment.c
libopts/genshell.c
libopts/genshell.h
libopts/load.c
libopts/m4/libopts.m4
libopts/makeshell.c
libopts/nested.c
libopts/numeric.c
libopts/pgusage.c
libopts/proto.h
libopts/putshell.c
libopts/restore.c
libopts/save.c
libopts/sort.c
libopts/stack.c
libopts/streqvcmp.c
libopts/text_mmap.c
libopts/tokenize.c
libopts/usage.c
libopts/version.c

index 9c1479cce3d4d16965646f9eb6a85c5f7c39d7f3..a5729889c6a4a994358fdae4b15c44f5eb5a755c 100644 (file)
@@ -1,10 +1,14 @@
 ## LIBOPTS Makefile
-MAINTAINERCLEANFILES  = Makefile.in
-lib_LTLIBRARIES       = libopts.la
-libopts_la_SOURCES    = libopts.c
-libopts_la_CPPFLAGS   = -I$(top_srcdir)
-libopts_la_LDFLAGS    = -version-info  27:4:3
-EXTRA_DIST            = \
+MAINTAINERCLEANFILES    = Makefile.in
+if INSTALL_LIBOPTS
+lib_LTLIBRARIES         = libopts.la
+else
+noinst_LTLIBRARIES      = libopts.la
+endif
+libopts_la_SOURCES      = libopts.c
+libopts_la_CPPFLAGS     = -I$(top_srcdir)
+libopts_la_LDFLAGS      = -version-info  27:4:3
+EXTRA_DIST              = \
     COPYING.lgpl            COPYING.mbsd            MakeDefs.inc  \
     README                  autoopts/options.h      autoopts/usage-txt.h  \
     autoopts.c              autoopts.h              boolean.c  \
index 1cb86b6f2693a93023fc66bef650fdec8d489621..22104a9f857bc809988fdda74337144c46c14692 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- *  $Id: autoopts.c,v 4.22 2006/07/15 22:10:21 bkorb Exp $
+ *  $Id: autoopts.c,v 4.14 2006/09/13 14:31:07 bkorb Exp $
  *  Time-stamp:      "2006-09-10 14:42:45 bkorb"
  *
  *  This file contains all of the routines that must be linked into
index 219baedafb370c41e527ddd4c7ae19a1e1d28a00..51f5269d8c9e7bab8483f762cb1b7e72f702c6fb 100644 (file)
@@ -2,7 +2,7 @@
 /*
  *  Time-stamp:      "2006-09-10 14:43:25 bkorb"
  *
- *  autoopts.h  $Id: autoopts.h,v 4.26 2006/08/12 17:31:50 bkorb Exp $
+ *  autoopts.h  $Id: autoopts.h,v 4.15 2006/09/13 14:31:07 bkorb Exp $
  *  Time-stamp:      "2005-02-14 05:59:50 bkorb"
  *
  *  This file defines all the global structures and special values
index f15d7d525e6c37df6b3106769a9a4eee8aa5a734..6c78724c819a4c9e63f52c76b6286aac0b4e6630 100644 (file)
@@ -2,7 +2,7 @@
  *  
  *  DO NOT EDIT THIS FILE   (options.h)
  *  
- *  It has been AutoGen-ed  Sunday September 10, 2006 at 04:03:10 PM PDT
+ *  It has been AutoGen-ed  Tuesday September 19, 2006 at 09:27:53 PM PDT
  *  From the definitions    funcs.def
  *  and the template file   options_h
  *
@@ -446,7 +446,7 @@ extern token_list_t* ao_string_tokenize( const char* );
 extern const tOptionValue* configFileLoad( const char* );
 
 
-/* From: configfile.c line 872
+/* From: configfile.c line 871
  *
  * optionFileLoad - Load the locatable config files, in order
  *
@@ -476,7 +476,7 @@ extern const tOptionValue* configFileLoad( const char* );
 extern int optionFileLoad( tOptions*, const char* );
 
 
-/* From: configfile.c line 241
+/* From: configfile.c line 240
  *
  * optionFindNextValue - find a hierarcicaly valued option instance
  *
@@ -525,7 +525,7 @@ extern const tOptionValue* optionFindValue( const tOptDesc*, const char*, const
 extern void optionFree( tOptions* );
 
 
-/* From: configfile.c line 310
+/* From: configfile.c line 309
  *
  * optionGetValue - get a specific value from a hierarcical list
  *
@@ -567,7 +567,7 @@ extern const tOptionValue* optionGetValue( const tOptionValue*, const char* );
 extern void optionLoadLine( tOptions*, const char* );
 
 
-/* From: configfile.c line 369
+/* From: configfile.c line 368
  *
  * optionNextValue - get the next value from a hierarchical list
  *
index bd229551bd47a7a777478652f357b0d8e60450a4..013f4e418a27541aefd6460f140089cab6449009 100644 (file)
@@ -2,7 +2,7 @@
  *  
  *  DO NOT EDIT THIS FILE   (usage-txt.h)
  *  
- *  It has been AutoGen-ed  Sunday September 10, 2006 at 04:03:08 PM PDT
+ *  It has been AutoGen-ed  Tuesday September 19, 2006 at 09:27:51 PM PDT
  *  From the definitions    usage-txt.def
  *  and the template file   usage-txt.tpl
  *
index d09833003472e82eb61fdf865e6a2cb4f35a6dda..b0c40a7fa8791c35338a1a42015fcfba81a46ca8 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- *  $Id: boolean.c,v 4.6 2006/03/25 19:23:28 bkorb Exp $
+ *  $Id: boolean.c,v 4.4 2006/03/31 19:52:10 bkorb Exp $
  * Time-stamp:      "2005-02-14 08:24:12 bkorb"
  *
  *   Automated Options Paged Usage module.
index 38b50cc696661f41c084f1813b21d00356d82a99..fc711db5348454a2fbcc021edaeac271859ca325 100644 (file)
@@ -7,7 +7,7 @@
  * Author:           Gary V Vaughan <gvaughan@oranda.demon.co.uk>
  * Created:          Mon Jun 30 15:54:46 1997
  *
- * $Id: compat.h,v 4.12 2006/09/07 14:46:34 bkorb Exp $
+ * $Id: compat.h,v 4.12 2006/09/16 19:58:55 bkorb Exp $
  */
 #ifndef COMPAT_H_GUARD
 #define COMPAT_H_GUARD 1
 
 #ifndef HAVE_INT32_T
 # if SIZEOF_INT == 4
-       typedef signed int      int32_t;
+        typedef signed int      int32_t;
 # elif SIZEOF_LONG == 4
-       typedef signed long     int32_t;
+        typedef signed long     int32_t;
 # endif
 #endif
 
 #ifndef HAVE_UINT32_T
 # if SIZEOF_INT == 4
-       typedef unsigned int    uint32_t;
+        typedef unsigned int    uint32_t;
 # elif SIZEOF_LONG == 4
-       typedef unsigned long   uint32_t;
+        typedef unsigned long   uint32_t;
 # else
 #   error Cannot create a uint32_t type.
     Choke Me.
index 540e08f9c12f5312168ac653b3736b815751961e..9cfbebb1d1f81bd9cc8fdcb346de7e8290d777e9 100644 (file)
@@ -5,10 +5,10 @@
 /*
  * Author:           Gary V Vaughan <gvaughan@oranda.demon.co.uk>
  * Created:          Tue Jun 24 15:07:31 1997
- * Last Modified:    $Date: 2006/08/22 16:06:36 $
+ * Last Modified:    $Date: 2006/08/22 16:09:02 $
  *            by: bkorb
  *
- * $Id: pathfind.c,v 4.7 2006/08/22 16:06:36 bkorb Exp $
+ * $Id: pathfind.c,v 4.7 2006/08/22 16:09:02 bkorb Exp $
  */
 
 /* Code: */
index 78bda479be82ab5f899368bd3ea3351e1ac15c04..99c7eb679b0aa67445261fda884c08722c7cceb0 100644 (file)
@@ -7,7 +7,7 @@
 #  include <stdarg.h>
 #  ifndef   VA_START
 #    define VA_START(a, f)  va_start(a, f)
-#    define VA_END(a)      va_end(a)
+#    define VA_END(a)       va_end(a)
 #  endif /* VA_START */
 #  define SNV_USING_STDARG_H
 
@@ -15,7 +15,7 @@
 #  include <varargs.h>
 #  ifndef   VA_START
 #    define VA_START(a, f) va_start(a)
-#    define VA_END(a)   va_end(a)
+#    define VA_END(a)    va_end(a)
 #  endif /* VA_START */
 #  undef  SNV_USING_STDARG_H
 
index 34dbcc57f72f956f9a4bd9c6e324e90c47e04664..a65dc4750ea6e6d80c160bc07c0fdffa40fa6e6f 100644 (file)
@@ -8,12 +8,12 @@ strdup( const char *s )
     char *cp;
 
     if (s == NULL)
-       return NULL;
+        return NULL;
 
     cp = (char *) AGALOC((unsigned) (strlen(s)+1), "strdup");
 
     if (cp != NULL)
-       (void) strcpy(cp, s);
+        (void) strcpy(cp, s);
 
     return cp;
 }
index a88ddbb867b8cfeeaa1f9ca052916b0303088c07..359b17b69a4c5d25283c3658fad4f74472392e56 100644 (file)
@@ -36,7 +36,7 @@
  * # define HAVE_VSPRINTF
  * # define HAVE_SNPRINTF
  * # define HAVE_VSNPRINTF
- * # define HAVE_PROTOTYPES            /* from ntpq.mak * /
+ * # define HAVE_PROTOTYPES             /* from ntpq.mak * /
  * # define HAVE_MEMMOVE
  * # define HAVE_TERMIOS_H
  * # define HAVE_ERRNO_H
@@ -48,7 +48,7 @@
  * # define ISC_PLATFORM_NEEDNTOP
  * # define ISC_PLATFORM_NEEDPTON
  * # define NEED_S_CHAR_TYPEDEF
- * # define USE_PROTOTYPES             /* for ntp_types.h * /
+ * # define USE_PROTOTYPES              /* for ntp_types.h * /
  *
  * #define ULONG_CONST(a) a ## UL
  */
 #define O_RDONLY   _O_RDONLY
 #define O_EXCL     _O_EXCL
 
-#ifndef        S_ISREG
+#ifndef S_ISREG
 #  define S_IFREG _S_IFREG
-#  define      S_ISREG(mode)   (((mode) & S_IFREG) == S_IFREG)
+#  define       S_ISREG(mode)   (((mode) & S_IFREG) == S_IFREG)
 #endif
 
-#ifndef        S_ISDIR
+#ifndef S_ISDIR
 #  define S_IFDIR _S_IFDIR
-#  define      S_ISDIR(mode)   (((mode) & S_IFDIR) == S_IFDIR)
+#  define       S_ISDIR(mode)   (((mode) & S_IFDIR) == S_IFDIR)
 #endif
 
 #endif /* WINDOWS_CONFIG_HACKERY */
index c733646546b45dbc10019a694302988407dff1e6..2b4d6d4af8139fe481ca88ef606aec36d8a6463d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  $Id: configfile.c,v 4.23 2006/07/01 21:57:23 bkorb Exp $
+ *  $Id: configfile.c,v 1.12 2006/09/20 04:27:44 bkorb Exp $
  *  Time-stamp:      "2006-09-10 13:57:10 bkorb"
  *
  *  configuration/rc/ini file handling.
@@ -205,8 +205,7 @@ optionFindValue( const tOptDesc* pOptDesc,
     else do {
         tArgList* pAL = pOptDesc->optCookie;
         int ct = pAL->useCt;
-        const tOptionValue** ppOV =
-            (const tOptionValue**)(void*)&(pAL->apzArgs);
+        tCC** ppOV = pAL->apzArgs;
 
         if (ct == 0) {
             errno = ENOENT;
@@ -214,12 +213,12 @@ optionFindValue( const tOptDesc* pOptDesc,
         }
 
         if (pzName == NULL) {
-            pRes = *ppOV;
+            pRes = (tOptionValue*)*ppOV;
             break;
         }
 
         while (--ct >= 0) {
-            const tOptionValue* pOV = *(ppOV++);
+            const tOptionValue* pOV = (tOptionValue*)*(ppOV++);
             const tOptionValue* pRV = optionGetValue( pOV, pzName );
 
             if (pRV == NULL)
@@ -283,7 +282,7 @@ optionFindNextValue( const tOptDesc* pOptDesc, const tOptionValue* pPrevVal,
     else do {
         tArgList* pAL = pOptDesc->optCookie;
         int ct = pAL->useCt;
-        tOptionValue** ppOV = (tOptionValue**)(void*)&(pAL->apzArgs);
+        tCC** ppOV = pAL->apzArgs;
 
         if (ct == 0) {
             errno = ENOENT;
@@ -291,7 +290,7 @@ optionFindNextValue( const tOptDesc* pOptDesc, const tOptionValue* pPrevVal,
         }
 
         while (--ct >= 0) {
-            tOptionValue* pOV = *(ppOV++);
+            tOptionValue* pOV = (tOptionValue*)*(ppOV++);
             if (foundOldVal) {
                 pRes = pOV;
                 break;
@@ -346,14 +345,14 @@ optionGetValue( const tOptionValue* pOld, const char* pzValName )
 
     if (pAL->useCt > 0) {
         int ct = pAL->useCt;
-        tOptionValue** papOV = (tOptionValue**)(pAL->apzArgs);
+        tCC** papOV = pAL->apzArgs;
 
         if (pzValName == NULL) {
-            pRes = *papOV;
+            pRes = (tOptionValue*)*papOV;
         }
 
         else do {
-            tOptionValue* pOV = *(papOV++);
+            tOptionValue* pOV = (tOptionValue*)*(papOV++);
             if (strcmp( pOV->pzName, pzValName ) == 0) {
                 pRes = pOV;
                 break;
@@ -407,17 +406,17 @@ optionNextValue( const tOptionValue* pOVList, const tOptionValue* pOldOV )
     pAL = pOVList->v.nestVal;
     {
         int   ct   = pAL->useCt;
-        tOptionValue** papNV = (tOptionValue**)(pAL->apzArgs);
+        tCC** papNV = pAL->apzArgs;
 
         while (ct-- > 0) {
-            tOptionValue* pNV = *(papNV++);
+            tOptionValue* pNV = (tOptionValue*)*(papNV++);
             if (pNV == pOldOV) {
                 if (ct == 0) {
                     err = ENOENT;
 
                 } else {
                     err  = 0;
-                    pRes = *papNV;
+                    pRes = (tOptionValue*)*papNV;
                 }
                 break;
             }
index aecd4ec483d1d5b1f2048517ebaa442eb883eb30..134be4cfd50d85591f75b07d95d50d571cd694ea 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- *  $Id: cook.c,v 4.6 2006/06/24 23:34:51 bkorb Exp $
+ *  $Id: cook.c,v 4.4 2006/06/24 23:36:07 bkorb Exp $
  *  Time-stamp:      "2006-06-24 11:29:58 bkorb"
  *
  *  This file contains the routines that deal with processing quoted strings
index 0dbe5661414c7e929aa259cc5f78edfa3565d609..cf5d6d1172c5187e945888c5083d18f7eddc6e62 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- *  $Id: enumeration.c,v 4.11 2006/06/24 23:34:51 bkorb Exp $
+ *  $Id: enumeration.c,v 4.9 2006/06/24 23:36:08 bkorb Exp $
  * Time-stamp:      "2006-06-24 10:46:02 bkorb"
  *
  *   Automated Options Paged Usage module.
index caaa712bac907f7167c805d222a4d62965f80beb..d7e9e8c74fad6ee05d271c13b0ff11ac4a181ca2 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- *  $Id: environment.c,v 4.10 2006/03/25 19:23:28 bkorb Exp $
+ *  $Id: environment.c,v 4.7 2006/03/31 19:52:10 bkorb Exp $
  * Time-stamp:      "2005-10-29 13:23:59 bkorb"
  *
  *  This file contains all of the routines that must be linked into
index 5512fd27c6219e83c6952216d0535863c4ba0309..404597466238b95e968dc19c0d37ee786fa87134 100644 (file)
@@ -2,7 +2,7 @@
  *  
  *  DO NOT EDIT THIS FILE   (genshell.c)
  *  
- *  It has been AutoGen-ed  Sunday September 10, 2006 at 04:03:10 PM PDT
+ *  It has been AutoGen-ed  Tuesday September 19, 2006 at 09:27:53 PM PDT
  *  From the definitions    genshell.def
  *  and the template file   options
  */
@@ -38,6 +38,7 @@
  */
 
 
+#include <limits.h>
 
 #define OPTION_CODE_COMPILE 1
 #include "genshell.h"
@@ -80,7 +81,7 @@ tSCC    zScriptText[] =
 tSCC    zScript_NAME[]             = "SCRIPT";
 tSCC    zScript_Name[]             = "script";
 #define SCRIPT_FLAGS       (OPTST_DISABLED \
-       | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
+        | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
 
 /*
  *  Shell option description:
@@ -92,7 +93,7 @@ tSCC    zNotShell_Name[]           = "no-shell";
 tSCC    zNotShell_Pfx[]            = "no";
 #define zShell_Name                  (zNotShell_Name + 3)
 #define SHELL_FLAGS       (OPTST_INITENABLED \
-       | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
+        | OPTST_SET_ARGTYPE(OPARG_TYPE_STRING))
 
 /*
  *  Help/More_Help/Version option descriptions:
index ee76422f4a6fa76b32d5eef818742b659baa26f4..4f197c70bd34ece0c6a6da064ec719f0e356c67b 100644 (file)
@@ -2,7 +2,7 @@
  *  
  *  DO NOT EDIT THIS FILE   (genshell.h)
  *  
- *  It has been AutoGen-ed  Sunday September 10, 2006 at 04:03:10 PM PDT
+ *  It has been AutoGen-ed  Tuesday September 19, 2006 at 09:27:53 PM PDT
  *  From the definitions    genshell.def
  *  and the template file   options
  */
index 19edbcd34c23f28a7ed61a7c5e6a652c9674381c..350f8208edca77f4e685cc50f16d724fc051b896 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- *  $Id: load.c,v 4.23 2006/07/01 21:57:23 bkorb Exp $
+ *  $Id: load.c,v 4.11 2006/07/14 04:31:37 bkorb Exp $
  *  Time-stamp:      "2006-07-01 12:43:03 bkorb"
  *
  *  This file contains the routines that deal with processing text strings
index eb2aaf14e7cf6e6078a76257e35e6a5b415b9907..7ef37ef20b56a05e5bf5c6256c417cab3922539f 100644 (file)
@@ -2,7 +2,7 @@ dnl  -*- buffer-read-only: t -*- vi: set ro:
 dnl 
 dnl DO NOT EDIT THIS FILE   (libopts.m4)
 dnl 
-dnl It has been AutoGen-ed  Sunday September 10, 2006 at 04:03:12 PM PDT
+dnl It has been AutoGen-ed  Tuesday September 19, 2006 at 09:27:55 PM PDT
 dnl From the definitions    libopts.def
 dnl and the template file   conftest.tpl
 dnl
@@ -422,6 +422,11 @@ AC_DEFUN([LIBOPTS_CHECK],[
        NEED_LIBOPTS_DIR=true
     fi])
 
+  AC_ARG_ENABLE([libopts-install],
+    AC_HELP_STRING([--disable-libopts-install],
+       [Do not install libopts with client installation]))
+  AM_CONDITIONAL([INSTALL_LIBOPTS],[test "X${enable_libopts_install}" != Xno])
+
   [if test -z "${NEED_LIBOPTS_DIR}" ; then]
      AC_MSG_CHECKING([whether autoopts-config can be found])
      AC_ARG_WITH([autoopts-config],
index dbb4ff590d9aa18ca33db4533f64ecd7f3016acb..171cb23b812505348033821ef481d0145d4dd015 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- *  $Id: makeshell.c,v 4.14 2006/07/27 02:51:47 bkorb Exp $
+ *  $Id: makeshell.c,v 4.10 2006/07/27 02:59:08 bkorb Exp $
  * Time-stamp:      "2006-07-24 21:30:51 bkorb"
  *
  *  This module will interpret the options set in the tOptions
index 00b88691afb4c87cdca25334427af11723b84d86..2246654d6ced8b33386ad6a944284b560b798886 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- *  $Id: nested.c,v 4.9 2006/03/25 19:23:28 bkorb Exp $
+ *  $Id: nested.c,v 4.5 2006/09/20 04:27:44 bkorb Exp $
  *  Time-stamp:      "2005-07-27 10:10:28 bkorb"
  *
  *   Automated Options Nested Values module.
@@ -511,10 +511,10 @@ static void
 unloadNestedArglist( tArgList* pAL )
 {
     int ct = pAL->useCt;
-    tOptionValue** ppNV = (tOptionValue**)(pAL->apzArgs);
+    tCC** ppNV = pAL->apzArgs;
 
     while (ct-- > 0) {
-        tOptionValue* pNV = *(ppNV++);
+        tOptionValue* pNV = (tOptionValue*)*(ppNV++);
         if (pNV->valType == OPARG_TYPE_HIERARCHY)
             unloadNestedArglist( pNV->v.nestVal );
         free( pNV );
index 26790df3c78b167b47b64cc6ac2ff662d271f9ff..08c520be1def15ea9e5246b8d1957725d2fce008 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- *  $Id: numeric.c,v 4.7 2006/03/25 19:23:28 bkorb Exp $
+ *  $Id: numeric.c,v 4.5 2006/03/31 19:52:10 bkorb Exp $
  *  Time-stamp:      "2005-02-14 08:22:56 bkorb"
  */
 
index 61684555d7f8fa9edff4b9b68b924110777d3f73..4dc7075413bebece687e59498bf2112c7fd92b76 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- *  $Id: pgusage.c,v 4.12 2006/07/16 15:27:50 bkorb Exp $
+ *  $Id: pgusage.c,v 4.10 2006/07/16 15:29:31 bkorb Exp $
  * Time-stamp:      "2006-07-16 08:13:26 bkorb"
  *
  *   Automated Options Paged Usage module.
index e2950bcc827f6a5a8659f42dade63a24e1e88410..03d431d556e019ea26cecb32a248ffc75fb05fde 100644 (file)
@@ -1,7 +1,7 @@
 /* -*- buffer-read-only: t -*- vi: set ro:
  *
  * Prototypes for autoopts
- * Generated Sun Sep 10 16:03:11 PDT 2006
+ * Generated Tue Sep 19 21:27:54 PDT 2006
  */
 #ifndef AUTOOPTS_PROTO_H_GUARD
 #define AUTOOPTS_PROTO_H_GUARD 1
index f98f75260bd797e72bee7c88285f2dd35b0613d6..1f7a611ce804c662613bd3f2194a29eeadfdc05b 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- *  $Id: putshell.c,v 4.12 2006/07/16 15:27:50 bkorb Exp $
+ *  $Id: putshell.c,v 4.9 2006/07/16 15:29:31 bkorb Exp $
  * Time-stamp:      "2006-07-16 08:13:24 bkorb"
  *
  *  This module will interpret the options set in the tOptions
index ce788b3303c62cf41d5fef44a5280831b3f73aa6..798614cee90a616de93e0ab28522a82eff6453d4 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- *  restore.c  $Id: restore.c,v 4.7 2006/03/25 19:23:28 bkorb Exp $
+ *  restore.c  $Id: restore.c,v 4.5 2006/03/31 19:52:11 bkorb Exp $
  * Time-stamp:      "2005-02-23 15:10:20 bkorb"
  *
  *  This module's routines will save the current option state to memory
index d225c27b4e73de274ca63eed094095773faacc4c..9c73057e431cc7c7c641675ba09869014a2116ed 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- *  save.c  $Id: save.c,v 4.16 2006/07/16 15:27:50 bkorb Exp $
+ *  save.c  $Id: save.c,v 4.8 2006/07/16 15:29:31 bkorb Exp $
  * Time-stamp:      "2006-07-16 08:13:22 bkorb"
  *
  *  This module's routines will take the currently set options and
index de0bd5634d1bfa997d7f71a81f343d0cacca5de8..90c81a8c93c059b276fce3a53daa6e5bb14bd96f 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- *  sort.c  $Id: sort.c,v 4.10 2006/06/24 23:34:51 bkorb Exp $
+ *  sort.c  $Id: sort.c,v 4.7 2006/06/24 23:36:08 bkorb Exp $
  * Time-stamp:      "2006-06-24 10:53:35 bkorb"
  *
  *  This module implements argument sorting.
index 5f51f37db7515ca29da417095cdf1800b0ecb9ec..65db828eb59ae7b310d3478393cdd8177559bddf 100644 (file)
@@ -1,7 +1,7 @@
 
 /*
  *  stack.c
- *  $Id: stack.c,v 4.10 2006/07/14 04:20:17 bkorb Exp $
+ *  $Id: stack.c,v 4.7 2006/07/14 04:31:38 bkorb Exp $
  *  Time-stamp:      "2006-07-13 21:11:29 bkorb"
  *
  *  This is a special option processing routine that will save the
index 42336dc97c40d532f33e0935981cbea1529bf987..f66ddd804fbf965bdca6c59f93b26055c13dfb33 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- *  $Id: streqvcmp.c,v 4.10 2006/07/27 02:51:47 bkorb Exp $
+ *  $Id: streqvcmp.c,v 4.7 2006/07/27 02:59:08 bkorb Exp $
  * Time-stamp:      "2006-07-26 18:25:53 bkorb"
  *
  *  String Equivalence Comparison
index 84d7242a085e96cbb7766df8e1804f0bf1416f20..e0878f9c862f16421f9481d5d4c5d460c613bccc 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: text_mmap.c,v 4.12 2006/08/22 16:06:36 bkorb Exp $
+ * $Id: text_mmap.c,v 4.12 2006/09/16 19:58:54 bkorb Exp $
  *
  * Time-stamp:      "2006-09-10 14:50:04 bkorb"
  */
@@ -19,7 +19,8 @@
 #define AO_INVALID_FD  -1
 
 #define FILE_WRITABLE(_prt,_flg) \
-       ((_prt & PROT_WRITE) && ((_flg & (MAP_SHARED|MAP_PRIVATE)) == MAP_SHARED))
+        (   (_prt & PROT_WRITE) \
+         && ((_flg & (MAP_SHARED|MAP_PRIVATE)) == MAP_SHARED))
 #define MAP_FAILED_PTR ((void*)MAP_FAILED)
 
 /*=export_func  text_mmap
index 09b80f5854ed27c569e7701618adf9921ff05a34..2c9c5e7ea2b5ae3399b5635ac40d4794bfd3c900 100644 (file)
 /* = = = START-STATIC-FORWARD = = = */
 /* static forward declarations maintained by :mkfwd */
 static void
-copy_cooked( ch_t** ppDest, cc_t** ppSrc );
+copy_cooked( ch_t** ppDest, const char ** ppSrc );
 
 static void
-copy_raw( ch_t** ppDest, cc_t** ppSrc );
+copy_raw( ch_t** ppDest, const char ** ppSrc );
 /* = = = END-STATIC-FORWARD = = = */
 
 static void
-copy_cooked( ch_t** ppDest, cc_t** ppSrc )
+copy_cooked( ch_t** ppDest, const char ** ppSrc )
 {
     ch_t* pDest = (ch_t*)*ppDest;
     const ch_t* pSrc  = (const ch_t*)(*ppSrc + 1);
@@ -60,15 +60,15 @@ copy_cooked( ch_t** ppDest, cc_t** ppSrc )
 
  done:
     *ppDest = (ch_t*)pDest; /* next spot for storing character */
-    *ppSrc  = (ch_t*)pSrc;  /* char following closing quote    */
+    *ppSrc  = (const char *)pSrc;  /* char following closing quote    */
 }
 
 
 static void
-copy_raw( ch_t** ppDest, cc_t** ppSrc )
+copy_raw( ch_t** ppDest, const char ** ppSrc )
 {
     ch_t* pDest = *ppDest;
-    cc_t* pSrc  = *ppSrc + 1;
+    cc_t* pSrc  = (cc_t*) (*ppSrc + 1);
 
     for (;;) {
         ch_t ch = *(pSrc++);
@@ -108,7 +108,7 @@ copy_raw( ch_t** ppDest, cc_t** ppSrc )
 
  done:
     *ppDest = pDest; /* next spot for storing character */
-    *ppSrc  = pSrc;  /* char following closing quote    */
+    *ppSrc  = (const char *) pSrc;  /* char following closing quote    */
 }
 
 
@@ -189,7 +189,7 @@ ao_string_tokenize( const char* str )
      *  Trim leading white space.  Use "ENOENT" and a NULL return to indicate
      *  an empty string was passed.
      */
-    while (isspace( *str ))  str++;
+    while (isspace( (ch_t)*str ))  str++;
     if (*str == NUL) {
     bogus_str:
         errno = ENOENT;
@@ -231,33 +231,33 @@ ao_string_tokenize( const char* str )
         do  {
             res->tkn_list[ res->tkn_ct++ ] = pzDest;
             for (;;) {
-                char ch = *str;
+                int ch = (ch_t)*str;
                 if (isspace( ch )) {
                 found_white_space:
-                    while (isspace( *++str ))  ;
+                    while (isspace( (ch_t)*++str ))  ;
                     break;
                 }
 
                 switch (ch) {
                 case '"':
-                    copy_cooked( &pzDest, (cc_t**)(void*)&str );
+                    copy_cooked( &pzDest, &str );
                     if (str == NULL) {
                         free(res);
                         errno = EINVAL;
                         return NULL;
                     }
-                    if (isspace( *str ))
+                    if (isspace( (ch_t)*str ))
                         goto found_white_space;
                     break;
 
                 case '\'':
-                    copy_raw( &pzDest, (cc_t**)(void*)&str );
+                    copy_raw( &pzDest, &str );
                     if (str == NULL) {
                         free(res);
                         errno = EINVAL;
                         return NULL;
                     }
-                    if (isspace( *str ))
+                    if (isspace( (ch_t)*str ))
                         goto found_white_space;
                     break;
 
index 2dae8c09ab6c697d976436221b22bc234333a308..18843cdd0f0e7faa720a2e8aeabb48ecd75e79b9 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- *  usage.c  $Id: usage.c,v 4.15 2006/08/12 17:31:50 bkorb Exp $
+ *  usage.c  $Id: usage.c,v 4.10 2006/08/12 17:36:43 bkorb Exp $
  * Time-stamp:      "2006-07-01 12:41:02 bkorb"
  *
  *  This module implements the default usage procedure for
index e01809a8053439e2d6f44cc189c7792501a1650b..dd50ec4d893c702b022d8bb6a29e5df2e03010f0 100644 (file)
@@ -1,5 +1,5 @@
 
-/*  $Id: version.c,v 4.9 2006/07/27 02:51:47 bkorb Exp $
+/*  $Id: version.c,v 4.7 2006/07/27 02:59:08 bkorb Exp $
  * Time-stamp:      "2006-07-26 18:38:16 bkorb"
  *
  *  This module implements the default usage procedure for