remove_char() is only used within OpenOCD.
 
Symbols
loading...
Files
loading...

remove_char() function

Removes the char at 'pos'. Returns 1 if the line needs to be refreshed, 2 if not and 0 if nothing was removed

Syntax

static int remove_char(struct current *current,     int pos);

Arguments

current

pos

References

LocationReferrerText
linenoise.c:1573
static int remove_char(struct current *current, int pos)
linenoise.c:1711remove_chars()
while (n-- && remove_char(current, pos)) {
linenoise.c:1912linenoiseEdit()
if (remove_char(current, current->pos - 1) == 1) {
linenoise.c:1925linenoiseEdit()
if (remove_char(current, current->pos) == 1) {
linenoise.c:1957linenoiseEdit()
remove_char(current, current->pos - fixer);
linenoise.c:1970linenoiseEdit()
remove_char(current, current->pos - 1);

Call Tree

Functions calling remove_char()
Functions called by remove_char()
all items filtered out
remove_char()
Data read by remove_char()
Data written by remove_char()
remove_char()::offset
remove_char()::nbytes
remove_char()::rc
remove_char()::last
all items filtered out
remove_char()
remove_char()::rc
all items filtered out