14#include "../dlib/dlib.h"
22 char *label = strtok(line,
":");
24 if (label == NULL || strlen(label) == 0) {
25 MSG(
"Missing action label, ignoring '%s'\n", line);
31 char *cmd = strtok(NULL,
"");
33 if (cmd == NULL || strlen(cmd) == 0) {
34 MSG(
"Missing action command, ignoring '%s'\n", line);
54 for (
int i = 0; i < n; i++) {
void action_parse(char *line)
Dlist * a_Actions_link_get(void)
void a_Actions_init(void)
static Dlist * link_actions
char * dStrdup(const char *s)
Dlist * dList_new(int size)
Create a new empty list.
int dList_length(Dlist *lp)
For completing the ADT.
void * dList_nth_data(Dlist *lp, int n0)
Return the nth data item, NULL when not found or 'n0' is out of range.
void * dMalloc(size_t size)
void dList_append(Dlist *lp, void *data)
Append a data item to the list.
DilloPrefs prefs
Global Data.