Changes in uspace/app/sbi/src/stree.c [051b3db8:c5cb943d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/sbi/src/stree.c
r051b3db8 rc5cb943d 1 1 /* 2 * Copyright (c) 201 1Jiri Svoboda2 * Copyright (c) 2010 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 397 397 } 398 398 399 /** Allocate new @c switch statement.400 *401 * @return New @c if statement402 */403 stree_switch_t *stree_switch_new(void)404 {405 stree_switch_t *switch_s;406 407 switch_s = calloc(1, sizeof(stree_switch_t));408 if (switch_s == NULL) {409 printf("Memory allocation failed.\n");410 exit(1);411 }412 413 return switch_s;414 }415 416 399 /** Allocate new @c while statement. 417 400 * … … 565 548 566 549 return if_clause; 567 }568 569 /** Allocate new @c when clause.570 *571 * @return New @c when clause572 */573 stree_when_t *stree_when_new(void)574 {575 stree_when_t *when_c;576 577 when_c = calloc(1, sizeof(stree_when_t));578 if (when_c == NULL) {579 printf("Memory allocation failed.\n");580 exit(1);581 }582 583 return when_c;584 550 } 585 551
Note:
See TracChangeset
for help on using the changeset viewer.