diff options
| author | Rafael Zalamena <rzalamena@users.noreply.github.com> | 2017-12-01 17:46:02 -0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-12-01 17:46:02 -0200 |
| commit | e0973eec67baa7a976c9cfc2b7af4386a28f638c (patch) | |
| tree | 1322d2443437dc9afbe112152c0a6c9745e89a71 /lib/stream.h | |
| parent | 493472ba8ecb44f21bc9cd85c1307262648d5bc3 (diff) | |
| parent | 2d34fb80b81c929bcf0d2524b0f2383ee01ea5dc (diff) | |
Merge pull request #1433 from qlyoung/remove-deprecated-stream-macros
*: don't use deprecated stream.h macros
Diffstat (limited to 'lib/stream.h')
| -rw-r--r-- | lib/stream.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/stream.h b/lib/stream.h index 1048180fac..4d387f9564 100644 --- a/lib/stream.h +++ b/lib/stream.h @@ -123,10 +123,15 @@ struct stream_fifo { #define STREAM_CONCAT_REMAIN(S1, S2, size) ((size) - (S1)->endp - (S2)->endp) /* deprecated macros - do not use in new code */ +#if CONFDATE > 20181128 +CPP_NOTICE("lib: time to remove deprecated stream.h macros") +#endif #define STREAM_PNT(S) stream_pnt((S)) -#define STREAM_DATA(S) ((S)->data) #define STREAM_REMAIN(S) STREAM_WRITEABLE((S)) +/* this macro is deprecated, but not slated for removal anytime soon */ +#define STREAM_DATA(S) ((S)->data) + /* Stream prototypes. * For stream_{put,get}S, the S suffix mean: * |
