MCPcopy Create free account
hub / github.com/F-Stack/f-stack / db_logical_and_expr

Function db_logical_and_expr

freebsd/ddb/db_expr.c:326–349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

324}
325
326static bool
327db_logical_and_expr(
328 db_expr_t *valuep)
329{
330 db_expr_t lhs, rhs;
331 int t;
332
333 if (!db_logical_relation_expr(&lhs))
334 return (false);
335
336 t = db_read_token();
337 while (t == tLOG_AND) {
338 if (!db_logical_relation_expr(&rhs)) {
339 db_printf("Expression syntax error after '%s'\n", "&&");
340 db_error(NULL);
341 /*NOTREACHED*/
342 }
343 lhs = (lhs && rhs);
344 t = db_read_token();
345 }
346 db_unread_token(t);
347 *valuep = lhs;
348 return (true);
349}
350
351static bool
352db_logical_or_expr(

Callers 1

db_logical_or_exprFunction · 0.85

Calls 5

db_logical_relation_exprFunction · 0.85
db_read_tokenFunction · 0.85
db_printfFunction · 0.85
db_errorFunction · 0.85
db_unread_tokenFunction · 0.85

Tested by

no test coverage detected