Added new function form_max_page.
This commit is contained in:
parent
9bb8631d38
commit
3ebef9c407
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: form.c,v 1.3 2001/01/16 01:02:47 blymn Exp $ */
|
||||
/* $NetBSD: form.c,v 1.4 2001/02/16 03:21:35 blymn Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998-1999 Brett Lymn
|
||||
|
@ -408,6 +408,18 @@ set_form_page(FORM *form, int page)
|
|||
return E_OK;
|
||||
}
|
||||
|
||||
/*
|
||||
* Return the maximum page of the form.
|
||||
*/
|
||||
int
|
||||
form_max_page(FORM *form)
|
||||
{
|
||||
if (form == NULL)
|
||||
return _formi_default_form.max_page;
|
||||
else
|
||||
return form->max_page;
|
||||
}
|
||||
|
||||
/*
|
||||
* Return the current page of the form.
|
||||
*/
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: form.h,v 1.8 2001/02/10 14:53:11 blymn Exp $ */
|
||||
/* $NetBSD: form.h,v 1.9 2001/02/16 03:21:35 blymn Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998-1999 Brett Lymn
|
||||
|
@ -63,7 +63,7 @@ typedef unsigned int Form_Options;
|
|||
#define O_AUTOSKIP 0x040 /* Skip to next field when current is full */
|
||||
#define O_NULLOK 0x080 /* Field is allowed to contain no data */
|
||||
#define O_STATIC 0x100 /* Field is not dynamic */
|
||||
#define O_PASSOK 0x200 /* ??? */
|
||||
#define O_PASSOK 0x200 /* An umodified field is OK */
|
||||
|
||||
/*
|
||||
* Form driver requests - be VERY careful about changing the ordering
|
||||
|
@ -284,6 +284,7 @@ void *field_userptr(FIELD *);
|
|||
int form_driver(FORM *, int);
|
||||
FIELD **form_fields(FORM *);
|
||||
Form_Hook form_init(FORM *);
|
||||
int form_max_page(FORM *);
|
||||
Form_Options form_opts(FORM *);
|
||||
int form_opts_off(FORM *, Form_Options);
|
||||
int form_opts_on(FORM *, Form_Options);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# $NetBSD: shlib_version,v 1.10 2001/02/10 14:53:11 blymn Exp $
|
||||
# $NetBSD: shlib_version,v 1.11 2001/02/16 03:21:35 blymn Exp $
|
||||
# Remember to update distrib/sets/lists/base/shl.* when changing
|
||||
#
|
||||
major=1
|
||||
minor=6
|
||||
minor=7
|
||||
|
|
Loading…
Reference in New Issue