ARGOBOTS  1227c643f7a7f974f1f1778a9ffebd29d7dafecf
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
Functions
abtd_affinity_parser.c File Reference
#include "abti.h"
Include dependency graph for abtd_affinity_parser.c:

Go to the source code of this file.

Functions

static ABTD_affinity_id_listid_list_create (void)
 
static void id_list_free (ABTD_affinity_id_list *p_id_list)
 
static void id_list_add (ABTD_affinity_id_list *p_id_list, int id, int num, int stride)
 
static ABTD_affinity_listlist_create (void)
 
static void list_free (ABTD_affinity_list *p_list)
 
static void list_add (ABTD_affinity_list *p_list, ABTD_affinity_id_list *p_base, int num, int stride)
 
static int is_whitespace (char c)
 
static int consume_int (const char *str, int *p_index, int *p_val)
 
static int consume_pint (const char *str, int *p_index, int *p_val)
 
static int consume_symbol (const char *str, int *p_index, char symbol)
 
static ABTD_affinity_id_listparse_es_id_list (const char *affinity_str, int *p_index)
 
static ABTD_affinity_listparse_list (const char *affinity_str)
 
ABTD_affinity_listABTD_affinity_list_create (const char *affinity_str)
 
void ABTD_affinity_list_free (ABTD_affinity_list *p_list)
 

Function Documentation

ABTD_affinity_list* ABTD_affinity_list_create ( const char *  affinity_str)

Definition at line 251 of file abtd_affinity_parser.c.

Referenced by ABTD_affinity_init().

void ABTD_affinity_list_free ( ABTD_affinity_list p_list)

Definition at line 256 of file abtd_affinity_parser.c.

Referenced by ABTD_affinity_init().

static int consume_int ( const char *  str,
int *  p_index,
int *  p_val 
)
static

Definition at line 89 of file abtd_affinity_parser.c.

Referenced by consume_pint(), parse_es_id_list(), and parse_list().

static int consume_pint ( const char *  str,
int *  p_index,
int *  p_val 
)
static

Definition at line 125 of file abtd_affinity_parser.c.

Referenced by parse_es_id_list(), and parse_list().

static int consume_symbol ( const char *  str,
int *  p_index,
char  symbol 
)
static

Definition at line 138 of file abtd_affinity_parser.c.

Referenced by parse_es_id_list(), and parse_list().

static void id_list_add ( ABTD_affinity_id_list p_id_list,
int  id,
int  num,
int  stride 
)
static

Definition at line 24 of file abtd_affinity_parser.c.

Referenced by parse_es_id_list().

static ABTD_affinity_id_list* id_list_create ( void  )
static

Definition at line 8 of file abtd_affinity_parser.c.

Referenced by list_add(), and parse_es_id_list().

static void id_list_free ( ABTD_affinity_id_list p_id_list)
static

Definition at line 17 of file abtd_affinity_parser.c.

Referenced by list_free(), parse_es_id_list(), and parse_list().

static int is_whitespace ( char  c)
inlinestatic

Definition at line 83 of file abtd_affinity_parser.c.

Referenced by consume_int(), and consume_symbol().

static void list_add ( ABTD_affinity_list p_list,
ABTD_affinity_id_list p_base,
int  num,
int  stride 
)
static

Definition at line 59 of file abtd_affinity_parser.c.

Referenced by parse_list().

static ABTD_affinity_list* list_create ( void  )
static

Definition at line 39 of file abtd_affinity_parser.c.

Referenced by parse_list().

static void list_free ( ABTD_affinity_list p_list)
static

Definition at line 48 of file abtd_affinity_parser.c.

Referenced by ABTD_affinity_list_free(), and parse_list().

static ABTD_affinity_id_list* parse_es_id_list ( const char *  affinity_str,
int *  p_index 
)
static

Definition at line 156 of file abtd_affinity_parser.c.

Referenced by parse_list().

static ABTD_affinity_list* parse_list ( const char *  affinity_str)
static

Definition at line 205 of file abtd_affinity_parser.c.

Referenced by ABTD_affinity_list_create().