source: buchla-68k/include/wordq.h@ e225e77

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
RevLine 
[f40a309]1/*
2 ============================================================================
3 wordq.h -- header for word queue functions
4 Version 1 -- 1988-11-02 -- D.N. Lynx Crowe
5 ============================================================================
6*/
7
8struct wordq {
9
[7258c6a]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 */
[f40a309]17};
18
19#ifndef WORDQHDR
[7258c6a]20extern int16_t putwq(struct wordq *qp, uint16_t c);
21extern int16_t getwq(struct wordq *qp, uint16_t *p);
22extern uint16_t setwq(struct wordq *qp, uint16_t *qadr, uint16_t qsiz, uint16_t hi, uint16_t lo);
[f40a309]23#endif
[7258c6a]24
Note: See TracBrowser for help on using the repository browser.