Temporary replacement of Form by sprintf to avoid problems on some platforms (alpahli...
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 22 Nov 2006 14:23:29 +0000 (14:23 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 22 Nov 2006 14:23:29 +0000 (14:23 +0000)
EVE/macros/alieve_init.C

index 19f09a6..c809c0e 100644 (file)
@@ -25,7 +25,13 @@ void alieve_init(const Text_t* path=".", Int_t event=0,
     while((filename = gSystem->GetDirEntry(dirhandle)) != 0) {
       if(re.Match(filename)) {
        printf("Adding macro '%s'\n", filename);
-       f->Add(new Reve::RMacro(Form("%s/%s", macdir.Data(), filename)));
+       //PH The line below is replaced waiting for a fix in Root
+       //PH which permits to use variable siza arguments in CINT
+       //PH on some platforms (alphalinuxgcc, solariscc5, etc.)
+       // f->Add(new Reve::RMacro(Form("%s/%s", macdir.Data(), filename)));
+       char fullName[1000];
+       sprintf(fullName,"%s/%s", macdir.Data(), filename);
+       f->Add(new Reve::RMacro(fullName));
       }
     }
   }