ncurses 5.4
[ncurses.git] / form / fty_alnum.c
index 5f358042d0c004dd2e0f5dc47bf9d45521f1288b..7eb5a788ecd367443b9d41fd52f7ef5814252788 100644 (file)
@@ -7,13 +7,13 @@
  */
 /***************************************************************************
 *                                                                          *
-*  Author : Juergen Pfeifer, Juergen.Pfeifer@T-Online.de                   *
+*  Author : Juergen Pfeifer                                                *
 *                                                                          *
 ***************************************************************************/
 
 #include "form.priv.h"
 
-MODULE_ID("$Id: fty_alnum.c,v 1.6 1997/02/15 17:31:21 tom Exp $")
+MODULE_ID("$Id: fty_alnum.c,v 1.12 2003/10/25 14:54:48 tom Exp $")
 
 typedef struct {
   int width;
@@ -48,12 +48,12 @@ static void *Make_AlphaNumeric_Type(va_list * ap)
 static void *Copy_AlphaNumeric_Type(const void *argp)
 {
   const alnumARG *ap = (const alnumARG *)argp;
-  alnumARG *new = (alnumARG *)malloc(sizeof(alnumARG));
+  alnumARG *result = (alnumARG *)malloc(sizeof(alnumARG));
 
-  if (new)
-    *new = *ap;
+  if (result)
+    *result = *ap;
 
-  return ((void *)new);
+  return ((void *)result);
 }
 
 /*---------------------------------------------------------------------------
@@ -132,6 +132,6 @@ static FIELDTYPE typeALNUM = {
   NULL
 };
 
-FIELDTYPE* TYPE_ALNUM = &typeALNUM;
+NCURSES_EXPORT_VAR(FIELDTYPE*) TYPE_ALNUM = &typeALNUM;
 
 /* fty_alnum.c ends here */