Re: [Monetdb-developers] [Monetdb-pf-checkins] pathfinder/src/sqlhelpers/xmlshred xmlshred.c, , 1.2, 1.3

When printing a value of type size_t, use SZFMT. When printing a value of type ssize_t, use SSZFMT. The format needed to print these values varies from system to system, so that difference is hidden in a macro. Manuel Mayr wrote:
-- Sjoerd Mullender

Thx for the suggestion, I see SSZFMT to be defined in monet_utils.h. Is it possible to use SSZFMT without creating a dependency to monet? Best regards, Manuel Sjoerd Mullender wrote:
-- Manuel Mayr, Dipl. Inf. Institut fuer Informatik, TU Muenchen Tel.: +49 89 289-17259

It took a while for your mail to get here... On 2007-09-10 13:25, Manuel Mayr wrote:
You could do what we've done ourselves: make a copy of the definitions. See for instance also MonetDB/src/common/stream.mx and MonetDB/src/gdk/gdk.mx.
-- Sjoerd Mullender

On Mon, Sep 10, 2007 at 01:25:54PM +0200, Manuel Mayr wrote:
Since xmlshred is in the pathfinder tree (which inherently depends on MonetDB), and as long as there are no plans to distribute xmlshred separately and make it compile stand-alone, what't the problem of using monet_utils.h? id does not create any new dependency. Obviously, the (discouraged) alternative is to copy the (required) functionality of monet_utils.h to some local file (and double-check, whether pathfinder's configure does the required checks). Stefan
-- | Dr. Stefan Manegold | mailto:Stefan.Manegold@cwi.nl | | CWI, P.O.Box 94079 | http://www.cwi.nl/~manegold/ | | 1090 GB Amsterdam | Tel.: +31 (20) 592-4212 | | The Netherlands | Fax : +31 (20) 592-4312 |

Hi Stefan, thanks for your feedback. 'xmlshred' — or what it will soon become, rather — will be primarily used in a context where Pathfinder will generate SQL code only. Such setups consist of modules 'buildtools' and 'pathfinder' only, no 'MonetDB'. Cheers, --Teggy On 9/10/07, Stefan Manegold <Stefan.Manegold@cwi.nl> wrote:
-- | Torsten "Teggy" Grust | Torsten.Grust@gmail.com

Hi Teggy, Hi Manuel, thanks for the clarification! In that case, Sjoerd's suggestion of copying the definition of SSZFMT (and possibly more if required) seems to be the best solution. Stefan On Mon, Sep 10, 2007 at 10:56:15PM +0200, Torsten Grust wrote:
-- | Dr. Stefan Manegold | mailto:Stefan.Manegold@cwi.nl | | CWI, P.O.Box 94079 | http://www.cwi.nl/~manegold/ | | 1090 GB Amsterdam | Tel.: +31 (20) 592-4212 | | The Netherlands | Fax : +31 (20) 592-4312 |
participants (4)
-
Manuel Mayr
-
Sjoerd Mullender
-
Stefan Manegold
-
Torsten Grust