diff options
author | Kjell Wooding <kjell@cvs.openbsd.org> | 2005-11-18 23:15:01 +0000 |
---|---|---|
committer | Kjell Wooding <kjell@cvs.openbsd.org> | 2005-11-18 23:15:01 +0000 |
commit | c6b856c0a7c9c99859bc4a8503b04ff72cf5d764 (patch) | |
tree | 1c02364ea6458b267b697940b52ae037d9dcb5dc /usr.bin/mg/def.h | |
parent | 6a8e1cf9871bca638bc1efe0cee06fce95b72261 (diff) |
clean up some comments after theo's cleanup
Diffstat (limited to 'usr.bin/mg/def.h')
-rw-r--r-- | usr.bin/mg/def.h | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/usr.bin/mg/def.h b/usr.bin/mg/def.h index 2e19a7a6eb6..06a86b1e924 100644 --- a/usr.bin/mg/def.h +++ b/usr.bin/mg/def.h @@ -1,4 +1,4 @@ -/* $OpenBSD: def.h,v 1.74 2005/11/18 20:56:52 deraadt Exp $ */ +/* $OpenBSD: def.h,v 1.75 2005/11/18 23:15:00 kjell Exp $ */ /* This file is in the public domain. */ @@ -106,13 +106,12 @@ typedef int (*PF)(int, int); /* generally useful type */ #define EFNUL 0x0040 /* Null Minibuffer OK */ /* - * Flags for "ldelete"/"kinsert" + * Direction of insert into kill ring */ #define KNONE 0 #define KFORW 1 #define KBACK 2 - /* * This structure holds the starting position * (as a line/offset pair) and the number of characters in a @@ -128,10 +127,10 @@ struct region { /* * All text is kept in circularly linked - * lists of "LINE" structures. These begin at the + * lists of "line" structures. These begin at the * header line (which is the blank line beyond the * end of the buffer). This line is pointed to by - * the "BUFFER". Each line contains the number of + * the "buffer" structure. Each line contains the number of * bytes in the line (the "used" size), the size * of the text array, and the text. The end of line * is not stored as a byte; it's implied. Future @@ -149,7 +148,7 @@ struct line { /* * The rationale behind these macros is that you * could (with some editing, like changing the type of a line - * link from a "LINE *" to a "REFLINE", and fixing the commands + * link from a "struct line *" to a "REFLINE", and fixing the commands * like file reading that break the rules) change the actual * storage representation of lines to use something fancy on * machines with small address spaces. @@ -173,7 +172,7 @@ struct line { struct list { union { struct mgwin *l_wp; - struct buffer *x_bp; /* l_bp is used by LINE */ + struct buffer *x_bp; /* l_bp is used by struct line */ struct list *l_nxt; } l_p; const char *l_name; @@ -242,11 +241,11 @@ struct undo_rec; struct buffer { struct list b_list; /* buffer list pointer */ struct buffer *b_altb; /* Link to alternate buffer */ - struct line *b_dotp; /* Link to "." LINE structure */ + struct line *b_dotp; /* Link to "." line structure */ struct line *b_markp; /* ditto for mark */ - struct line *b_linep; /* Link to the header LINE */ + struct line *b_linep; /* Link to the header line */ struct maps_s *b_modes[PBMODES]; /* buffer modes */ - int b_doto; /* Offset of "." in above LINE */ + int b_doto; /* Offset of "." in above line */ int b_marko; /* ditto for the "mark" */ short b_nmodes; /* number of non-fundamental modes */ char b_nwnd; /* Count of windows on buffer */ |