MCPcopy Create free account
hub / github.com/Kitware/CMake / Associate_Fields

Function Associate_Fields

Source/CursesDialog/form/frm_def.c:249–266  ·  view source on GitHub ↗

--------------------------------------------------------------------------- | Facility : libnform | Function : static int Associate_Fields(FORM *form, FIELD **fields) | | Description : Set association between form and array of fields. | If there are fields, position to first active field. | | Return Values : E_OK - success |

Source from the content-addressed store, hash-verified

247| Return Values : E_OK - success
248| any other - error occurred
249+--------------------------------------------------------------------------*/
250INLINE static int Associate_Fields(FORM *form, FIELD **fields)
251{
252 int res = Connect_Fields(form,fields);
253 if (res == E_OK)
254 {
255 if (form->maxpage>0)
256 {
257 form->curpage = 0;
258 form_driver(form,FIRST_ACTIVE_MAGIC);
259 }
260 else
261 {
262 form->curpage = -1;
263 form->current = (FIELD *)0;
264 }
265 }
266 return(res);
267}
268
269/*---------------------------------------------------------------------------

Callers 2

new_formFunction · 0.85
set_form_fieldsFunction · 0.85

Calls 2

Connect_FieldsFunction · 0.85
form_driverFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…