X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=form%2Ffty_num.c;h=db4d648c5f4467c3690c7147ac46c5750ff7bb35;hp=eb2d5869616f87ef40f3d360b13312f287cd449d;hb=46722468f47c2b77b3987729b4bcf2321cccfd01;hpb=3a9b6a3bf0269231bef7de74757a910dedd04e0c diff --git a/form/fty_num.c b/form/fty_num.c index eb2d5869..db4d648c 100644 --- a/form/fty_num.c +++ b/form/fty_num.c @@ -7,13 +7,14 @@ */ /*************************************************************************** * * -* Author : Juergen Pfeifer, Juergen.Pfeifer@T-Online.de * +* Author : Juergen Pfeifer * +* Contact: http://www.familiepfeifer.de/Contact.aspx?Lang=en * * * ***************************************************************************/ #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.15 2002/07/06 15:33:27 juergen Exp $") #if HAVE_LOCALE_H #include @@ -63,15 +64,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 +170,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 +191,6 @@ static FIELDTYPE typeNUMERIC = { NULL }; -FIELDTYPE* TYPE_NUMERIC = &typeNUMERIC; +NCURSES_EXPORT_VAR(FIELDTYPE*) TYPE_NUMERIC = &typeNUMERIC; /* fty_num.c ends here */