home *** CD-ROM | disk | FTP | other *** search
- /* these must change if the underlying
- cell representation changes */
-
- typedef int qele_type;
- #define qele_cpy(x,y) x=y
- #define qele_incr(x) x+=1
- #define q_NIL 0
- #define EMPTY -99
- #define FULL -98
- #define NORMAL -97
-
- /* these define the "public interface" to the
- operations legal on the cyclic buffer named "queue" */
-
- extern qele_type q_get(void);
- extern qele_type q_put(qele_type);
- extern int q_free(void);
- extern int q_bsy(void);
-
- /* these change if the queue length is
- to change */
-
- #define q_MAX 128
- #define q_WRAP q_MAX-1
-
-