Skip to content

Commit

Permalink
Replace fileGetc() with getcFromInputFile() also in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
techee committed Jul 30, 2016
1 parent ba2209e commit 781738f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ctags/main/read.c
Expand Up @@ -453,15 +453,15 @@ static vString *iFileGetLine (void)
return result;
}

/* Do not mix use of readLineFromInputFile () and fileGetc () for the same file.
/* Do not mix use of readLineFromInputFile () and getcFromInputFile () for the same file.
*/
extern int getcFromInputFile (void)
{
int c;

/* If there is an ungotten character, then return it. Don't do any
* other processing on it, though, because we already did that the
* first time it was read through fileGetc ().
* first time it was read through getcFromInputFile ().
*/
if (File.ungetchIdx > 0)
{
Expand Down Expand Up @@ -514,8 +514,8 @@ extern int skipToCharacterInInputFile (int c)
return d;
}

/* An alternative interface to fileGetc (). Do not mix use of readLineFromInputFile()
* and fileGetc() for the same file. The returned string does not contain
/* An alternative interface to getcFromInputFile (). Do not mix use of readLineFromInputFile()
* and getcFromInputFile() for the same file. The returned string does not contain
* the terminating newline. A NULL return value means that all lines in the
* file have been read and we are at the end of file.
*/
Expand Down

0 comments on commit 781738f

Please sign in to comment.