예제 #1
0
파일: queue_test.c 프로젝트: 2asoft/freebsd
ATF_TC_BODY(slist_test, tc)
{
	SLIST_HEAD(stailhead, entry) head = SLIST_HEAD_INITIALIZER(head);
	struct entry {
		SLIST_ENTRY(entry) entries;
		int i;
	} *n1, *n2, *n3, *np;
예제 #2
0
int main() {

	int i = 0;

	struct sListElement {
		int fD;
		SLIST_ENTRY(sListElement) sListElements;     /* Singly-linked List. */
	} *e1_p, *e2_p, *e3_p, *next_p;
예제 #3
0
static int console_init_file_cache() {
  struct dirent *dp = NULL;
  DIR *dirp = NULL;
  int ret = 0;
  struct cache_file {
    SLIST_ENTRY(cache_file) entries;
    char *file_name;
  };
예제 #4
0
파일: inttree.c 프로젝트: Acidburn0zzz/yasm
void
IT_destroy(IntervalTree *it)
{
    IntervalTreeNode *x = it->root->left;
    SLIST_HEAD(node_head, nodeent)
        stuffToFree = SLIST_HEAD_INITIALIZER(stuffToFree);
    struct nodeent {
        SLIST_ENTRY(nodeent) link;
        struct IntervalTreeNode *node;
    } *np;
예제 #5
0
파일: slist_tests.c 프로젝트: BruceYi/okl4
END_TEST

/* 
 * Insert at the head. Check SLIST_NEXT().
 */
START_TEST(SLIST02)
{
    SLIST_HEAD(slisthead_t, node_t) slisthead = SLIST_HEAD_INITIALIZER(slisthead);
    struct node_t {
        int data;
         SLIST_ENTRY(node_t) links;
    } *elm1, *elm2;