Re: Writing a lock-free, threadsafe stack (or queue)

2019-10-25 Thread Hongwei Xi
C does not allow any field (in a struct) to be of the type void. I assume that you did something like pointer(void). If so, please try pointer(int) or pointer(ptr). On Fri, Oct 25, 2019 at 3:25 PM Vanessa McHale wrote: > Unfortunately, that fails to compile (the C code) with: > > In file

Re: Writing a lock-free, threadsafe stack (or queue)

2019-10-25 Thread Vanessa McHale
Unfortunately, that fails to compile (the C code) with: In file included from .atspkg/c/test/stack.c:14: .atspkg/c/test/stack.c: In function ‘_057_home_057_vanessa_057_programming_057_ats_057_stack_057_SATS_057_stack_056_sats__push__1__1’: .atspkg/c/test/stack.c:2884:21: error: variable or field