I'd choose separate functions, just to keep runtime size overhead the minimal. These can later be joined by an upper level helper function for convenience (if needed).
Brgds, Viktor On Tue, Jun 2, 2009 at 9:20 PM, Lorenzo Fiorini <[email protected]> wrote: > I'm trying to create C functions to export DBFs data to XML and JSON. > I'm thinking to copy source/rdd/db2sql.c to db2json.c and db2xml.c as a start. > > I wonder if this is the right path or if it is better to extend db2sql.c. > In general db2sql/db2xml/db2json should provide the same options and > should work in the same way simply > resulting in different formats. Actually db2sql.c write the buffer to > a file while for XML/JSON it would be better to return > a string to avoid create a temp file that need to be read right after > but it could be useful for db2sql also. > > Any advice? > > best regards, > Lorenzo > _______________________________________________ > Harbour mailing list > [email protected] > http://lists.harbour-project.org/mailman/listinfo/harbour > _______________________________________________ Harbour mailing list [email protected] http://lists.harbour-project.org/mailman/listinfo/harbour
