X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=man%2Fform_fieldtype.3x;h=775d1f26480cad3660a75281284368a5679a8884;hp=50f8627842b4a29a63b172ec0ee920c9dab16e91;hb=e5d1530ca229aef94a3c84ad33f8ae89f35c4045;hpb=eccca377f55c70b12e3e92621d94d1e1c1fcfb7d diff --git a/man/form_fieldtype.3x b/man/form_fieldtype.3x index 50f86278..775d1f26 100644 --- a/man/form_fieldtype.3x +++ b/man/form_fieldtype.3x @@ -1,6 +1,7 @@ '\" t .\"*************************************************************************** -.\" Copyright (c) 1998-2018,2019 Free Software Foundation, Inc. * +.\" Copyright 2018-2019,2020 Thomas E. Dickey * +.\" Copyright 1998-2006,2010 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 * @@ -27,19 +28,19 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: form_fieldtype.3x,v 1.19 2019/01/20 20:31:42 tom Exp $ +.\" $Id: form_fieldtype.3x,v 1.22 2020/10/17 23:07:47 tom Exp $ .TH form_fieldtype 3X "" .SH NAME \fBform_fieldtype\fR \- define validation-field types .SH SYNOPSIS \fB#include \fR -.br +.sp FIELDTYPE *new_fieldtype( bool (* const field_check)(FIELD *, const void *), bool (* const char_check)(int, const void *)); .br int free_fieldtype(FIELDTYPE *fieldtype); -.br +.sp int set_fieldtype_arg( FIELDTYPE *fieldtype, void *(* const make_arg)(va_list *), @@ -50,10 +51,9 @@ int set_fieldtype_choice( FIELDTYPE *fieldtype, bool (* const next_choice)(FIELD *, const void *), bool (* const prev_choice)(FIELD *, const void *)); -.br +.sp FIELDTYPE *link_fieldtype(FIELDTYPE *type1, FIELDTYPE *type2); -.br .SH DESCRIPTION The function \fBnew_fieldtype\fR creates a new field type usable for data validation. @@ -98,7 +98,7 @@ These functions take the field pointer and an argument-block structure as arguments. .SH RETURN VALUE The pointer-valued routines return NULL on error. -They set errno according to their success: +They set \fBerrno\fP according to their success: .TP 5 .B E_OK The routine succeeded.