X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=form%2Ffty_num.c;h=6bc95c951b237260155345b1441d147de7feb508;hp=eb2d5869616f87ef40f3d360b13312f287cd449d;hb=a8987e73ec254703634802b4f7ee30d3a485524d;hpb=3a9b6a3bf0269231bef7de74757a910dedd04e0c diff --git a/form/fty_num.c b/form/fty_num.c index eb2d5869..6bc95c95 100644 --- a/form/fty_num.c +++ b/form/fty_num.c @@ -7,13 +7,13 @@ */ /*************************************************************************** * * -* Author : Juergen Pfeifer, Juergen.Pfeifer@T-Online.de * +* Author : Juergen Pfeifer * * * ***************************************************************************/ #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.16 2003/10/25 14:54:48 tom Exp $") #if HAVE_LOCALE_H #include @@ -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 '.') @@ -190,6 +190,6 @@ static FIELDTYPE typeNUMERIC = { NULL }; -FIELDTYPE* TYPE_NUMERIC = &typeNUMERIC; +NCURSES_EXPORT_VAR(FIELDTYPE*) TYPE_NUMERIC = &typeNUMERIC; /* fty_num.c ends here */