Skip to content

Commit

Permalink
Make TAG_TYPES_BY_TAG_NAME static
Browse files Browse the repository at this point in the history
This avoids possible linking name collisions with that constant,
if other HTML-like parsers declare a constant with the same name.

Co-authored-by: Marshall <[email protected]>
Co-authored-by: Conrad <[email protected]>
  • Loading branch information
3 people committed Mar 13, 2024
1 parent b5d9758 commit b285e25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tag.h
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ typedef struct {
String custom_tag_name;
} Tag;

const TagMap TAG_TYPES_BY_TAG_NAME[126] = {
static const TagMap TAG_TYPES_BY_TAG_NAME[126] = {
{"AREA", AREA },
{"BASE", BASE },
{"BASEFONT", BASEFONT },
Expand Down

0 comments on commit b285e25

Please sign in to comment.