Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/sbi/src/stree.c

    r051b3db8 rc5cb943d  
    11/*
    2  * Copyright (c) 2011 Jiri Svoboda
     2 * Copyright (c) 2010 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    397397}
    398398
    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 
    416399/** Allocate new @c while statement.
    417400 *
     
    565548
    566549        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;
    584550}
    585551
Note: See TracChangeset for help on using the changeset viewer.