extern boolean hasXcmdKind (const langType language, const int kind) { struct kind_and_result d; d.kind = kind; d.result = FALSE; foreachXcmdKinds (language, does_kind_exist_cb, &d); return d.result; }
extern boolean isXcmdKindEnabled (const langType language, const int kind) { struct kind_and_result d; d.kind = kind; d.result = FALSE; foreachXcmdKinds (language, is_kind_enabled_cb, &d); return d.result; }
extern boolean enableXcmdKind (const langType language, const int kind, const boolean mode) { struct kind_and_mode_and_result kmr; kmr.kind = kind; kmr.mode = mode; kmr.result = FALSE; foreachXcmdKinds (language, enable_kind_cb, &kmr); return kmr.result; }
extern boolean enableXcmdKindLong (const langType language, const char *kindLong, const boolean mode) { struct kind_and_mode_and_result kmr; kmr.kind = KIND_NULL; kmr.kindLong = kindLong; kmr.mode = mode; kmr.result = FALSE; foreachXcmdKinds (language, enable_kind_cb, &kmr); return kmr.result; }
extern void printXcmdKinds (const langType language __unused__, boolean allKindFields __unused__, boolean indent __unused__, boolean tabSeparated __unused__) { #ifdef HAVE_COPROC if (language <= SetUpper && Sets [language].count > 0) { const char* const langName = getLanguageName(language); struct printXcmdKindCBData data = { .langName = langName, .allKindFields = allKindFields, .indent = indent, .tabSeparated = tabSeparated, }; foreachXcmdKinds (language, printXcmdKind, &data); } #endif }
extern void printXcmdKinds (const langType language CTAGS_ATTR_UNUSED, bool allKindFields CTAGS_ATTR_UNUSED, bool indent CTAGS_ATTR_UNUSED, bool tabSeparated CTAGS_ATTR_UNUSED) { #ifdef HAVE_COPROC if (language <= SetUpper && Sets [language].count > 0) { const char* const langName = getLanguageName(language); struct printXcmdKindCBData data = { .langName = langName, .allKindFields = allKindFields, .indent = indent, .tabSeparated = tabSeparated, }; foreachXcmdKinds (language, printXcmdKind, &data); } #endif }
extern void resetXcmdKinds (const langType language, boolean mode) { foreachXcmdKinds (language, kind_reset_cb, &mode); }