Lines Matching refs:top_x
171 /* Partition a filestruct so that it begins at (top, top_x) and ends at
173 partition *partition_filestruct(filestruct *top, size_t top_x,
198 * the partition from it, and save the text before top_x in
202 p->top_data = mallocstrncpy(NULL, top->data, top_x + 1);
203 p->top_data[top_x] = '\0';
215 /* Remove all text before top_x at the top of the partition. */
216 charmove(top->data, top->data + top_x, strlen(top->data) -
217 top_x + 1);
233 * text before top_x from top_data. Free top_data when we're done
269 /* Move all the text between (top, top_x) and (bot, bot_x) in the
271 * with file_bot. If no text is between (top, top_x) and (bot, bot_x),
274 filestruct *top, size_t top_x, filestruct *bot, size_t bot_x)
284 /* If (top, top_x)-(bot, bot_x) doesn't cover any text, get out. */
285 if (top == bot && top_x == bot_x)
289 * (top, top_x) to (bot, bot_x), keep track of whether the top of
292 filepart = partition_filestruct(top, top_x, bot, bot_x);
303 openfile->mark_begin_x >= top_x) &&
355 openfile->mark_begin_x = top_x;
361 openfile->current_x = top_x;