231 |
232 |
232 // Adjusts a mark to the current position |
233 // Adjusts a mark to the current position |
233 void MoveMark (unsigned int mark) { |
234 void MoveMark (unsigned int mark) { |
234 if (!marks[mark]) |
235 if (!marks[mark]) |
235 return; |
236 return; |
|
237 printf ("move mark %u from %d to %d\n", mark, marks[mark]->pos, writesize); |
236 marks[mark]->pos = writesize; |
238 marks[mark]->pos = writesize; |
|
239 } |
|
240 |
|
241 // Adjusts a mark to the current position |
|
242 void OffsetMark (unsigned int mark, size_t offset) { |
|
243 if (!marks[mark]) |
|
244 return; |
|
245 printf ("move mark %u from %d to %d\n", mark, marks[mark]->pos, marks[mark]->pos+offset); |
|
246 marks[mark]->pos += offset; |
237 } |
247 } |
238 |
248 |
239 // Dump the buffer (for debugging purposes) |
249 // Dump the buffer (for debugging purposes) |
240 void Dump() { |
250 void Dump() { |
241 for (unsigned int x = 0; x < writesize; x++) |
251 for (unsigned int x = 0; x < writesize; x++) |