htod and size_t

Walter Bright newshound at digitalmars.com
Mon May 29 11:53:22 PDT 2006


Brad Anderson wrote:
> Hope this is the right place for a htod bug.
> 
> The C code:
> size_t tds_sys_iconv(iconv_t cd, const char **inbuf, size_t *inbytesleft, char
> **outbuf, size_t * outbytesleft);
> 
> when being put thru htod as such:
> D:\dev\c\freetds\include>htod tdsiconv.h -I.
> 
> results in an error:
> tdsiconv.h(94) : Error: missing ',' between declaration of 'size_t' and
> 'tds_sys_iconv'
> 
> Am I missing something here?

Almost certainly it is because size_t is undefined. htod works just like 
a C compiler (DMC, to be precise), so the headers need to be supplied to 
it just like you would to DMC.



More information about the Digitalmars-d-bugs mailing list