Example #1
0
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;
}
Example #2
0
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;
}
Example #3
0
File: lxcmd.c Project: simlrh/ctags
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;
}
Example #4
0
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;
}
Example #5
0
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
}
Example #6
0
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
}
Example #7
0
extern void resetXcmdKinds (const langType language, boolean mode)
{
	foreachXcmdKinds (language, kind_reset_cb, &mode);
}