]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - form/fty_alpha.c
ncurses 5.3
[ncurses.git] / form / fty_alpha.c
index 4f24c3192715f75dc0a8dfffbc6d383851b0e30c..aa5c7c7d08f9de6d7b2b56ffc4a966c30f3dd150 100644 (file)
@@ -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"
 
 *                                                                          *
 ***************************************************************************/
 
 #include "form.priv.h"
 
-MODULE_ID("$Id: fty_alpha.c,v 1.6 1997/02/15 17:31:08 tom Exp $")
+MODULE_ID("$Id: fty_alpha.c,v 1.11 2002/07/06 15:33:27 juergen Exp $")
 
 typedef struct {
   int width;
 
 typedef struct {
   int width;
@@ -48,13 +49,13 @@ static void *Make_Alpha_Type(va_list * ap)
 static void *Copy_Alpha_Type(const void * argp)
 {
   const alphaARG *ap = (const alphaARG *)argp;
 static void *Copy_Alpha_Type(const void * argp)
 {
   const alphaARG *ap = (const alphaARG *)argp;
-  alphaARG *new = (alphaARG *)malloc(sizeof(alphaARG));
+  alphaARG *result = (alphaARG *)malloc(sizeof(alphaARG));
   
   
-  if (new)
+  if (result)
     {
     {
-      *new = *ap;
+      *result = *ap;
     }
     }
-  return ((void *)new);
+  return ((void *)result);
 }
 
 /*---------------------------------------------------------------------------
 }
 
 /*---------------------------------------------------------------------------
@@ -133,6 +134,6 @@ static FIELDTYPE typeALPHA = {
   NULL
 };
 
   NULL
 };
 
-FIELDTYPE* TYPE_ALPHA = &typeALPHA;
+NCURSES_EXPORT_VAR(FIELDTYPE*) TYPE_ALPHA = &typeALPHA;
 
 /* fty_alpha.c ends here */
 
 /* fty_alpha.c ends here */