]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - form/fty_num.c
ncurses 4.2
[ncurses.git] / form / fty_num.c
index eb2d5869616f87ef40f3d360b13312f287cd449d..0508e3c47555bd5d84597c4bc5c27aa13595e077 100644 (file)
@@ -13,7 +13,7 @@
 
 #include "form.priv.h"
 
-MODULE_ID("$Id: fty_num.c,v 1.9 1997/04/19 17:26:38 juergen Exp $")
+MODULE_ID("$Id: fty_num.c,v 1.11 1997/10/18 19:32:58 tom Exp $")
 
 #if HAVE_LOCALE_H
 #include <locale.h>
@@ -63,15 +63,15 @@ static void *Make_Numeric_Type(va_list * ap)
 static void *Copy_Numeric_Type(const void * argp)
 {
   const numericARG *ap = (const numericARG *)argp;
-  numericARG *new = (numericARG *)0;
+  numericARG *result = (numericARG *)0;
 
   if (argp)
     {
-      new = (numericARG *)malloc(sizeof(numericARG));
-      if (new)
-       *new  = *ap;
+      result = (numericARG *)malloc(sizeof(numericARG));
+      if (result)
+       *result  = *ap;
     }
-  return (void *)new;
+  return (void *)result;
 }
 
 /*---------------------------------------------------------------------------
@@ -169,7 +169,7 @@ static bool Check_Numeric_Character(int c, const void * argp)
          c == '+'    || 
          c == '-'    || 
          c == (
-#ifdef HAVE_LOCALE_H
+#if HAVE_LOCALE_H
                (L && L->decimal_point) ? *(L->decimal_point) :
 #endif
                '.')