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

Function FE_Insert_Character

Source/CursesDialog/form/frm_driver.c:2301–2323  ·  view source on GitHub ↗

--------------------------------------------------------------------------- | Facility : libnform | Function : static int FE_Insert_Character(FORM * form) | | Description : Insert blank character at the cursor position | | Return Values : E_OK | E_REQUEST_DENIED +--------------------------------------------------------------------------*/

Source from the content-addressed store, hash-verified

2299}
2300
2301/*---------------------------------------------------------------------------
2302| Facility : libnform
2303| Function : static int FE_Insert_Character(FORM * form)
2304|
2305| Description : Insert blank character at the cursor position
2306|
2307| Return Values : E_OK
2308| E_REQUEST_DENIED
2309+--------------------------------------------------------------------------*/
2310static int FE_Insert_Character(FORM * form)
2311{
2312 FIELD *field = form->current;
2313 int result = E_REQUEST_DENIED;
2314
2315 if (Check_Char(field->type,(int)C_BLANK,(TypeArgument *)(field->arg)))
2316 {
2317 bool There_Is_Room = Is_There_Room_For_A_Char_In_Line(form);
2318
2319 if (There_Is_Room ||
2320 ((Single_Line_Field(field) && Growable(field))))
2321 {
2322 if (!There_Is_Room && !Field_Grown(field,1))
2323 result = E_SYSTEM_ERROR;
2324 else
2325 {
2326 winsch(form->w,(chtype)C_BLANK);

Callers

nothing calls this directly

Calls 5

Check_CharFunction · 0.85
Field_GrownFunction · 0.85
winschFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…