Example #1
0
/* Read mararc parameters and set global variables based on those
 * parameters */
void process_mararc(char *name) {
    if(dwm_parse_mararc(name) != 1) {
        dw_log_3strings("Fatal error parsing file ",name,"",1);
        exit(1);
    }
    /* The following sanity check triggers a warning; disabled */
    /*if(key_s == 0 || key_d == 0) {
            dw_fatal("error getting mararc parameters");
    }*/
}
Example #2
0
/* Read mararc parameters and set global variables based on those
 * parameters; disable cache reading if cache file is more recent */
void process_mararc(char *name) {
        if(dwm_parse_mararc(name) != 1) {
                dw_log_3strings("Fatal error parsing file ",name,"",1);
                exit(1);
        }
        /* The following sanity check triggers a warning; disabled */
        /*if(key_s == 0 || key_d == 0) {
                dw_fatal("error getting mararc parameters");
        }*/
        /* If the dwood3rc is newer than the cache file, do not read the
         * cache */
        if(stat(name,&mararc_st) != 0) {
                dw_log_string("Can not stat rc file; not reading cache",0);
                do_read_cache = 0;
        }
}