Lines Matching defs:mark
1 /* $NetBSD: mark.c,v 1.4 2023/10/06 05:49:49 simonb Exp $ */
22 * A mark is an ifile (input file) plus a position within the file.
24 struct mark
30 * user explicitly requests the file (by name or mark).
35 struct scrpos m_scrpos; /* Position of the mark */
40 * Each mark is identified by a lowercase or uppercase letter.
41 * The final one is lmark, for the "last mark"; addressed by the apostrophe.
47 static struct mark marks[NMARKS];
52 * Initialize a mark struct.
54 static void cmark(struct mark *m, IFILE ifile, POSITION pos, int ln)
66 * Initialize the mark table to show no marks are set.
88 static void mark_set_ifile(struct mark *m, IFILE ifile)
97 * Populate the m_ifile member of a mark struct from m_filename.
99 static void mark_get_ifile(struct mark *m)
107 * Return the user mark struct identified by a character.
109 static struct mark * getumark(LWCHAR c)
121 error("Invalid mark letter %c", &parg);
126 * Get the mark structure identified by a character.
127 * The mark struct may either be in the mark table (user mark)
130 static struct mark * getmark(LWCHAR c)
132 struct mark *m;
133 static struct mark sm;
166 * The "last mark".
172 * Must be a user-defined mark.
188 * Is a mark letter invalid?
196 * Set a user-defined mark.
200 struct mark *m;
217 * Clear a user-defined mark.
221 struct mark *m;
236 * Set lmark (the mark named by the apostrophe).
252 * Go to a mark.
256 struct mark *m;
289 * Return the position associated with a given mark letter.
297 struct mark *m;
312 * Return the mark associated with a given position, if any.
354 struct mark *m = &marks[i];
382 struct mark *m = &marks[i];
397 * Restore one mark from the history file.
401 struct mark *m;