Changeset 7c3fb9b in mainline for uspace/lib/bithenge/src/expression.c


Ignore:
Timestamp:
2018-05-17T08:29:01Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6ff23ff
Parents:
fac0ac7
git-author:
Jiri Svoboda <jiri@…> (2018-05-16 17:28:17)
git-committer:
Jiri Svoboda <jiri@…> (2018-05-17 08:29:01)
Message:

Fix block comment formatting (ccheck).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/bithenge/src/expression.c

    rfac0ac7 r7c3fb9b  
    4747 * @param[out] self Expression to initialize.
    4848 * @param[in] ops Operations provided by the expression.
    49  * @return EOK or an error code from errno.h. */
     49 * @return EOK or an error code from errno.h.
     50 */
    5051errno_t bithenge_init_expression(bithenge_expression_t *self,
    5152    const bithenge_expression_ops_t *ops)
     
    156157                break;
    157158        case BITHENGE_EXPRESSION_INTEGER_DIVIDE:
    158                 /* Integer division can behave in three major ways when the
    159                   operands are signed: truncated, floored, or Euclidean. When
     159                /*
     160                 * Integer division can behave in three major ways when the
     161                 * operands are signed: truncated, floored, or Euclidean. When
    160162                 * b > 0, we give the same result as floored and Euclidean;
    161163                 * otherwise, we currently raise an error. See
    162164                 * https://en.wikipedia.org/wiki/Modulo_operation and its
    163                  * references. */
     165                 * references.
     166                 */
    164167                if (b_int <= 0) {
    165168                        rc = EINVAL;
     
    249252 * @param a The first operand.
    250253 * @param b The second operand.
    251  * @return EOK on success or an error code from errno.h. */
     254 * @return EOK on success or an error code from errno.h.
     255 */
    252256errno_t bithenge_binary_expression(bithenge_expression_t **out,
    253257    bithenge_binary_op_t op, bithenge_expression_t *a,
     
    305309/** Create an expression that gets the current input node.
    306310 * @param[out] out Holds the new expression.
    307  * @return EOK on success or an error code from errno.h. */
     311 * @return EOK on success or an error code from errno.h.
     312 */
    308313errno_t bithenge_in_node_expression(bithenge_expression_t **out)
    309314{
     
    339344/** Create an expression that gets the current node being created.
    340345 * @param[out] out Holds the new expression.
    341  * @return EOK on success or an error code from errno.h. */
     346 * @return EOK on success or an error code from errno.h.
     347 */
    342348errno_t bithenge_current_node_expression(bithenge_expression_t **out)
    343349{
     
    389395 * @param[out] out Holds the created expression.
    390396 * @param index The index of the parameter to get.
    391  * @return EOK on success or an error code from errno.h. */
     397 * @return EOK on success or an error code from errno.h.
     398 */
    392399errno_t bithenge_param_expression(bithenge_expression_t **out, int index)
    393400{
     
    454461 * @param[out] out Holds the created expression.
    455462 * @param node The constant.
    456  * @return EOK on success or an error code from errno.h. */
     463 * @return EOK on success or an error code from errno.h.
     464 */
    457465errno_t bithenge_const_expression(bithenge_expression_t **out,
    458466    bithenge_node_t *node)
     
    536544 * @param[out] out Holds the new expression.
    537545 * @param key The key to search for in nodes being created.
    538  * @return EOK on success or an error code from errno.h. */
     546 * @return EOK on success or an error code from errno.h.
     547 */
    539548errno_t bithenge_scope_member_expression(bithenge_expression_t **out,
    540549    bithenge_node_t *key)
     
    657666 * @param absolute_limit If true, the limit is an absolute offset; otherwise,
    658667 * it is relative to the start.
    659  * @return EOK on success or an error code from errno.h. */
     668 * @return EOK on success or an error code from errno.h.
     669 */
    660670errno_t bithenge_subblob_expression(bithenge_expression_t **out,
    661671    bithenge_expression_t *blob, bithenge_expression_t *start,
     
    815825 * @param transform The transform for which parameters are calculated.
    816826 * @param params The expressions used to calculate the parameters.
    817  * @return EOK on success or an error code from errno.h. */
     827 * @return EOK on success or an error code from errno.h.
     828 */
    818829errno_t bithenge_param_wrapper(bithenge_transform_t **out,
    819830    bithenge_transform_t *transform, bithenge_expression_t **params)
     
    899910 * @param[out] out Holds the new transform.
    900911 * @param expr The expression to evaluate.
    901  * @return EOK on success or an error code from errno.h. */
     912 * @return EOK on success or an error code from errno.h.
     913 */
    902914errno_t bithenge_expression_transform(bithenge_transform_t **out,
    903915    bithenge_expression_t *expr)
     
    956968 * @param[out] out Holds the new transform.
    957969 * @param expr The expression to evaluate.
    958  * @return EOK on success or an error code from errno.h. */
     970 * @return EOK on success or an error code from errno.h.
     971 */
    959972errno_t bithenge_inputless_transform(bithenge_transform_t **out,
    960973    bithenge_expression_t *expr)
     
    11171130 * @param a The first blob.
    11181131 * @param b The second blob.
    1119  * @return EOK on success or an error code from errno.h. */
     1132 * @return EOK on success or an error code from errno.h.
     1133 */
    11201134errno_t bithenge_concat_blob(bithenge_node_t **out, bithenge_blob_t *a,
    11211135    bithenge_blob_t *b)
     
    11591173 * @param b_expr An expression to calculate the second blob.
    11601174 * @param scope The scope in which @a b_expr should be evaluated.
    1161  * @return EOK on success or an error code from errno.h. */
     1175 * @return EOK on success or an error code from errno.h.
     1176 */
    11621177errno_t bithenge_concat_blob_lazy(bithenge_node_t **out, bithenge_blob_t *a,
    11631178    bithenge_expression_t *b_expr, bithenge_scope_t *scope)
Note: See TracChangeset for help on using the changeset viewer.