Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

main,cosmetic: fix misspelling #3667

Merged
merged 1 commit into from
Mar 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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