Extract left arg of a binary opclause, or only arg of a unary opclause */
| 70 | |
| 71 | /* Extract left arg of a binary opclause, or only arg of a unary opclause */ |
| 72 | static inline Node * |
| 73 | get_leftop(const void *clause) |
| 74 | { |
| 75 | const OpExpr *expr = (const OpExpr *) clause; |
| 76 | |
| 77 | if (expr->args != NIL) |
| 78 | return (Node *) linitial(expr->args); |
| 79 | else |
| 80 | return NULL; |
| 81 | } |
| 82 | |
| 83 | /* Extract right arg of a binary opclause (NULL if it's a unary opclause) */ |
| 84 | static inline Node * |
no outgoing calls