MCPcopy Create free account
hub / github.com/coreboot/coreboot / compile_reg_expr

Function compile_reg_expr

util/amdfwtool/data_parse.c:223–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221};
222
223void compile_reg_expr(int cflags, const char *expr, regex_t *reg)
224{
225 static const size_t ERROR_BUF_SIZE = 256;
226 char error_msg[ERROR_BUF_SIZE];
227 int result;
228
229 result = regcomp(reg, expr, cflags);
230 if (result != 0) {
231 regerror(result, reg, error_msg, ERROR_BUF_SIZE);
232 fprintf(stderr, "%s\n", error_msg);
233 }
234}
235
236#define SET_LEVEL(tableptr, l, TABLE, ab) \
237 do { \

Callers 1

process_configFunction · 0.70

Calls 3

regcompFunction · 0.85
regerrorFunction · 0.85
fprintfFunction · 0.85

Tested by

no test coverage detected