Logo Search packages:      
Sourcecode: mswatch version File versions  Download package

parser_types.c

#include <stdlib.h>
#include "lib/util.h"
#include "parser_types.h"

struct rc_setting* create_rc_setting(void)
{
      struct rc_setting* rcs = malloc(sizeof(*rcs));
      die_if(!rcs, "malloc(%u)", sizeof(*rcs));
      rcs->type = RCS_NONE;
      rcs->prev = NULL;
      return rcs;
}

struct rc_store_setting* create_rc_store_setting(void)
{
      struct rc_store_setting* rcss = malloc(sizeof(*rcss));
      die_if(!rcss, "malloc(%u)", sizeof(*rcss));
      rcss->type = RCSS_NONE;
      rcss->prev = NULL;
      return rcss;
}

struct str_list* create_str_list(void)
{
      struct str_list* sl = malloc(sizeof(*sl));
      die_if(!sl, "malloc(%u)", sizeof(*sl));
      sl->str = NULL;
      sl->prev = NULL;
      return sl;
}

Generated by  Doxygen 1.6.0   Back to index