tweaks: remove a redundant "struct" word, and replace it in comments

master
Benno Schulenberg 2018-08-20 19:31:23 +02:00
parent a3a10dfafe
commit 3218d8358a
4 changed files with 4 additions and 4 deletions

View File

@ -207,7 +207,7 @@ void do_cut_text_void(void)
* was moved, blow away previous contents of the cutbuffer. */
void do_copy_text(void)
{
static struct filestruct *next_contiguous_line = NULL;
static filestruct *next_contiguous_line = NULL;
bool mark_is_set = (openfile->mark != NULL);
/* Remember the current viewport and cursor position. */

View File

@ -1427,7 +1427,7 @@ const char *flagtostr(int flag)
#ifdef ENABLE_NANORC
/* Interpret a function string given in the rc file, and return a
* shortcut struct with the corresponding function filled in. */
* shortcut record with the corresponding function filled in. */
sc *strtosc(const char *input)
{
sc *s = nmalloc(sizeof(sc));

View File

@ -476,7 +476,7 @@ void ingraft_buffer(filestruct *somebuffer)
#endif
/* If we pasted onto the first line of the edit window, the corresponding
* struct has been freed, so... point at the start of the copied text. */
* record has been freed, so... point at the start of the copied text. */
if (edittop_inside)
openfile->edittop = openfile->fileage;

View File

@ -1290,7 +1290,7 @@ void discard_until(const undo *thisitem, openfilestruct *thefile, bool keep)
thefile->last_saved = (undo *)0xbeeb;
}
/* Add a new undo struct of the given type to the top of the current pile. */
/* Add a new undo item of the given type to the top of the current pile. */
void add_undo(undo_type action)
{
undo *u = openfile->current_undo;