RE:Figthing CINT

From: Masaharu Goto (MXJ02154@niftyserve.or.jp)
Date: Thu Apr 30 1998 - 10:26:00 MEST


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;}
>}
 



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:32 MET