[GCC-XML] Problem parsing sdl.h
Thomas Heller
theller at python.net
Fri Jan 7 17:12:27 EST 2005
gccxml (on Windows) chokes on this construct, on the line marked ->:
/* A structure to hold a set of audio conversion filters and buffers */
typedef struct SDL_AudioCVT {
int needed; /* Set to 1 if conversion possible */
Uint16 src_format; /* Source audio format */
Uint16 dst_format; /* Target audio format */
double rate_incr; /* Rate conversion increment */
Uint8 *buf; /* Buffer to hold entire audio data */
int len; /* Length of original audio buffer */
int len_cvt; /* Length of converted audio buffer */
int len_mult; /* buffer must be len*len_mult big */
double len_ratio; /* Given len, final size is len*len_ratio */
-> void (SDLCALL *filters[10])(struct SDL_AudioCVT *cvt, Uint16 format);
int filter_index; /* Current audio conversion function */
} SDL_AudioCVT;
The error message:
Warning:
Compiler "cl" specified, but more than one of MSVC 6, 7, and 7.1 are installed.
Please specify "msvc6", "msvc7", or "msvc71" for the GCCXML_COMPILER setting.
Using MSVC 7.1 because it was used to build GCC-XML.
In file included from SDL/include/sdl.h:39,
from c:/dokume~1/thomas/lokale~1/temp/tmpgjd88y.c:1:
SDL/include/SDL_audio.h:98: error: syntax error before `[' token
As far as I can tell, this is valid C. Isn't it?
Thomas
More information about the gccxml
mailing list