anilgkts / arduino

Automatically exported from code.google.com/p/arduino
Other
0 stars 0 forks source link

WCharacter.h and ctype.h function definitions conflict... #830

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
WCharacter.h (part of Arduino) contains a bunch of isXXXX() function 
definitions that are also defined in ctype.h, which it includes.  But the 
Arduino definitions return "boolean", while ctype.h (and apparently the C99 
standard) definitions use "int."

This does not seem to create problems now, but there are some indications on 
other platforms that this will result in errors under future versions of the 
compiler and/or fussier reporting modes.

If WCharacter.h is going to implement inline versions of the libc functions, it 
should do so with standards-compatible prototypes...

Original issue reported on code.google.com by wes...@gmail.com on 25 Feb 2012 at 7:46

GoogleCodeExporter commented 9 years ago
(oops.  I see the arduino functions are actually isAlpha() rather than 
isalpha(), so that they don't actually conflict.)

Original comment by wes...@gmail.com on 26 Feb 2012 at 2:47