MCPcopy Create free account
hub / github.com/TheOfficialFloW/VitaShell / count_lines_thread

Function count_lines_thread

text.c:453–469  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

451}
452
453static int count_lines_thread(SceSize args, CountParams *params) {
454 TextEditorState *state = params->state;
455
456 state->count_lines_running = 1;
457 state->n_lines = 0;
458
459 int offset = 0;
460
461 while (state->count_lines_running && offset < state->size && state->n_lines < MAX_LINES) {
462 offset += textReadLine(state->buffer, offset, state->size, NULL);
463 state->n_lines++;
464
465 sceKernelDelayThread(1000);
466 }
467
468 return sceKernelExitDeleteThread(0);
469}
470
471static int search_thread(SceSize args, SearchParams *argp) {
472 TextEditorState *state = argp->state;

Callers

nothing calls this directly

Calls 1

textReadLineFunction · 0.85

Tested by

no test coverage detected