symlist.h

Mon, 17 Jan 2005 22:02:09 +0100

author
tuomov
date
Mon, 17 Jan 2005 22:02:09 +0100
changeset 85
9f94b2e96e3b
parent 62
aae5facf9fc5
child 88
308dfa54da3e
permissions
-rw-r--r--

trunk: changeset 1934
Fixed everything that requires locale stuff to check CF_NO_LOCALE.

/*
 * libtu/symlist.h
 *
 * Copyright (c) Tuomo Valkonen 1999-2004. 
 *
 * You may distribute and modify this library under the terms of either
 * the Clarified Artistic License or the GNU LGPL, version 2.1 or later.
 */

#ifndef LIBTU_SYMLIST_H
#define LIBTU_SYMLIST_H

#include "types.h"
#include "obj.h"


INTRSTRUCT(Symlist);


DECLSTRUCT(Symlist){
    void *symbol;
    Symlist *next, *prev;
};


#define ITERATE_SYMLIST(TYPE, VAR, LIST)     \
    for((VAR)=(TYPE)symlist_init_iter(LIST); \
        (VAR)!=NULL;                         \
        (VAR)=(TYPE)symlist_iter())


bool symlist_insert(Symlist **symlist, void *symbol);
void symlist_remove(Symlist **symlist, void *symbol);
void symlist_clear(Symlist **symlist);
void *symlist_init_iter(Symlist *symlist);
void *symlist_iter();

#endif /* LIBTU_SYMLIST_H */

mercurial