Lines Matching refs:char_storage
307 int char_storage; member
1102 if (state->undo_rec[0].char_storage >= 0) { in stb_textedit_discard_undo()
1108 if (state->undo_rec[i].char_storage >= 0) in stb_textedit_discard_undo()
1109 … state->undo_rec[i].char_storage -= n; // @OPTIMIZE: get rid of char_storage and infer it in stb_textedit_discard_undo()
1126 if (state->undo_rec[k].char_storage >= 0) { in stb_textedit_discard_redo()
1133 if (state->undo_rec[i].char_storage >= 0) in stb_textedit_discard_redo()
1134 state->undo_rec[i].char_storage += n; in stb_textedit_discard_redo()
1185 r->char_storage = -1; in stb_text_createundo()
1188 r->char_storage = state->undo_char_point; in stb_text_createundo()
1190 return &state->undo_char[r->char_storage]; in stb_text_createundo()
1204 r->char_storage = -1; in stb_text_undo()
1237 r->char_storage = s->redo_char_point - u.delete_length; in stb_text_undo()
1242 s->undo_char[r->char_storage + i] = STB_TEXTEDIT_GETCHAR(str, u.where + i); in stb_text_undo()
1252 STB_TEXTEDIT_INSERTCHARS(str, u.where, &s->undo_char[u.char_storage], u.insert_length); in stb_text_undo()
1279 u->char_storage = -1; in stb_text_redo()
1290 u->char_storage = s->undo_char_point; in stb_text_redo()
1295 s->undo_char[u->char_storage + i] = STB_TEXTEDIT_GETCHAR(str, u->where + i); in stb_text_redo()
1303 STB_TEXTEDIT_INSERTCHARS(str, r.where, &s->undo_char[r.char_storage], r.insert_length); in stb_text_redo()