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

Function db_logical_or_expr

freebsd/ddb/db_expr.c:351–374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

349}
350
351static bool
352db_logical_or_expr(
353 db_expr_t *valuep)
354{
355 db_expr_t lhs, rhs;
356 int t;
357
358 if (!db_logical_and_expr(&lhs))
359 return(false);
360
361 t = db_read_token();
362 while (t == tLOG_OR) {
363 if (!db_logical_and_expr(&rhs)) {
364 db_printf("Expression syntax error after '%s'\n", "||");
365 db_error(NULL);
366 /*NOTREACHED*/
367 }
368 lhs = (lhs || rhs);
369 t = db_read_token();
370 }
371 db_unread_token(t);
372 *valuep = lhs;
373 return (true);
374}
375
376int
377db_expression(db_expr_t *valuep)

Callers 1

db_expressionFunction · 0.85

Calls 5

db_logical_and_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