|Bill Allombert on Thu, 19 Jan 2017 16:34:19 +0100|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
|Re: [PATCH] New function outString_printf|
On Thu, Jan 12, 2017 at 10:55:34AM +0100, Jeroen Demeyer wrote: > In order to implement SVG plotting, the outString machinery from > src/language/es.c is very useful. It allows writing to a string in a way > which is very analogous as writing to a file. Unfortunately, this is > currently not exported. This patch makes the minimal changes needed to make > the functionality available which is needed for SVG plotting. Maybe be I am confused, but why not use the outString mechanism to create a PariOUT object that would be given to out_printf ? This way plotsvg could be changed to write the SVG file to a PariOUT object which would be either a file or a string. Cheers, Bill.