implements a short list of quickcommands

This commit is contained in:
2024-07-10 18:15:11 +01:00
parent ff69837f19
commit 2f2e503ae3
3 changed files with 49 additions and 1 deletions

View File

@@ -8,9 +8,16 @@
#ifndef __UTIL_H__
#define __UTIL_H__
struct quickcommand
{
char *name;
char *fullcommand;
};
void remove_last_part_of_path(char *fullpath);
char *kind_as_string(char *s, int kind, int n);
char *version_as_string(char *s, long v, int n);
bool is_comment(char *s);
struct quickcommand *command_in_quickcommands(const char *command, struct quickcommand *quickcommands, int n);
#endif /* __UTIL_H__ */