Changes in uspace/lib/bithenge/src/expression.c [7c3fb9b:1433ecda] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/bithenge/src/expression.c
r7c3fb9b r1433ecda 47 47 * @param[out] self Expression to initialize. 48 48 * @param[in] ops Operations provided by the expression. 49 * @return EOK or an error code from errno.h. 50 */ 49 * @return EOK or an error code from errno.h. */ 51 50 errno_t bithenge_init_expression(bithenge_expression_t *self, 52 51 const bithenge_expression_ops_t *ops) … … 157 156 break; 158 157 case BITHENGE_EXPRESSION_INTEGER_DIVIDE: 159 /* 160 * Integer division can behave in three major ways when the 161 * operands are signed: truncated, floored, or Euclidean. When 158 /* Integer division can behave in three major ways when the 159 operands are signed: truncated, floored, or Euclidean. When 162 160 * b > 0, we give the same result as floored and Euclidean; 163 161 * otherwise, we currently raise an error. See 164 162 * https://en.wikipedia.org/wiki/Modulo_operation and its 165 * references. 166 */ 163 * references. */ 167 164 if (b_int <= 0) { 168 165 rc = EINVAL; … … 252 249 * @param a The first operand. 253 250 * @param b The second operand. 254 * @return EOK on success or an error code from errno.h. 255 */ 251 * @return EOK on success or an error code from errno.h. */ 256 252 errno_t bithenge_binary_expression(bithenge_expression_t **out, 257 253 bithenge_binary_op_t op, bithenge_expression_t *a, … … 309 305 /** Create an expression that gets the current input node. 310 306 * @param[out] out Holds the new expression. 311 * @return EOK on success or an error code from errno.h. 312 */ 307 * @return EOK on success or an error code from errno.h. */ 313 308 errno_t bithenge_in_node_expression(bithenge_expression_t **out) 314 309 { … … 344 339 /** Create an expression that gets the current node being created. 345 340 * @param[out] out Holds the new expression. 346 * @return EOK on success or an error code from errno.h. 347 */ 341 * @return EOK on success or an error code from errno.h. */ 348 342 errno_t bithenge_current_node_expression(bithenge_expression_t **out) 349 343 { … … 395 389 * @param[out] out Holds the created expression. 396 390 * @param index The index of the parameter to get. 397 * @return EOK on success or an error code from errno.h. 398 */ 391 * @return EOK on success or an error code from errno.h. */ 399 392 errno_t bithenge_param_expression(bithenge_expression_t **out, int index) 400 393 { … … 461 454 * @param[out] out Holds the created expression. 462 455 * @param node The constant. 463 * @return EOK on success or an error code from errno.h. 464 */ 456 * @return EOK on success or an error code from errno.h. */ 465 457 errno_t bithenge_const_expression(bithenge_expression_t **out, 466 458 bithenge_node_t *node) … … 544 536 * @param[out] out Holds the new expression. 545 537 * @param key The key to search for in nodes being created. 546 * @return EOK on success or an error code from errno.h. 547 */ 538 * @return EOK on success or an error code from errno.h. */ 548 539 errno_t bithenge_scope_member_expression(bithenge_expression_t **out, 549 540 bithenge_node_t *key) … … 666 657 * @param absolute_limit If true, the limit is an absolute offset; otherwise, 667 658 * it is relative to the start. 668 * @return EOK on success or an error code from errno.h. 669 */ 659 * @return EOK on success or an error code from errno.h. */ 670 660 errno_t bithenge_subblob_expression(bithenge_expression_t **out, 671 661 bithenge_expression_t *blob, bithenge_expression_t *start, … … 825 815 * @param transform The transform for which parameters are calculated. 826 816 * @param params The expressions used to calculate the parameters. 827 * @return EOK on success or an error code from errno.h. 828 */ 817 * @return EOK on success or an error code from errno.h. */ 829 818 errno_t bithenge_param_wrapper(bithenge_transform_t **out, 830 819 bithenge_transform_t *transform, bithenge_expression_t **params) … … 910 899 * @param[out] out Holds the new transform. 911 900 * @param expr The expression to evaluate. 912 * @return EOK on success or an error code from errno.h. 913 */ 901 * @return EOK on success or an error code from errno.h. */ 914 902 errno_t bithenge_expression_transform(bithenge_transform_t **out, 915 903 bithenge_expression_t *expr) … … 968 956 * @param[out] out Holds the new transform. 969 957 * @param expr The expression to evaluate. 970 * @return EOK on success or an error code from errno.h. 971 */ 958 * @return EOK on success or an error code from errno.h. */ 972 959 errno_t bithenge_inputless_transform(bithenge_transform_t **out, 973 960 bithenge_expression_t *expr) … … 1130 1117 * @param a The first blob. 1131 1118 * @param b The second blob. 1132 * @return EOK on success or an error code from errno.h. 1133 */ 1119 * @return EOK on success or an error code from errno.h. */ 1134 1120 errno_t bithenge_concat_blob(bithenge_node_t **out, bithenge_blob_t *a, 1135 1121 bithenge_blob_t *b) … … 1173 1159 * @param b_expr An expression to calculate the second blob. 1174 1160 * @param scope The scope in which @a b_expr should be evaluated. 1175 * @return EOK on success or an error code from errno.h. 1176 */ 1161 * @return EOK on success or an error code from errno.h. */ 1177 1162 errno_t bithenge_concat_blob_lazy(bithenge_node_t **out, bithenge_blob_t *a, 1178 1163 bithenge_expression_t *b_expr, bithenge_scope_t *scope)
Note:
See TracChangeset
for help on using the changeset viewer.