Changeset 5f679702 in mainline for uspace/app/bithenge/print.c
- Timestamp:
- 2012-06-07T04:03:16Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5c925ce
- Parents:
- 520acaf
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bithenge/print.c
r520acaf r5f679702 68 68 } 69 69 70 static int print_internal(bithenge_print_type_t type, bithenge_ internal_node_t *node)70 static int print_internal(bithenge_print_type_t type, bithenge_node_t *node) 71 71 { 72 72 int rc; … … 80 80 } 81 81 82 static int print_boolean(bithenge_print_type_t type, bithenge_ boolean_node_t *node)82 static int print_boolean(bithenge_print_type_t type, bithenge_node_t *node) 83 83 { 84 84 bool value = bithenge_boolean_node_value(node); … … 94 94 } 95 95 96 static int print_integer(bithenge_print_type_t type, bithenge_ integer_node_t *node)96 static int print_integer(bithenge_print_type_t type, bithenge_node_t *node) 97 97 { 98 98 bithenge_int_t value = bithenge_integer_node_value(node); … … 101 101 } 102 102 103 static int print_string(bithenge_print_type_t type, bithenge_ string_node_t *node)103 static int print_string(bithenge_print_type_t type, bithenge_node_t *node) 104 104 { 105 105 size_t off = 0; … … 126 126 return EINVAL; 127 127 case BITHENGE_NODE_INTERNAL: 128 return print_internal(type, bithenge_as_internal_node(tree));128 return print_internal(type, tree); 129 129 case BITHENGE_NODE_BOOLEAN: 130 return print_boolean(type, bithenge_as_boolean_node(tree));130 return print_boolean(type, tree); 131 131 case BITHENGE_NODE_INTEGER: 132 return print_integer(type, bithenge_as_integer_node(tree));132 return print_integer(type, tree); 133 133 case BITHENGE_NODE_STRING: 134 return print_string(type, bithenge_as_string_node(tree));134 return print_string(type, tree); 135 135 } 136 136 return ENOTSUP;
Note:
See TracChangeset
for help on using the changeset viewer.