Skip to content

Commit

Permalink
Rename fileReadLine() to readLineFromInputFile()
Browse files Browse the repository at this point in the history
  • Loading branch information
techee committed Jul 30, 2016
1 parent bf2b642 commit bbbbb30
Show file tree
Hide file tree
Showing 28 changed files with 37 additions and 37 deletions.
2 changes: 1 addition & 1 deletion ctags/main/lregex.c
Expand Up @@ -531,7 +531,7 @@ extern boolean matchRegex (const vString* const line, const langType language)
extern void findRegexTags (void)
{
/* merely read all lines of the file */
while (fileReadLine () != NULL)
while (readLineFromInputFile () != NULL)
;
}

Expand Down
6 changes: 3 additions & 3 deletions ctags/main/read.c
Expand Up @@ -453,7 +453,7 @@ static vString *iFileGetLine (void)
return result;
}

/* Do not mix use of fileReadLine () and fileGetc () for the same file.
/* Do not mix use of readLineFromInputFile () and fileGetc () for the same file.
*/
extern int getcFromInputFile (void)
{
Expand Down Expand Up @@ -514,12 +514,12 @@ extern int skipToCharacterInInputFile (int c)
return d;
}

/* An alternative interface to fileGetc (). Do not mix use of fileReadLine()
/* An alternative interface to fileGetc (). Do not mix use of readLineFromInputFile()
* and fileGetc() 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.
*/
extern const unsigned char *fileReadLine (void)
extern const unsigned char *readLineFromInputFile (void)
{
vString* const line = iFileGetLine ();
const unsigned char* result = NULL;
Expand Down
2 changes: 1 addition & 1 deletion ctags/main/read.h
Expand Up @@ -110,7 +110,7 @@ extern int getcFromInputFile (void);
extern int getNthPrevCFromInputFile (unsigned int nth, int def);
extern int skipToCharacterInInputFile (int c);
extern void ungetcToInputFile (int c);
extern const unsigned char *fileReadLine (void);
extern const unsigned char *readLineFromInputFile (void);
extern char *readLine (vString *const vLine, MIO *const mio);
extern char *readSourceLine (vString *const vLine, MIOPos location, long *const pSeekValue);
extern boolean bufferOpen (unsigned char *buffer, size_t buffer_size,
Expand Down
2 changes: 1 addition & 1 deletion ctags/parsers/abaqus.c
Expand Up @@ -81,7 +81,7 @@ static void findAbaqusTags(void)
{
const char *line;

while ((line = (const char*)fileReadLine()) != NULL)
while ((line = (const char*)readLineFromInputFile()) != NULL)
{
const char *cp = line;

Expand Down
2 changes: 1 addition & 1 deletion ctags/parsers/abc.c
Expand Up @@ -80,7 +80,7 @@ static void findAbcTags (void)
vString *name = vStringNew();
const unsigned char *line;

while ((line = fileReadLine()) != NULL)
while ((line = readLineFromInputFile()) != NULL)
{
/*int name_len = vStringLength(name);*/

Expand Down
2 changes: 1 addition & 1 deletion ctags/parsers/asciidoc.c
Expand Up @@ -141,7 +141,7 @@ static void findAsciidocTags(void)

nestingLevels = nestingLevelsNew();

while ((line = fileReadLine()) != NULL)
while ((line = readLineFromInputFile()) != NULL)
{
int line_len = strlen((const char*) line);
int name_len_bytes = vStringLength(name);
Expand Down
2 changes: 1 addition & 1 deletion ctags/parsers/asm.c
Expand Up @@ -260,7 +260,7 @@ static void findAsmTags (void)
const unsigned char *line;
boolean inCComment = FALSE;

while ((line = fileReadLine ()) != NULL)
while ((line = readLineFromInputFile ()) != NULL)
{
const unsigned char *cp = line;
boolean labelCandidate = (boolean) (! isspace ((int) *cp));
Expand Down
2 changes: 1 addition & 1 deletion ctags/parsers/basic.c
Expand Up @@ -223,7 +223,7 @@ static void findBasicTags (void)

keywords = freebasic_keywords;

while ((line = (const char *) fileReadLine ()) != NULL)
while ((line = (const char *) readLineFromInputFile ()) != NULL)
{
const char *p = line;
KeyWord const *kw;
Expand Down
2 changes: 1 addition & 1 deletion ctags/parsers/conf.c
Expand Up @@ -49,7 +49,7 @@ static void findConfTags (void)
vString *scope = vStringNew ();
const unsigned char *line;

while ((line = fileReadLine ()) != NULL)
while ((line = readLineFromInputFile ()) != NULL)
{
const unsigned char* cp = line;
boolean possible = TRUE;
Expand Down
2 changes: 1 addition & 1 deletion ctags/parsers/diff.c
Expand Up @@ -82,7 +82,7 @@ static void findDiffTags (void)
const unsigned char *line, *tmp;
int delim = DIFF_DELIM_MINUS;

while ((line = fileReadLine ()) != NULL)
while ((line = readLineFromInputFile ()) != NULL)
{
const unsigned char* cp = line;

Expand Down
2 changes: 1 addition & 1 deletion ctags/parsers/docbook.c
Expand Up @@ -86,7 +86,7 @@ static void findDocBookTags(void)
{
const char *line;

while ((line = (const char*)fileReadLine()) != NULL)
while ((line = (const char*)readLineFromInputFile()) != NULL)
{
const char *cp = line;

Expand Down
2 changes: 1 addition & 1 deletion ctags/parsers/erlang.c
Expand Up @@ -160,7 +160,7 @@ static void findErlangTags (void)
vString *const module = vStringNew ();
const unsigned char *line;

while ((line = fileReadLine ()) != NULL)
while ((line = readLineFromInputFile ()) != NULL)
{
const unsigned char *cp = line;

Expand Down
2 changes: 1 addition & 1 deletion ctags/parsers/haxe.c
Expand Up @@ -67,7 +67,7 @@ static void findHxTags (void)

const unsigned char *line;

while ((line = fileReadLine ()) != NULL)
while ((line = readLineFromInputFile ()) != NULL)
{
const unsigned char *cp = line;
another:
Expand Down
2 changes: 1 addition & 1 deletion ctags/parsers/latex.c
Expand Up @@ -134,7 +134,7 @@ static void findTeXTags(void)
{
const char *line;

while ((line = (const char*)fileReadLine()) != NULL)
while ((line = (const char*)readLineFromInputFile()) != NULL)
{
const char *cp = line;
/*int escaped = 0;*/
Expand Down
2 changes: 1 addition & 1 deletion ctags/parsers/lua.c
Expand Up @@ -92,7 +92,7 @@ static void findLuaTags (void)
vString *name = vStringNew ();
const unsigned char *line;

while ((line = fileReadLine ()) != NULL)
while ((line = readLineFromInputFile ()) != NULL)
{
const char *p, *q;

Expand Down
2 changes: 1 addition & 1 deletion ctags/parsers/markdown.c
Expand Up @@ -65,7 +65,7 @@ static void findMarkdownTags (void)
vString *name = vStringNew();
const unsigned char *line;

while ((line = fileReadLine()) != NULL)
while ((line = readLineFromInputFile()) != NULL)
{
int name_len = vStringLength(name);

Expand Down
2 changes: 1 addition & 1 deletion ctags/parsers/matlab.c
Expand Up @@ -45,7 +45,7 @@ static void findMatlabTags (void)
const unsigned char *line;
const unsigned char *p;

while ((line = fileReadLine ()) != NULL)
while ((line = readLineFromInputFile ()) != NULL)
{
int i, ic;

Expand Down
2 changes: 1 addition & 1 deletion ctags/parsers/nsis.c
Expand Up @@ -45,7 +45,7 @@ static void findNsisTags (void)
vString *name = vStringNew ();
const unsigned char *line;

while ((line = fileReadLine ()) != NULL)
while ((line = readLineFromInputFile ()) != NULL)
{
const unsigned char* cp = line;

Expand Down
6 changes: 3 additions & 3 deletions ctags/parsers/objc.c
Expand Up @@ -221,7 +221,7 @@ static void eatComment (lexingState * st)
* so we have to reload a line... */
if (c == NULL || *c == '\0')
{
st->cp = fileReadLine ();
st->cp = readLineFromInputFile ();
/* WOOPS... no more input...
* we return, next lexing read
* will be null and ok */
Expand Down Expand Up @@ -289,7 +289,7 @@ static objcKeyword lex (lexingState * st)
/* handling data input here */
while (st->cp == NULL || st->cp[0] == '\0')
{
st->cp = fileReadLine ();
st->cp = readLineFromInputFile ();
if (st->cp == NULL)
return Tok_EOF;

Expand Down Expand Up @@ -1097,7 +1097,7 @@ static void findObjcTags (void)
ignorePreprocStuff_escaped = FALSE;

st.name = vStringNew ();
st.cp = fileReadLine ();
st.cp = readLineFromInputFile ();
toDoNext = &globalScope;
tok = lex (&st);
while (tok != Tok_EOF)
Expand Down
4 changes: 2 additions & 2 deletions ctags/parsers/pascal.c
Expand Up @@ -171,14 +171,14 @@ static void findPascalTags (void)
is a FORWARD/EXTERN to be ignored, or
whether it is a real tag */

dbp = fileReadLine ();
dbp = readLineFromInputFile ();
while (dbp != NULL)
{
int c = *dbp++;

if (c == '\0') /* if end of line */
{
dbp = fileReadLine ();
dbp = readLineFromInputFile ();
if (dbp == NULL || *dbp == '\0')
continue;
if (!((found_tag && verify_tag) || get_tagname))
Expand Down
6 changes: 3 additions & 3 deletions ctags/parsers/perl.c
Expand Up @@ -160,7 +160,7 @@ static boolean isSubroutineDeclaration (const unsigned char *cp)
}
}
}
} while (NULL != (cp = fileReadLine ()));
} while (NULL != (cp = readLineFromInputFile ()));

return FALSE;
}
Expand All @@ -176,7 +176,7 @@ static void findPerlTags (void)
boolean skipPodDoc = FALSE;
const unsigned char *line;

while ((line = fileReadLine ()) != NULL)
while ((line = readLineFromInputFile ()) != NULL)
{
boolean spaceRequired = FALSE;
boolean qualified = FALSE;
Expand Down Expand Up @@ -283,7 +283,7 @@ static void findPerlTags (void)

while (!*cp || '#' == *cp) { /* Gobble up empty lines
and comments */
cp = fileReadLine ();
cp = readLineFromInputFile ();
if (!cp)
goto END_MAIN_WHILE;
while (isspace (*cp))
Expand Down
4 changes: 2 additions & 2 deletions ctags/parsers/python.c
Expand Up @@ -311,7 +311,7 @@ static void parseClass (const char *cp, vString *const class,
if (*cp == '\0')
{
/* Closing parenthesis can be in follow up line. */
cp = (const char *) fileReadLine ();
cp = (const char *) readLineFromInputFile ();
if (!cp) break;
vStringPut (inheritance, ' ');
continue;
Expand Down Expand Up @@ -685,7 +685,7 @@ static void findPythonTags (void)
int line_skip = 0;
char const *longStringLiteral = NULL;

while ((line = (const char *) fileReadLine ()) != NULL)
while ((line = (const char *) readLineFromInputFile ()) != NULL)
{
const char *cp = line, *candidate;
char const *longstring;
Expand Down
4 changes: 2 additions & 2 deletions ctags/parsers/r.c
Expand Up @@ -78,7 +78,7 @@ static void createRTags(void)
int ikind;
const unsigned char *line;

while ((line = fileReadLine()) != NULL)
while ((line = readLineFromInputFile()) != NULL)
{
const unsigned char *cp = (const unsigned char*)line;

Expand Down Expand Up @@ -145,7 +145,7 @@ static void createRTags(void)
I don't know if there is a reason to write the function keyword
in a new line
*/
if ((line = fileReadLine()) != NULL) {
if ((line = readLineFromInputFile()) != NULL) {
cp = (const unsigned char*)line;
SKIPSPACE(cp);
}
Expand Down
2 changes: 1 addition & 1 deletion ctags/parsers/rest.c
Expand Up @@ -162,7 +162,7 @@ static void findRestTags (void)
memset(kindchars, 0, sizeof kindchars);
nestingLevels = nestingLevelsNew();

while ((line = fileReadLine ()) != NULL)
while ((line = readLineFromInputFile ()) != NULL)
{
int line_len = strlen((const char*) line);
int name_len_bytes = vStringLength(name);
Expand Down
2 changes: 1 addition & 1 deletion ctags/parsers/ruby.c
Expand Up @@ -394,7 +394,7 @@ static void findRubyTags (void)
*
* if you wished, and this function would fail to recognize anything.
*/
while ((line = fileReadLine ()) != NULL)
while ((line = readLineFromInputFile ()) != NULL)
{
const unsigned char *cp = line;
/* if we expect a separator after a while, for, or until statement
Expand Down
2 changes: 1 addition & 1 deletion ctags/parsers/sh.c
Expand Up @@ -54,7 +54,7 @@ static void findShTags (void)
vString *name = vStringNew ();
const unsigned char *line;

while ((line = fileReadLine ()) != NULL)
while ((line = readLineFromInputFile ()) != NULL)
{
const unsigned char* cp = line;
boolean functionFound = FALSE;
Expand Down
2 changes: 1 addition & 1 deletion ctags/parsers/tcl.c
Expand Up @@ -72,7 +72,7 @@ static void findTclTags (void)
vString *name = vStringNew ();
const unsigned char *line;

while ((line = fileReadLine ()) != NULL)
while ((line = readLineFromInputFile ()) != NULL)
{
const unsigned char *cp;

Expand Down
2 changes: 1 addition & 1 deletion ctags/parsers/txt2tags.c
Expand Up @@ -157,7 +157,7 @@ static void findTxt2tagsTags (void)
vString *name = vStringNew();
const unsigned char *line;

while ((line = fileReadLine()) != NULL)
while ((line = readLineFromInputFile()) != NULL)
{
int depth;

Expand Down

0 comments on commit bbbbb30

Please sign in to comment.