Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 5f679702 in mainline for uspace/app/bithenge/print.c


Ignore:
Timestamp:
2012-06-07T04:03:16Z (9 years ago)
Author:
Sean Bartell <wingedtachikoma@…>
Branches:
lfn, master
Children:
5c925ce
Parents:
520acaf
Message:

Bithenge: simplification

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bithenge/print.c

    r520acaf r5f679702  
    6868}
    6969
    70 static int print_internal(bithenge_print_type_t type, bithenge_internal_node_t *node)
     70static int print_internal(bithenge_print_type_t type, bithenge_node_t *node)
    7171{
    7272        int rc;
     
    8080}
    8181
    82 static int print_boolean(bithenge_print_type_t type, bithenge_boolean_node_t *node)
     82static int print_boolean(bithenge_print_type_t type, bithenge_node_t *node)
    8383{
    8484        bool value = bithenge_boolean_node_value(node);
     
    9494}
    9595
    96 static int print_integer(bithenge_print_type_t type, bithenge_integer_node_t *node)
     96static int print_integer(bithenge_print_type_t type, bithenge_node_t *node)
    9797{
    9898        bithenge_int_t value = bithenge_integer_node_value(node);
     
    101101}
    102102
    103 static int print_string(bithenge_print_type_t type, bithenge_string_node_t *node)
     103static int print_string(bithenge_print_type_t type, bithenge_node_t *node)
    104104{
    105105        size_t off = 0;
     
    126126                return EINVAL;
    127127        case BITHENGE_NODE_INTERNAL:
    128                 return print_internal(type, bithenge_as_internal_node(tree));
     128                return print_internal(type, tree);
    129129        case BITHENGE_NODE_BOOLEAN:
    130                 return print_boolean(type, bithenge_as_boolean_node(tree));
     130                return print_boolean(type, tree);
    131131        case BITHENGE_NODE_INTEGER:
    132                 return print_integer(type, bithenge_as_integer_node(tree));
     132                return print_integer(type, tree);
    133133        case BITHENGE_NODE_STRING:
    134                 return print_string(type, bithenge_as_string_node(tree));
     134                return print_string(type, tree);
    135135        }
    136136        return ENOTSUP;
Note: See TracChangeset for help on using the changeset viewer.