Skip to content

Commit

Permalink
Detect a void-packages repository.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericonr committed Feb 22, 2021
1 parent 815fdf1 commit 9eecdc2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lang.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ enum lang_index {
/* misc */
build_system_lang,
kicad_lang,
xbps_src_lang,
lang_index_n
};

Expand All @@ -32,6 +33,7 @@ check_function_decl(python);
check_function_decl(rust);
check_function_decl(build_system);
check_function_decl(kicad);
check_function_decl(xbps_src);

const struct lang_check l[] = {
struct_item(c, " ℂ"),
Expand All @@ -40,6 +42,7 @@ const struct lang_check l[] = {
struct_item(rust, " 🦀"),
struct_item(build_system, " 📦"),
struct_item(kicad, " ⚡"),
struct_item(xbps_src, " 😨"),
};

#undef struct_item
Expand Down Expand Up @@ -123,5 +126,10 @@ check_function_decl(kicad)
isdir(t) && !fnmatch(".pretty", s, 0);
}

check_function_decl(xbps_src)
{
return isfile(t) && !strcmp("xbps-src", s);
}

#undef check_function
#undef check_function_decl

0 comments on commit 9eecdc2

Please sign in to comment.