usr/src/cmd/fmli/oh/if_form.c
changeset 9521 b061a79d3d1a
parent 9519 fc2830e2f3c4
child 9694 78fafb281255
equal deleted inserted replaced
9520:017f1b58f68b 9521:b061a79d3d1a
     1 /*
     1 /*
     2  * CDDL HEADER START
     2  * CDDL HEADER START
     3  *
     3  *
     4  * The contents of this file are subject to the terms of the
     4  * The contents of this file are subject to the terms of the
     5  * Common Development and Distribution License (the "License").
     5  * Common Development and Distribution License, Version 1.0 only
     6  * You may not use this file except in compliance with the License.
     6  * (the "License").  You may not use this file except in compliance
       
     7  * with the License.
     7  *
     8  *
     8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
     9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
     9  * or http://www.opensolaris.org/os/licensing.
    10  * or http://www.opensolaris.org/os/licensing.
    10  * See the License for the specific language governing permissions
    11  * See the License for the specific language governing permissions
    11  * and limitations under the License.
    12  * and limitations under the License.
    18  *
    19  *
    19  * CDDL HEADER END
    20  * CDDL HEADER END
    20  */
    21  */
    21 
    22 
    22 /*
    23 /*
    23  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
    24  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
    24  * Use is subject to license terms.
    25  * Use is subject to license terms.
    25  */
    26  */
    26 
    27 
    27 /*	Copyright (c) 1984, 1985, 1986, 1987, 1988, 1989 AT&T	*/
    28 /*	Copyright (c) 1984, 1985, 1986, 1987, 1988, 1989 AT&T	*/
    28 /*	  All Rights Reserved  	*/
    29 /*	  All Rights Reserved  	*/
    29 
    30 
       
    31 
       
    32 #pragma ident	"%Z%%M%	%I%	%E% SMI"
    30 
    33 
    31 #include	<ctype.h>
    34 #include	<ctype.h>
    32 #include	<stdio.h>
    35 #include	<stdio.h>
    33 #include	<string.h>
    36 #include	<string.h>
    34 #include        <curses.h>
    37 #include        <curses.h>
   975 	return(SUCCESS);
   978 	return(SUCCESS);
   976     }
   979     }
   977     return(FAIL);
   980     return(FAIL);
   978 }
   981 }
   979 
   982 
   980 static int chk_page();
       
   981 
       
   982 /*
   983 /*
   983  * CHK_FORM returns the actual number of the FIRST field that
   984  * CHK_FORM returns the actual number of the FIRST field that
   984  * is invalid ....
   985  * is invalid ....
   985  */ 
   986  */ 
   986 static int
   987 static int
   987 chk_form()
   988 chk_form()
   988 {
   989 {
   989     register int n, page, fldnum;
   990     register int n, page, fldnum;
   990     int savefield, savepage, retval;
   991     int savefield, savepage, retval;
       
   992     static int chk_page();
   991 
   993 
   992     /*
   994     /*
   993      * Save current form page/field
   995      * Save current form page/field
   994      */
   996      */
   995     savepage = CURpage();
   997     savepage = CURpage();