Skip to content

Commit e34c42d

Browse files
committed
main: add a new funciton, markCorkEntryPlaceholder()
Signed-off-by: Masatake YAMATO <[email protected]>
1 parent 23a9b5f commit e34c42d

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

main/entry.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1743,6 +1743,13 @@ extern void markTagPlaceholder (tagEntryInfo *e, bool placeholder)
17431743
e->placeholder = placeholder;
17441744
}
17451745

1746+
extern void markCorkEntryPlaceholder (int index, bool placeholder)
1747+
{
1748+
tagEntryInfo *e = getEntryInCorkQueue(index);
1749+
if (e)
1750+
markTagPlaceholder(e, placeholder);
1751+
}
1752+
17461753
extern int makePlaceholder (const char *const name)
17471754
{
17481755
tagEntryInfo e;

main/entry.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ extern const char* getParserFieldValueForType (tagEntryInfo *const tag, fieldTyp
287287

288288
extern int makePlaceholder (const char *const name);
289289
extern void markTagPlaceholder (tagEntryInfo *e, bool placeholder);
290+
extern void markCorkEntryPlaceholder (int index, bool placeholder);
290291

291292
/* Marking all tag entries entries under the scope specified
292293
* with index recursively.

0 commit comments

Comments
 (0)