]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - form/form.h
ncurses 4.2
[ncurses.git] / form / form.h
index 6e2eabe209d77738d337ff13c5e42cd782d8f037..77fd9506caf0462fc794997a6133d05cd56a1dbb 100644 (file)
@@ -1,24 +1,34 @@
-/*-----------------------------------------------------------------------------+
-|           The ncurses form library is  Copyright (C) 1995-1997               |
-|             by Juergen Pfeifer <Juergen.Pfeifer@T-Online.de>                 |
-|                          All Rights Reserved.                                |
-|                                                                              |
-| Permission to use, copy, modify, and distribute this software and its        |
-| documentation for any purpose and without fee is hereby granted, provided    |
-| that the above copyright notice appear in all copies and that both that      |
-| copyright notice and this permission notice appear in supporting             |
-| documentation, and that the name of the above listed copyright holder(s) not |
-| be used in advertising or publicity pertaining to distribution of the        |
-| software without specific, written prior permission.                         | 
-|                                                                              |
-| THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD TO  |
-| THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FIT-  |
-| NESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR   |
-| ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RE- |
-| SULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, |
-| NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH    |
-| THE USE OR PERFORMANCE OF THIS SOFTWARE.                                     |
-+-----------------------------------------------------------------------------*/
+/****************************************************************************
+ * Copyright (c) 1998 Free Software Foundation, Inc.                        *
+ *                                                                          *
+ * Permission is hereby granted, free of charge, to any person obtaining a  *
+ * copy of this software and associated documentation files (the            *
+ * "Software"), to deal in the Software without restriction, including      *
+ * without limitation the rights to use, copy, modify, merge, publish,      *
+ * distribute, distribute with modifications, sublicense, and/or sell       *
+ * copies of the Software, and to permit persons to whom the Software is    *
+ * furnished to do so, subject to the following conditions:                 *
+ *                                                                          *
+ * The above copyright notice and this permission notice shall be included  *
+ * in all copies or substantial portions of the Software.                   *
+ *                                                                          *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS  *
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF               *
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.   *
+ * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,   *
+ * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR    *
+ * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR    *
+ * THE USE OR OTHER DEALINGS IN THE SOFTWARE.                               *
+ *                                                                          *
+ * Except as contained in this notice, the name(s) of the above copyright   *
+ * holders shall not be used in advertising or otherwise to promote the     *
+ * sale, use or other dealings in this Software without prior written       *
+ * authorization.                                                           *
+ ****************************************************************************/
+
+/****************************************************************************
+ *   Author: Juergen Pfeifer <Juergen.Pfeifer@T-Online.de> 1995,1997        *
+ ****************************************************************************/
 
 #ifndef FORM_H
 #define FORM_H
 
 #ifndef FORM_H
 #define FORM_H
@@ -73,7 +83,7 @@ typedef struct fieldnode {
   struct typenode *    type;     /* field type                 */
   void *               arg;      /* argument for type          */
   char *               buf;      /* field buffers              */
   struct typenode *    type;     /* field type                 */
   void *               arg;      /* argument for type          */
   char *               buf;      /* field buffers              */
-  const void *         usrptr;   /* user pointer               */
+  void *               usrptr;   /* user pointer               */
 } FIELD;
 
        /**************
 } FIELD;
 
        /**************
@@ -120,7 +130,7 @@ typedef struct formnode {
   FIELD **             field;    /* field [maxfield]           */
   FIELD *              current;  /* current field              */
   _PAGE *              page;     /* page [maxpage]             */
   FIELD **             field;    /* field [maxfield]           */
   FIELD *              current;  /* current field              */
   _PAGE *              page;     /* page [maxpage]             */
-  const void *         usrptr;   /* user pointer               */
+  void *               usrptr;   /* user pointer               */
 
   void                  (*forminit)(struct formnode *);
   void                  (*formterm)(struct formnode *);
 
   void                  (*forminit)(struct formnode *);
   void                  (*formterm)(struct formnode *);
@@ -296,7 +306,7 @@ extern int      free_field(FIELD *),
                 field_pad(const FIELD *),
                 set_field_buffer(FIELD *,int,const char *),
                 set_field_status(FIELD *,bool),
                 field_pad(const FIELD *),
                 set_field_buffer(FIELD *,int,const char *),
                 set_field_status(FIELD *,bool),
-                set_field_userptr(FIELD *,const void *),
+                set_field_userptr(FIELD *, void *),
                 set_field_opts(FIELD *,Field_Options),
                 field_opts_on(FIELD *,Field_Options),
                 field_opts_off(FIELD *,Field_Options);
                 set_field_opts(FIELD *,Field_Options),
                 field_opts_on(FIELD *,Field_Options),
                 field_opts_off(FIELD *,Field_Options);
@@ -309,8 +319,7 @@ extern bool     new_page(const FIELD *),
 
 extern void     *field_arg(const FIELD *);
 
 
 extern void     *field_arg(const FIELD *);
 
-extern const void                
-                *field_userptr(const FIELD *);
+extern void     *field_userptr(const FIELD *);
 
 extern FIELDTYPE
                 *field_type(const FIELD *);
 
 extern FIELDTYPE
                 *field_type(const FIELD *);
@@ -355,7 +364,7 @@ extern int      free_form(FORM *),
                 unpost_form(FORM *),
                 pos_form_cursor(FORM *),
                 form_driver(FORM *,int),
                 unpost_form(FORM *),
                 pos_form_cursor(FORM *),
                 form_driver(FORM *,int),
-                set_form_userptr(FORM *,const void *),
+                set_form_userptr(FORM *,void *),
                 set_form_opts(FORM *,Form_Options),
                 form_opts_on(FORM *,Form_Options),
                 form_opts_off(FORM *,Form_Options),
                 set_form_opts(FORM *,Form_Options),
                 form_opts_on(FORM *,Form_Options),
                 form_opts_off(FORM *,Form_Options),
@@ -364,8 +373,7 @@ extern int      free_form(FORM *),
 extern const char
                 *form_request_name(int);
 
 extern const char
                 *form_request_name(int);
 
-extern const void
-                *form_userptr(const FORM *);
+extern void     *form_userptr(const FORM *);
 
 extern Form_Options
                 form_opts(const FORM *);
 
 extern Form_Options
                 form_opts(const FORM *);