|
coan 4.2.4
|
|
Modules | |
| Macro-generated code | |
Files | |
| file | line_edit.c |
Defines | |
| #define | DELETE_CHARS(start, end) memset(start,DELETEABLE_CHR,end - start) |
Functions | |
| static void | tail_edit (char *where, const char *what) |
| #define DELETE_CHARS | ( | start, | |
| end | |||
| ) | memset(start,DELETEABLE_CHR,end - start) |
Macro function that marks a character block as logically deleted in the course of simplifying a directive, by setting all chars with a deletion placeholder
| start | The start of the text to be deleted. |
| end | Just past the text to be deleted. |
Definition at line 56 of file line_edit.c.
Referenced by cut_text().
| static void tail_edit | ( | char * | where, |
| const char * | what | ||
| ) | [static] |
Replace text at the end of the line-buffer
| where | The start of the terminal segment of the line-buffer to replace |
| what | The start of the null-terminated string to replace the terminal segement at where. |
The function does the editing work for keywordedit(). It ensures that there is sufficient capacity in the line-buffer to contain the replacement, extending the buffer if necessary.
Definition at line 71 of file line_edit.c.
References ensure_buf(), LINE_END, and LINE_START.
Referenced by keywordedit().
