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

Changeset 5a7c0e6 in mainline for uspace/app/bithenge/test.c


Ignore:
Timestamp:
2012-07-27T01:09:05Z (10 years ago)
Author:
Sean Bartell <wingedtachikoma@…>
Branches:
lfn, master
Children:
6e34bd0
Parents:
43788b2
Message:

Bithenge: rename transform parameters "scopes" and add room for parameters

File:
1 edited

Legend:

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

    r43788b2 r5a7c0e6  
    6969                bithenge_node_dec_ref(node);
    7070        } else {
    71                 bithenge_transform_context_t context;
     71                bithenge_scope_t scope;
    7272                bithenge_transform_t *transform = NULL;
    7373                bithenge_node_t *node = NULL, *node2 = NULL;
    7474
    75                 bithenge_transform_context_init(&context);
     75                bithenge_scope_init(&scope);
    7676
    7777                rc = bithenge_parse_script(argv[1], &transform);
     
    8787                }
    8888
    89                 rc = bithenge_transform_apply(transform, &context, node, &node2);
     89                rc = bithenge_transform_apply(transform, &scope, node, &node2);
    9090                if (rc != EOK) {
    9191                        printf("Error applying transform: %s\n", str_error(rc));
     
    113113                bithenge_node_dec_ref(node2);
    114114                bithenge_transform_dec_ref(transform);
    115                 bithenge_transform_context_destroy(&context);
     115                bithenge_scope_destroy(&scope);
    116116                return 1;
    117117        }
Note: See TracChangeset for help on using the changeset viewer.