1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-19 09:01:15 +02:00

Move library tree where it belongs

This commit is contained in:
ra
2010-01-24 09:19:39 +00:00
parent e74978ba77
commit 58caf78a86
6020 changed files with 2790154 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
/*
* cque.h
* macros for free lists.
*/
typedef struct cque {
struct cque *qnext;
} CQUE;
#define Qinit(q1) { (q1) = 0; }
/* q1 points to a stack CQUE*, new is an element to insert */
#define Qenter(q1,new) { \
((CQUE *)(new))->qnext = ((CQUE *)(q1)); \
q1 = ((CQUE *)(new)); }
/* q1 points to a list of CQUE*: remove elt and assign to new */
/* NOTE: q1 must be non-empty */
#define Qget(q1,newtype,new) { \
(new) = (newtype)(q1); \
q1 = ((CQUE *)(q1))->qnext; }
#define Qempty(q1) ((q1) == 0)