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:
25
lib-src/libnyquist/nyquist/nyqsrc/cque.h
Normal file
25
lib-src/libnyquist/nyquist/nyqsrc/cque.h
Normal 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)
|
Reference in New Issue
Block a user