This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Why do I get an error :"expected a declaration"
For there lines?
#define RB_INITIALIZE(rb)
do
{
(rb).read_idx = 0;
(rb).write_idx = 0;
(rb).data_ct = 0;
}
while (0);
It seems to me a properly define routine.
ephirubin0719@cox.net
It looks as though you're missing the line-continuation backslashes, e.g.:
do \
{ \
(and so on).
Unsolicited: If you're going to use the "do{}while(0)" form, you should leave out the final semicolon, so you get the benefit of the form.
**Attention** This is a public forum