Skip to content

Commit

Permalink
Merge pull request #3667 from jafl/fix-typo
Browse files Browse the repository at this point in the history
main,cosmetic: fix misspelling
  • Loading branch information
jafl committed Mar 14, 2023
2 parents ac7a805 + 101aeeb commit 5a55af2
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions main/field.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ static EsObject* checkFieldValueForLineCommon (const fieldDefinition *, const Es
static EsObject* setFieldValueForLineCommon (tagEntryInfo *, const fieldDefinition *, const EsObject *);
static EsObject* setFieldValueForInherits (tagEntryInfo *, const fieldDefinition *, const EsObject *);

#define WITH_DEFUALT_VALUE(str) ((str)?(str):FIELD_NULL_LETTER_STRING)
#define WITH_DEFAULT_VALUE(str) ((str)?(str):FIELD_NULL_LETTER_STRING)

static fieldDefinition fieldDefinitionsFixed [] = {
[FIELD_NAME] = {
Expand Down Expand Up @@ -723,13 +723,13 @@ static bool doesContainAnyCharInInput (const tagEntryInfo *const tag, const char

static const char *renderFieldSignature (const tagEntryInfo *const tag, const char *value CTAGS_ATTR_UNUSED, vString* b)
{
return renderEscapedString (WITH_DEFUALT_VALUE (tag->extensionFields.signature),
return renderEscapedString (WITH_DEFAULT_VALUE (tag->extensionFields.signature),
tag, b);
}

static const char *renderFieldSignatureNoEscape (const tagEntryInfo *const tag, const char *value CTAGS_ATTR_UNUSED, vString* b)
{
return renderAsIs (b, WITH_DEFUALT_VALUE (tag->extensionFields.signature));
return renderAsIs (b, WITH_DEFAULT_VALUE (tag->extensionFields.signature));
}

static bool doesContainAnyCharInSignature (const tagEntryInfo *const tag, const char *value CTAGS_ATTR_UNUSED, const char *chars)
Expand Down Expand Up @@ -766,7 +766,7 @@ static bool doesContainAnyCharInFieldScope (const tagEntryInfo *const tag, const

static const char *renderFieldInherits (const tagEntryInfo *const tag, const char *value CTAGS_ATTR_UNUSED, vString* b)
{
return renderEscapedString (WITH_DEFUALT_VALUE (tag->extensionFields.inheritance),
return renderEscapedString (WITH_DEFAULT_VALUE (tag->extensionFields.inheritance),
tag, b);
}

Expand All @@ -777,9 +777,9 @@ static const char *renderFieldTyperef (const tagEntryInfo *const tag, const char
&& tag->extensionFields.typeRef [1] == NULL)
return renderAsIs (b, FIELD_NULL_LETTER_STRING);

vStringCatS (b, WITH_DEFUALT_VALUE (tag->extensionFields.typeRef [0]));
vStringCatS (b, WITH_DEFAULT_VALUE (tag->extensionFields.typeRef [0]));
vStringPut (b, ':');
return renderEscapedName (false, WITH_DEFUALT_VALUE (tag->extensionFields.typeRef [1]), tag, b);
return renderEscapedName (false, WITH_DEFAULT_VALUE (tag->extensionFields.typeRef [1]), tag, b);
}


Expand Down Expand Up @@ -1003,14 +1003,14 @@ static const char *renderFieldLanguage (const tagEntryInfo *const tag,
l = getLanguageName(tag->langType);
}

return renderAsIs (b, WITH_DEFUALT_VALUE(l));
return renderAsIs (b, WITH_DEFAULT_VALUE(l));
}

static const char *renderFieldAccess (const tagEntryInfo *const tag,
const char *value CTAGS_ATTR_UNUSED,
vString* b)
{
return renderAsIs (b, WITH_DEFUALT_VALUE (tag->extensionFields.access));
return renderAsIs (b, WITH_DEFAULT_VALUE (tag->extensionFields.access));
}

static const char *renderFieldKindLetter (const tagEntryInfo *const tag,
Expand All @@ -1028,7 +1028,7 @@ static const char *renderFieldImplementation (const tagEntryInfo *const tag,
const char *value CTAGS_ATTR_UNUSED,
vString* b)
{
return renderAsIs (b, WITH_DEFUALT_VALUE (tag->extensionFields.implementation));
return renderAsIs (b, WITH_DEFAULT_VALUE (tag->extensionFields.implementation));
}

static const char *renderFieldFile (const tagEntryInfo *const tag,
Expand Down

0 comments on commit 5a55af2

Please sign in to comment.