33# include <sys/types.h>
37#include "ctwm_atoms.h"
46#ifndef SYSTEM_INIT_FILE
47#error "No SYSTEM_INIT_FILE set"
61# pragma GCC diagnostic push
62# pragma GCC diagnostic ignored "-Wredundant-decls"
64# pragma GCC diagnostic pop
114#if defined(YYDEBUG) && YYDEBUG
149#define TRY(fn) if((ret = ParseTwmrc(fn)) != -1) { goto DONE_TRYING; } (void)0
200 "%s: unable to open twmrc file %s, using %s instead\n",
219 "%s: unable to open twmrc file %s, using built-in defaults instead\n",
260 if(
CLarg.GoThroughM4) {
350#define MAX_INCLUDES 10
400 fprintf(
stderr,
"%s: Unable to open included init file %s\n",
429 if(cp ==
NULL &&
CLarg.keepM4_filename) {
433 "%s: unable to create m4 output %s, ignoring\n",
static bool ParseStringList(const char **sl)
static bool doparse(int(*ifunc)(void), const char *srctypename, const char *srcname)
static const char * currentString
static int twmStringListInput(void)
static const char ** stringListSource
static int twmFileInput(void)
void twmrc_error_prefix(void)
static struct incl rc_includes[10]
int(* twmInputFunc)(void)
static int ParseTwmrc(const char *filename)
Try parsing a file as a ctwmrc.
bool LoadTwmrc(const char *filename)
Principal entry point from top-level code to parse the config file.
FILE * start_m4(FILE *fraw)