We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 909a8d1 commit 05914d2Copy full SHA for 05914d2
src/util.h
@@ -5,8 +5,18 @@
5
6
struct LacoState;
7
8
+/**
9
+ * Generalized function pointer for handling commands from from either a
10
+ * command line flag or a command inside of laco itself.
11
+ */
12
typedef void (*LacoHandler)(struct LacoState* laco, const char** arguments);
13
14
15
+ * A representation of each command with a list of string matches and a
16
+ * function pointer to the behavior of said command. When there is a match
17
+ * to one of the string, this function will be called and passed in the
18
+ * appropriate arguments.
19
20
struct LacoCommand {
21
const char** matches;
22
LacoHandler handler;
0 commit comments