Last change
on this file since e225e77 was 7258c6a, checked in by Thomas Lopatic <thomas@…>, 7 years ago |
Use standard integer types.
|
-
Property mode
set to
100644
|
File size:
774 bytes
|
Line | |
---|
1 | /*
|
---|
2 | ============================================================================
|
---|
3 | wordq.h -- header for word queue functions
|
---|
4 | Version 1 -- 1988-11-02 -- D.N. Lynx Crowe
|
---|
5 | ============================================================================
|
---|
6 | */
|
---|
7 |
|
---|
8 | struct wordq {
|
---|
9 |
|
---|
10 | uint16_t qsize; /* maximum queue length */
|
---|
11 | uint16_t qlen; /* current queue length */
|
---|
12 | uint16_t qin; /* in pointer */
|
---|
13 | uint16_t qout; /* out pointer */
|
---|
14 | uint16_t qhi; /* high water mark */
|
---|
15 | uint16_t qlo; /* low water mark */
|
---|
16 | uint16_t *qbuf; /* base of queue */
|
---|
17 | };
|
---|
18 |
|
---|
19 | #ifndef WORDQHDR
|
---|
20 | extern int16_t putwq(struct wordq *qp, uint16_t c);
|
---|
21 | extern int16_t getwq(struct wordq *qp, uint16_t *p);
|
---|
22 | extern uint16_t setwq(struct wordq *qp, uint16_t *qadr, uint16_t qsiz, uint16_t hi, uint16_t lo);
|
---|
23 | #endif
|
---|
24 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.