/* * Var_Init * Initialize the module */ void Var_Init(void) { ohash_init(&global_variables, 10, &var_info); set_magic_shell_variable(); errorIsOkay = true; Var_setCheckEnvFirst(false); VarModifiers_Init(); Buf_Init(&subst_buffer, MAKE_BSIZE); }
static void posixParseOptLetter(int c) { switch(c) { case 'B': compatMake = true; return; /* XXX don't pass to submakes. */ case 'S': keepgoing = false; break; case 'e': Var_setCheckEnvFirst(true); break; case 'i': ignoreErrors = true; break; case 'k': keepgoing = true; break; case 'n': noExecute = true; break; case 'p': dumpData = true; break; case 'q': queryFlag = true; /* Kind of nonsensical, wot? */ break; case 'r': noBuiltins = true; break; case 's': beSilent = true; break; case 't': touchFlag = true; break; default: case '?': usage(); } record_option(c, NULL); }