diff --git a/main/entry.c b/main/entry.c index ef9baa120e..13fb06e08c 100644 --- a/main/entry.c +++ b/main/entry.c @@ -173,7 +173,7 @@ static void addCommonPseudoTags (void) for (int i = 0; i < PTAG_COUNT; i++) { if (isPtagCommonInParsers (i)) - makePtagIfEnabled (i, NULL); + makePtagIfEnabled (i, &Option); } } diff --git a/main/ptag_p.h b/main/ptag_p.h index ddd93d11f1..c2b368425c 100644 --- a/main/ptag_p.h +++ b/main/ptag_p.h @@ -43,6 +43,12 @@ struct sPtagDesc { bool enabled; const char* name; const char* description; /* displayed in --list-pseudo-tags output */ + + /* For the common ptags, the pointer for optionValues type value + * is passed as the second argument. + * For parser specific ptags, the pointer for parserObject + * of the parser is passed as the second argument. + */ bool (* makeTag) (ptagDesc *, const void *); bool commonInParsers; };