61 struct MyVar *myv = *ptr;
75 struct MyVar *myv = NULL;
93 struct MyVar *myv = NULL;
114 struct MyVar *myv = NULL;
136 struct MyVar *myv = NULL;
137 struct MyVar *tmp = NULL;
bool mutt_str_equal(const char *a, const char *b)
Compare two strings.
static void myvar_free(struct MyVar **ptr)
Free a MyVar.
void * mutt_mem_calloc(size_t nmemb, size_t size)
Allocate zeroed memory on the heap.
#define TAILQ_FOREACH(var, head, field)
static struct MyVar * myvar_new(const char *name, const char *value)
Create a new MyVar.
#define TAILQ_FOREACH_SAFE(var, head, field, tvar)
char * mutt_str_dup(const char *str)
Copy a string, safely.
char * name
Name of user variable.
struct MyVarList MyVars
List of all the user's custom config variables.
char * value
Value of user variable.
void myvar_del(const char *var)
Unset the value of a "my_" variable.
#define TAILQ_REMOVE(head, elm, field)
void myvarlist_free(struct MyVarList *list)
Free a List of MyVars.
#define TAILQ_INSERT_TAIL(head, elm, field)
void myvar_set(const char *var, const char *val)
Set the value of a "my_" variable.
const char * myvar_get(const char *var)
Get the value of a "my_" variable.
char * mutt_str_replace(char **p, const char *s)
Replace one string with another.
Convenience wrapper for the library headers.
#define TAILQ_HEAD_INITIALIZER(head)
Handling of personal config ('my' variables)