Lines Matching full:mark

2  * Copyright (C) 1984-2024  Mark Nudelman
20 * A mark is an ifile (input file) plus a position within the file.
22 struct mark
28 * user explicitly requests the file (by name or mark).
33 struct scrpos m_scrpos; /* Position of the mark */
38 * Each mark is identified by a lowercase or uppercase letter.
39 * The final one is lmark, for the "last mark"; addressed by the apostrophe.
45 static struct mark marks[NMARKS];
50 * Initialize a mark struct.
52 static void cmark(struct mark *m, IFILE ifile, POSITION pos, int ln)
64 * Initialize the mark table to show no marks are set.
86 static void mark_set_ifile(struct mark *m, IFILE ifile)
95 * Populate the m_ifile member of a mark struct from m_filename.
97 static void mark_get_ifile(struct mark *m)
105 * Return the user mark struct identified by a character.
107 static struct mark * getumark(char c)
119 error("Invalid mark letter %c", &parg);
124 * Get the mark structure identified by a character.
125 * The mark struct may either be in the mark table (user mark)
128 static struct mark * getmark(char c)
130 struct mark *m;
131 static struct mark sm;
164 * The "last mark".
170 * Must be a user-defined mark.
177 error("Mark not set", NULL_PARG);
186 * Is a mark letter invalid?
194 * Set a user-defined mark.
198 struct mark *m;
215 * Clear a user-defined mark.
219 struct mark *m;
234 * Set lmark (the mark named by the apostrophe).
250 * Go to a mark.
254 struct mark *m;
287 * Return the position associated with a given mark letter.
295 struct mark *m;
303 error("Mark not in current file", NULL_PARG);
310 * Return the mark associated with a given position, if any.
352 struct mark *m = &marks[i];
380 struct mark *m = &marks[i];
395 * Restore one mark from the history file.
399 struct mark *m;