- * Copyright (c) 1998-2009,2010 Free Software Foundation, Inc. *
+ * Copyright 2020 Thomas E. Dickey *
+ * Copyright 1998-2010,2012 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 *
* *
* Permission is hereby granted, free of charge, to any person obtaining a *
* copy of this software and associated documentation files (the *
- pg->pmax = field_cnt - 1;
- form->maxfield = field_cnt;
- form->maxpage = page_nr;
+ pg->pmax = (short) (field_cnt - 1);
+ form->maxfield = (short) field_cnt;
+ form->maxpage = (short) page_nr;
| E_CONNECTED - a field is already connected
| E_SYSTEM_ERROR - not enough memory
+--------------------------------------------------------------------------*/
| E_CONNECTED - a field is already connected
| E_SYSTEM_ERROR - not enough memory
+--------------------------------------------------------------------------*/
| E_SYSTEM_ERROR - not enough memory
+--------------------------------------------------------------------------*/
#if NCURSES_SP_FUNCS
| E_SYSTEM_ERROR - not enough memory
+--------------------------------------------------------------------------*/
#if NCURSES_SP_FUNCS
| E_BAD_ARGUMENT - invalid form pointer
| E_POSTED - form is posted
+--------------------------------------------------------------------------*/
| E_BAD_ARGUMENT - invalid form pointer
| E_POSTED - form is posted
+--------------------------------------------------------------------------*/
| E_POSTED - form is posted
| E_SYSTEM_ERROR - not enough memory
+--------------------------------------------------------------------------*/
| E_POSTED - form is posted
| E_SYSTEM_ERROR - not enough memory
+--------------------------------------------------------------------------*/
|
| Return Values : Pointer to field array
+--------------------------------------------------------------------------*/
|
| Return Values : Pointer to field array
+--------------------------------------------------------------------------*/
form_fields(const FORM *form)
{
T((T_CALLED("form_field(%p)"), (const void *)form));
form_fields(const FORM *form)
{
T((T_CALLED("form_field(%p)"), (const void *)form));
|
| Return Values : Number of fields, -1 if none are defined
+--------------------------------------------------------------------------*/
|
| Return Values : Number of fields, -1 if none are defined
+--------------------------------------------------------------------------*/
field_count(const FORM *form)
{
T((T_CALLED("field_count(%p)"), (const void *)form));
field_count(const FORM *form)
{
T((T_CALLED("field_count(%p)"), (const void *)form));