* stream_move_node - move a streamnode from StreamBitMap (source)'s streamnode * to given StreamBitMap(destination). Also transfer the ownership of source streamnode by * resetting to NULL. */
| 1854 | * resetting to NULL. |
| 1855 | */ |
| 1856 | void |
| 1857 | stream_move_node(StreamBitmap *destination, StreamBitmap *source, StreamType kind) |
| 1858 | { |
| 1859 | Assert(NULL != destination); |
| 1860 | Assert(NULL != source); |
| 1861 | stream_add_node(destination, |
| 1862 | source->streamNode, kind); |
| 1863 | /* destination owns the streamNode and hence resetting it to NULL for source->streamNode. */ |
| 1864 | source->streamNode = NULL; |
| 1865 | } |
| 1866 | |
| 1867 | |
| 1868 | /* |
no test coverage detected