RE:Figthing CINT

Masaharu Goto (MXJ02154@niftyserve.or.jp)
Thu, 30 Apr 1998 17:26:00 +0900


Valery,

This is a cint bug which I fixed recently. Cint5.13.49 has the fix.
The problem is in 'if(!name) return -1;'. Please use { } like
if(!name) { return -1; } then it should work approperately. Problem
happens only when you use return in if statement without { }.

I upload this message to roottalk because this is rather significant.

I will copy cint 5.13.50 to CERN now. Fons, please test and expose this
as soon as you get back.

Masaharu Goto

> Hello team,
> Please let me know what I did wrong:
> I did a macro as follows:
>
>Stream.c:
>Int_t Stream(Char_t *name) {
> Char_t filename[500];
> if (!name) return -1;
> printf(" name %s, l=%i\n", name, strlen(name));
> strcpy(filename,name);
> strcat(filename,".h");
> printf(" filename = %s, name=%s\n", filename,name);
> if (gROOT.LoadMacro(filename)) {printf(" Error\n"); return -1;}
>}