Skip to content

Commit 22eb5c1

Browse files
committed
main,refactor: rename functions for marking a tag as a placeholder
1 parent e34c42d commit 22eb5c1

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

main/entry.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1738,24 +1738,24 @@ extern size_t countEntryInCorkQueue (void)
17381738
return ptrArrayCount (TagFile.corkQueue);
17391739
}
17401740

1741-
extern void markTagPlaceholder (tagEntryInfo *e, bool placeholder)
1741+
extern void markTagAsPlaceholder (tagEntryInfo *e, bool placeholder)
17421742
{
17431743
e->placeholder = placeholder;
17441744
}
17451745

1746-
extern void markCorkEntryPlaceholder (int index, bool placeholder)
1746+
extern void markCorkEntryAsPlaceholder (int index, bool placeholder)
17471747
{
17481748
tagEntryInfo *e = getEntryInCorkQueue(index);
17491749
if (e)
1750-
markTagPlaceholder(e, placeholder);
1750+
markTagAsPlaceholder(e, placeholder);
17511751
}
17521752

17531753
extern int makePlaceholder (const char *const name)
17541754
{
17551755
tagEntryInfo e;
17561756

17571757
initTagEntry (&e, name, KIND_GHOST_INDEX);
1758-
markTagPlaceholder(&e, true);
1758+
markTagAsPlaceholder(&e, true);
17591759

17601760
/*
17611761
* makePlaceholder may be called even before reading any bytes
@@ -2158,7 +2158,7 @@ extern const char* getTagFileDirectory (void)
21582158
return TagFile.directory;
21592159
}
21602160

2161-
static bool markAsPlaceholder (int index, tagEntryInfo *e, void *data CTAGS_ATTR_UNUSED)
2161+
static bool markAsPlaceholderRecursively (int index, tagEntryInfo *e, void *data CTAGS_ATTR_UNUSED)
21622162
{
21632163
e->placeholder = 1;
21642164
markAllEntriesInScopeAsPlaceholder (index);
@@ -2167,5 +2167,5 @@ static bool markAsPlaceholder (int index, tagEntryInfo *e, void *data CTAGS_ATT
21672167

21682168
extern void markAllEntriesInScopeAsPlaceholder (int index)
21692169
{
2170-
foreachEntriesInScope (index, NULL, markAsPlaceholder, NULL);
2170+
foreachEntriesInScope (index, NULL, markAsPlaceholderRecursively, NULL);
21712171
}

main/entry.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,8 @@ extern void attachParserFieldToCorkEntry (int index, fieldType ftype, const char
286286
extern const char* getParserFieldValueForType (tagEntryInfo *const tag, fieldType ftype);
287287

288288
extern int makePlaceholder (const char *const name);
289-
extern void markTagPlaceholder (tagEntryInfo *e, bool placeholder);
290-
extern void markCorkEntryPlaceholder (int index, bool placeholder);
289+
extern void markTagAsPlaceholder (tagEntryInfo *e, bool placeholder);
290+
extern void markCorkEntryAsPlaceholder (int index, bool placeholder);
291291

292292
/* Marking all tag entries entries under the scope specified
293293
* with index recursively.

main/lregex.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3933,7 +3933,7 @@ static EsObject *lrop_markplaceholder (OptVM *vm, EsObject *name)
39333933
if (e == NULL)
39343934
return OPTSCRIPT_ERR_NOTAGENTRY;
39353935

3936-
markTagPlaceholder (e, true);
3936+
markTagAsPlaceholder (e, true);
39373937

39383938
opt_vm_ostack_pop (vm);
39393939
return es_false;

parsers/jscript.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1372,7 +1372,7 @@ static int parseMethodsInAnonymousObject (tokenInfo *const token)
13721372
*/
13731373
tagEntryInfo *e = getEntryInCorkQueue (index);
13741374
if (e)
1375-
markTagPlaceholder (e, true);
1375+
markTagAsPlaceholder (e, true);
13761376
index = CORK_NIL;
13771377
}
13781378

parsers/rst.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ static void shiftKinds(int shift, rstKind baseKind)
359359
e->kindIndex += shift;
360360
if (e->kindIndex >= SECTION_COUNT)
361361
{
362-
markTagPlaceholder(e, true);
362+
markTagAsPlaceholder(e, true);
363363

364364
int foster_parent = getFosterEntry(e, shift);
365365
Assert (foster_parent != CORK_NIL);

0 commit comments

Comments
 (0)