Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: C027Interface C027Interface C027_SupportTest
Fork of C027_Support by
Diff: Pipe.h
- Revision:
- 13:e2446fcdc246
- Parent:
- 9:e7a5959ffae1
- Child:
- 21:c4d64830bf02
diff -r 684b31d5482b -r e2446fcdc246 Pipe.h
--- a/Pipe.h Fri Nov 15 13:33:39 2013 +0000
+++ b/Pipe.h Tue Nov 19 08:34:51 2013 +0000
@@ -20,7 +20,7 @@
_b = b ? b : _a;
_s = n;
}
- virtual ~Pipe()
+ virtual ~Pipe(void)
{
if (_a)
delete [] _a;
@@ -37,7 +37,7 @@
s += _s;
return s - 1;
}
- void putc(T c)
+ T putc(T c)
{
int i = _w;
int j = i;
@@ -45,7 +45,8 @@
while (i == _r) // = !writeable()
/*wait for space*/;
_b[j] = c;
- _w = i;
+ _w = i;
+ return c;
}
int put(const T* p, int n, bool t = false)
{
