Commit Graph

9 Commits

Author SHA1 Message Date
Cristian Maglie df778925a8 Printable.h doesn't need new.h but only stdlib.h for size_t.
Probalby new.h may be removed completely.
2014-09-06 12:37:57 +02:00
amcewen f9d50a7930 Merge branch 'new-extension' of https://github.com/arduino/Arduino 2011-08-27 23:53:42 +01:00
David A. Mellis 5130a13294 Moving write errors out of return value into separate API methods.
write(), print(), println() now return size_t (and don't use negative values to signal errors).
Print adds writeError() for checking for write errors, clearWriteError() to reset the flag to false, and a protected setWriteError() for signalling errors.

http://code.google.com/p/arduino/issues/detail?id=598
2011-08-26 16:08:14 -04:00
David A. Mellis 0635790dd1 Changing from long to ssize_t (int) for write(), print(), println() return. 2011-08-26 14:20:41 -04:00
David A. Mellis f282cbaf96 write(), print(), and println() now return number of bytes written.
The type is long, and negative values indicate errors.  Needs more testing.
http://code.google.com/p/arduino/issues/detail?id=551
2011-08-23 19:12:03 -04:00
David A. Mellis a239d2c541 Added Printable interface class to allow printing of classes such as IPAddress 2011-06-04 09:19:17 -04:00
amcewen edee02eaf1 Added virtual destructor to Printable, which also requires new and delete operators to be added 2011-04-10 11:34:40 +01:00
amcewen 49155d0a46 Added a brief explanation of how you'd use Printable 2011-04-02 11:33:27 +01:00
amcewen 2cedbeef13 Added Printable interface class to allow printing of classes such as IPAddress 2011-04-01 21:10:38 +01:00