]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - form/fty_num.c
ncurses 5.1
[ncurses.git] / form / fty_num.c
index eb2d5869616f87ef40f3d360b13312f287cd449d..ca0fbe01e00f7637cec808aff32b136a7b82d57a 100644 (file)
@@ -7,13 +7,13 @@
  */
 /***************************************************************************
 *                                                                          *
-*  Author : Juergen Pfeifer, Juergen.Pfeifer@T-Online.de                   *
+*  Author : Juergen Pfeifer, juergen.pfeifer@gmx.net                       *
 *                                                                          *
 ***************************************************************************/
 
 #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.13 1999/05/16 17:23:30 juergen 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
                '.')