Changes in uspace/app/sbi/src/stree.c [c5cb943d:051b3db8] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/sbi/src/stree.c
rc5cb943d r051b3db8 1 1 /* 2 * Copyright (c) 201 0Jiri Svoboda2 * Copyright (c) 2011 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 statement 402 */ 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 399 416 /** Allocate new @c while statement. 400 417 * … … 548 565 549 566 return if_clause; 567 } 568 569 /** Allocate new @c when clause. 570 * 571 * @return New @c when clause 572 */ 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; 550 584 } 551 585
Note:
See TracChangeset
for help on using the changeset viewer.