Lines Matching refs:global
57 void varcleanup(struct GlobalConfig *global) in varcleanup() argument
59 struct tool_var *list = global->variables; in varcleanup()
68 static const struct tool_var *varcontent(struct GlobalConfig *global, in varcontent() argument
71 struct tool_var *list = global->variables; in varcontent()
95 static ParameterError varfunc(struct GlobalConfig *global, in varfunc() argument
184 errorf(global, "unknown variable function in '%.*s'", in varfunc()
207 ParameterError varexpand(struct GlobalConfig *global, in varexpand() argument
243 warnf(global, "missing close '}}' in '%s'", input); in varexpand()
257 warnf(global, "bad variable name length '%s'", input); in varexpand()
277 warnf(global, "bad variable name: %s", name); in varexpand()
288 const struct tool_var *v = varcontent(global, name, nlen); in varexpand()
300 ParameterError err = varfunc(global, value, vlen, funcp, flen, in varexpand()
313 errorf(global, "variable contains null byte"); in varexpand()
347 static ParameterError addvariable(struct GlobalConfig *global, in addvariable() argument
355 const struct tool_var *check = varcontent(global, name, nlen); in addvariable()
358 notef(global, "Overwriting variable '%s'", check->name); in addvariable()
368 p->next = global->variables; in addvariable()
369 global->variables = p; in addvariable()
377 ParameterError setvariable(struct GlobalConfig *global, in setvariable() argument
400 warnf(global, "Bad variable name length (%zd), skipping", nlen); in setvariable()
415 errorf(global, "Variable '%s' import fail, not set", name); in setvariable()
437 errorf(global, "Failed to open %s", line); in setvariable()
456 warnf(global, "Bad --variable syntax, skipping: %s", input); in setvariable()
459 err = addvariable(global, name, nlen, content, clen, contalloc); in setvariable()