A template parsing library and tool written in C.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

29 lines
993 B

#ifndef _IDENT_LIST_H_
#define _IDENT_LIST_H_
typedef struct identList s_identList;
#include <ident.h>
#include <expValue.h>
/* constructor/destructor for new identList */
s_identList * identListNew (void);
void identListFree (s_identList *);
/* insertions or deletion into a list */
s_ident * identListPutVal (s_identList *, s_ident *);
s_ident * identListPutExpByIdx (s_identList *, int, s_expVal *);
s_ident * identListPutIdlByIdx (s_identList *, int, s_identList *);
s_ident * identListPutExpByKey (s_identList *, const char *, s_expVal *);
s_ident * identListPutIdlByKey (s_identList *, const char *, s_identList *);
void identListRemoveByIdx (s_identList *, int);
void identListRemoveByKey (s_identList *, const char *);
/* seeking in list */
s_ident * identListSeekIdx (s_identList *, int);
s_ident * identListSeekKey (s_identList *, const char *);
/* identList to other DataStructures */
s_ident ** identListToArray (s_identList *);
#endif /* _IDENT_LIST_H_ */