char ** cmd = g_malloc_n(3
+ (vb.embed ? 2 : 0)
+ (vb.config.file ? 2 : 0)
- + g_slist_length(vb.config.autocmd) * 2
+ + g_slist_length(vb.config.cmdargs) * 2
, sizeof(char *));
/* build commandline */
cmd[i++] = "-c";
cmd[i++] = vb.config.file;
}
- for (GSList *l = vb.config.autocmd; l; l = l->next) {
+ for (GSList *l = vb.config.cmdargs; l; l = l->next) {
cmd[i++] = "-C";
cmd[i++] = l->data;
}
autocmd_cleanup();
#endif
- g_slist_free_full(vb.config.autocmd, g_free);
+ g_slist_free_full(vb.config.cmdargs, g_free);
for (int i = 0; i < FILES_LAST; i++) {
g_free(vb.files[i]);
static gboolean autocmdOptionArgFunc(const gchar *option_name, const gchar *value, gpointer data, GError **error)
{
- vb.config.autocmd = g_slist_append(vb.config.autocmd, g_strdup(value));
+ vb.config.cmdargs = g_slist_append(vb.config.cmdargs, g_strdup(value));
return TRUE;
}
init_core();
/* process the --cmd if this was given */
- for (GSList *l = vb.config.autocmd; l; l = l->next) {
+ for (GSList *l = vb.config.cmdargs; l; l = l->next) {
ex_run_string(l->data);
}
char *nextpattern; /* regex patter nfor prev link matching */
char *prevpattern; /* regex patter nfor next link matching */
char *file; /* path to the custome config file */
- GSList *autocmd; /* list of commands given by --cmd option */
+ GSList *cmdargs; /* list of commands given by --cmd option */
char *cafile; /* path to the ca file */
GTlsDatabase *tls_db; /* tls database */
float default_zoom; /* default zoomlevel that is applied on zz zoom reset */