Skip to content

Commit 0aad4cb

Browse files
committed
main,refactor: rename functions for marking a tag as a placeholder
1 parent aff11a1 commit 0aad4cb

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
@@ -1701,24 +1701,24 @@ extern size_t countEntryInCorkQueue (void)
17011701
return ptrArrayCount (TagFile.corkQueue);
17021702
}
17031703

1704-
extern void markTagPlaceholder (tagEntryInfo *e, bool placeholder)
1704+
extern void markTagAsPlaceholder (tagEntryInfo *e, bool placeholder)
17051705
{
17061706
e->placeholder = placeholder;
17071707
}
17081708

1709-
extern void markCorkEntryPlaceholder (int index, bool placeholder)
1709+
extern void markCorkEntryAsPlaceholder (int index, bool placeholder)
17101710
{
17111711
tagEntryInfo *e = getEntryInCorkQueue(index);
17121712
if (e)
1713-
markTagPlaceholder(e, placeholder);
1713+
markTagAsPlaceholder(e, placeholder);
17141714
}
17151715

17161716
extern int makePlaceholder (const char *const name)
17171717
{
17181718
tagEntryInfo e;
17191719

17201720
initTagEntry (&e, name, KIND_GHOST_INDEX);
1721-
markTagPlaceholder(&e, true);
1721+
markTagAsPlaceholder(&e, true);
17221722

17231723
/*
17241724
* makePlaceholder may be called even before reading any bytes
@@ -2121,7 +2121,7 @@ extern const char* getTagFileDirectory (void)
21212121
return TagFile.directory;
21222122
}
21232123

2124-
static bool markAsPlaceholder (int index, tagEntryInfo *e, void *data CTAGS_ATTR_UNUSED)
2124+
static bool markAsPlaceholderRecursively (int index, tagEntryInfo *e, void *data CTAGS_ATTR_UNUSED)
21252125
{
21262126
e->placeholder = 1;
21272127
markAllEntriesInScopeAsPlaceholder (index);
@@ -2130,5 +2130,5 @@ static bool markAsPlaceholder (int index, tagEntryInfo *e, void *data CTAGS_ATT
21302130

21312131
extern void markAllEntriesInScopeAsPlaceholder (int index)
21322132
{
2133-
foreachEntriesInScope (index, NULL, markAsPlaceholder, NULL);
2133+
foreachEntriesInScope (index, NULL, markAsPlaceholderRecursively, NULL);
21342134
}

main/entry.h

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

283283
extern int makePlaceholder (const char *const name);
284-
extern void markTagPlaceholder (tagEntryInfo *e, bool placeholder);
285-
extern void markCorkEntryPlaceholder (int index, bool placeholder);
284+
extern void markTagAsPlaceholder (tagEntryInfo *e, bool placeholder);
285+
extern void markCorkEntryAsPlaceholder (int index, bool placeholder);
286286

287287
/* Marking all tag entries entries under the scope specified
288288
* 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)