On Thu, Jul 17, 2008 at 01:27:37PM +0200, Ying Zhang wrote:
> Hi Stefan,
>
> You are right (again). A small question:
>
> > @= xrpc_bat
> > - [EMAIL PROTECTED] = BATnew(TYPE_void,ATOMindex("@2"),1024);
> > - assert([EMAIL PROTECTED]);
> > - BATseqbase([EMAIL PROTECTED], 1);
> > - BBPrename([EMAIL PROTECTED]>batCacheid, "[EMAIL PROTECTED]");
> > + xrpc_bat = BATnew(TYPE_void,ATOMindex("@2"),1024);
> > + assert(xrpc_bat);
> > + BATseqbase(xrpc_bat, 1);
> > + BBPrename(xrpc_bat->batCacheid, "[EMAIL PROTECTED]");
> > @c
> >
> > bat* xrpc_prelude(void) {
> > + BAT *xrpc_bat = NULL;
> > @:xrpc_bat(qids,str)@
> > @:xrpc_bat(statuses,str)@
> > @:xrpc_bat(timeouts,lng)@
> > @@ -886,7 +883,9 @@
> > @:xrpc_bat(wsbats,bat)@
> >
> > @:xrpc_bat(trusted,str)@
> > + xrpc_trusted = xrpc_bat;
> > @:xrpc_bat(admin,str)@
> > + xrpc_admin = xrpc_bat;
>
>
> Is there a particular reason to change this macro?
yes: use 1 local variable instead of 8 global variables.
Stefan
> Jennie
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Monetdb-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/monetdb-developers
>
--
| Dr. Stefan Manegold | mailto:[EMAIL PROTECTED] |
| 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 |
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Monetdb-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-developers