Lines Matching full:mark
2 * Copyright (C) 1984-2025 Mark Nudelman
20 * A mark is an ifile (input file) plus a position within the file.
22 struct mark struct
28 * user explicitly requests the file (by name or mark).
33 struct scrpos m_scrpos; /* Position of the mark */ argument
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) in cmark()
64 * Initialize the mark table to show no marks are set.
86 static void mark_set_ifile(struct mark *m, IFILE ifile) in mark_set_ifile()
95 * Populate the m_ifile member of a mark struct from m_filename.
97 static void mark_get_ifile(struct mark *m) in mark_get_ifile()
105 * Return the user mark struct identified by a character.
107 static struct mark * getumark(char c) in getumark()
119 error("Invalid mark letter %c", &parg); in getumark()
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) in getmark()
130 struct mark *m; in getmark()
131 static struct mark sm; in getmark()
164 * The "last mark". in getmark()
170 * Must be a user-defined mark. in getmark()
177 error("Mark not set", NULL_PARG); in getmark()
186 * Is a mark letter invalid?
194 * Set a user-defined mark.
198 struct mark *m; in setmark()
215 * Clear a user-defined mark.
219 struct mark *m; in clrmark()
234 * Set lmark (the mark named by the apostrophe).
250 * Go to a mark.
254 struct mark *m; in gomark()
287 * Return the position associated with a given mark letter.
295 struct mark *m; in markpos()
303 error("Mark not in current file", NULL_PARG); in markpos()
310 * Return the mark associated with a given position, if any.
352 struct mark *m = &marks[i]; in mark_check_ifile()
380 struct mark *m = &marks[i]; in save_marks()
395 * Restore one mark from the history file.
399 struct mark *m; in restore_mark()