line 19 tasks/edit.c struct line *next; line 20 tasks/edit.c struct line *prev; line 22 tasks/edit.c unsigned char *line; line 25 tasks/edit.c struct line *lines; line 26 tasks/edit.c struct line *windowStart; line 27 tasks/edit.c int line; line 34 tasks/edit.c struct line *firstline = lines; line 35 tasks/edit.c struct line *currline; line 45 tasks/edit.c lines = malloc(sizeof(struct line)); line 57 tasks/edit.c currline->line = malloc(i + 1); line 58 tasks/edit.c strcpy(currline->line, buffer); line 64 tasks/edit.c currline->next = malloc(sizeof(struct line)); line 78 tasks/edit.c printf("%c[%d;%dH%c[?5l", ESC, line, column, ESC); line 86 tasks/edit.c printf("%c[%d;%dH%c[?5l", ESC, line, column, ESC); line 93 tasks/edit.c struct line *tempcurrline = lines; line 99 tasks/edit.c if (tempcurrline->line) line 100 tasks/edit.c printf("%s\n", tempcurrline->line); line 113 tasks/edit.c line = 0; line 115 tasks/edit.c struct line *currline; line 134 tasks/edit.c lines = malloc(sizeof(struct line)); line 138 tasks/edit.c lines->line = malloc(80); line 146 tasks/edit.c if (currline->line) line 147 tasks/edit.c strcpy(currentLineBuffer, currline->line); line 169 tasks/edit.c free(currline->line); line 170 tasks/edit.c currline->line = malloc(strlen(currentLineBuffer) + 1); line 172 tasks/edit.c strcpy(currline->line, currentLineBuffer); line 174 tasks/edit.c struct line *temp = malloc(sizeof(struct line)); line 183 tasks/edit.c temp->line = malloc(strlen(currentLineBuffer + column) + 1); line 184 tasks/edit.c strcpy(temp->line, currentLineBuffer + column + 1); line 188 tasks/edit.c temp->line = malloc(1); line 189 tasks/edit.c temp->line[0] = 0; line 192 tasks/edit.c strcpy(currentLineBuffer, temp->line); line 195 tasks/edit.c line++; line 202 tasks/edit.c line--; line 203 tasks/edit.c free(currline->line); line 204 tasks/edit.c currline->line = malloc(strlen(currentLineBuffer) + 1); line 205 tasks/edit.c strcpy(currline->line, currentLineBuffer); line 208 tasks/edit.c if (currline->line) line 209 tasks/edit.c strcpy(currentLineBuffer, currline->line); line 212 tasks/edit.c printf("%c[%d;%dH", ESC, line, column); line 213 tasks/edit.c if (line < 0) line 216 tasks/edit.c line++; line 224 tasks/edit.c line++; line 225 tasks/edit.c free(currline->line); line 226 tasks/edit.c currline->line = malloc(strlen(currentLineBuffer) + 1); line 227 tasks/edit.c strcpy(currline->line, currentLineBuffer); line 230 tasks/edit.c if (currline->line) line 231 tasks/edit.c strcpy(currentLineBuffer, currline->line); line 234 tasks/edit.c printf("%c[%d;%dH", ESC, line, column); line 235 tasks/edit.c if (line > WINDOWSIZE) line 238 tasks/edit.c line--; line 266 tasks/edit.c printf("%c[%d;%dH", ESC, line, column); line 280 tasks/edit.c printf("%c[%d;%dH", ESC, line, column); line 284 tasks/edit.c free(currline->line); line 285 tasks/edit.c currline->line = malloc(strlen(currentLineBuffer) + 1); line 286 tasks/edit.c strcpy(currline->line, currentLineBuffer); line 301 tasks/edit.c if (currline->line) line 303 tasks/edit.c write(file, currline->line, strlen(currline->line)); line 310 tasks/edit.c free(lines->line);