View Single Post
Old 08-24-2009, 08:04 AM   #134
Antartica
Evangelist
Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.
 
Antartica's Avatar
 
Posts: 423
Karma: 1517132
Join Date: Jun 2006
Location: Madrid, Spain
Device: quaderno, remarkable2, yotaphone2, prs950, iliad, onhandpc, newton
Quote:
Originally Posted by ericshliao View Post
One point that I forgot to mention:
It seems iRex SDK won't accept
Code:
return(EpdLocalSend((_sEpd *)Epd,(Enabled!=0)?"Auto(1)\n":"Auto(0)\n"));
Thanks.

Well, it isn't iRex SDK what is complaining, but it is the C++ compiler trying to compile C code. C++ is a lot more nitpicking that C in regard to automatic casts.

Your workaround is OK, but it would be simpler to just declare the second argument of the declaration of EpdLocalSend as an "const char *".

I'll make the code c++-safe in the next release .
Antartica is offline   Reply With Quote