Hi Luc, On 17 June 2017 at 11:09, Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx> wrote: > On Sat, Jun 17, 2017 at 10:55:30AM +0100, Dibyendu Majumdar wrote: >> The way I am trying to set this up is as follows. I want to allow the >> user to provide inputs as files, memory buffer, or a combination. I am >> trying to process the files first, followed by the memory buffer. >> Therefore I need to use tokenize_buffer() again when processing the >> memory buffer - but presumably this ought to get a new stream idx >> rather than 0? > > I think you should quickly be able to set something with: > fd = -1; > idx = init_stream(name, fd, NULL); > tok = setup_stream(&stream, idx, fd, buffer, size) > ... = tokenize_stream(&stream); > Thank you for the suggestion - will try it out! Regards Dibyendu -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html