Add a bunch of icons
This commit is contained in:
parent
575d873efe
commit
652473a0ec
2 changed files with 75 additions and 3 deletions
2
file.c
2
file.c
|
@ -147,8 +147,6 @@ char *get_line(ArrayList *list, long index, bool detail)
|
|||
if (name == NULL)
|
||||
perror("ccc");
|
||||
|
||||
/*printf("%ls", icon);*/
|
||||
|
||||
if (detail) {
|
||||
snprintf(line, length, "%s %ls %s", stats, icon, name);
|
||||
} else {
|
||||
|
|
76
icons.c
76
icons.c
|
@ -49,11 +49,85 @@ void hashtable_init()
|
|||
strcpy(md->name, "md");
|
||||
md->icon = L"";
|
||||
|
||||
icon *py = memalloc(sizeof(icon));
|
||||
strcpy(md->name, "py");
|
||||
md->icon = L"";
|
||||
|
||||
icon *java = memalloc(sizeof(icon));
|
||||
strcpy(md->name, "java");
|
||||
md->icon = L"";
|
||||
|
||||
icon *json = memalloc(sizeof(icon));
|
||||
strcpy(md->name, "json");
|
||||
md->icon = L"";
|
||||
|
||||
icon *js = memalloc(sizeof(icon));
|
||||
strcpy(md->name, "js");
|
||||
md->icon = L"";
|
||||
|
||||
icon *html = memalloc(sizeof(icon));
|
||||
strcpy(md->name, "html");
|
||||
md->icon = L"";
|
||||
|
||||
icon *rs = memalloc(sizeof(icon));
|
||||
strcpy(md->name, "rs");
|
||||
md->icon = L"";
|
||||
|
||||
icon *sh = memalloc(sizeof(icon));
|
||||
strcpy(md->name, "sh");
|
||||
md->icon = L"";
|
||||
|
||||
icon *go = memalloc(sizeof(icon));
|
||||
strcpy(md->name, "go");
|
||||
md->icon = L"";
|
||||
|
||||
icon *r = memalloc(sizeof(icon));
|
||||
strcpy(md->name, "r");
|
||||
md->icon = L"";
|
||||
|
||||
icon *diff = memalloc(sizeof(icon));
|
||||
strcpy(md->name, "diff");
|
||||
md->icon = L"";
|
||||
|
||||
icon *hs = memalloc(sizeof(icon));
|
||||
strcpy(md->name, "hs");
|
||||
md->icon = L"";
|
||||
|
||||
icon *log = memalloc(sizeof(icon));
|
||||
strcpy(md->name, "log");
|
||||
md->icon = L"";
|
||||
|
||||
icon *rb = memalloc(sizeof(icon));
|
||||
strcpy(md->name, "rb");
|
||||
md->icon = L"";
|
||||
|
||||
icon *iso = memalloc(sizeof(icon));
|
||||
strcpy(md->name, "iso");
|
||||
md->icon = L"";
|
||||
|
||||
icon *lua = memalloc(sizeof(icon));
|
||||
strcpy(md->name, "lua");
|
||||
md->icon = L"";
|
||||
|
||||
hashtable_add(c);
|
||||
hashtable_add(h);
|
||||
hashtable_add(cpp);
|
||||
hashtable_add(hpp);
|
||||
hashtable_add(md);
|
||||
hashtable_add(py);
|
||||
hashtable_add(java);
|
||||
hashtable_add(json);
|
||||
hashtable_add(js);
|
||||
hashtable_add(html);
|
||||
hashtable_add(rs);
|
||||
hashtable_add(sh);
|
||||
hashtable_add(go);
|
||||
hashtable_add(r);
|
||||
hashtable_add(diff);
|
||||
hashtable_add(hs);
|
||||
hashtable_add(log);
|
||||
hashtable_add(rb);
|
||||
hashtable_add(iso);
|
||||
hashtable_add(lua);
|
||||
}
|
||||
|
||||
void hashtable_print()
|
||||
|
|
Loading…
Reference in a new issue