Re: BRAT raw/*proxy* question

From: Christian Holm Christensen (cholm@hehi03.nbi.dk)
Date: Thu Apr 13 2000 - 17:15:57 EDT

  • Next message: hagel@comp.tamu.edu: "Re: BRAT raw/*proxy* question"

    Hi Konstantin et al, 
    
    On Thu, 13 Apr 2000 16:20:41 -0400 Konstantin Olchanski <olchansk@ux1.phy.bnl.gov> wrote:
    > 
    > I would also like to make them 1-st class root citizens.
    
    Sounds like a good idea to me! 
     
    > Is there still any need for the proxies or can I get rid of them?
    
    ASAIK, we don't need them, but don't take my word for it (ask Flemming
    and Kris they'll probably know for sure). 
    
    While you're at it, could you modify the code in brat/raw/*/* to be a
    bit more portable. In paricular in KOsprintf.h. There is a problem on
    Digital Unix, since the function vsnprintf doesn't exist in the
    standard C lib. So I propose you either switch to vsprintf, or do
    something like 
    
      #ifdef __osf__
      #include <libioP.h>
      #endif
     
      static std::string KOsprintf(const char* format,...) 
      {
        const int kBufsize = 1024;
        char buf[kBufsize];
        va_list args;
        va_start (args, format);
      #ifdef ONL_winnt
        _vsnprintf(buf,kBufsize,format,args);
      #elif __osf__
        _IO_vsnprintf(buf,kBufsize,format,args);
      #endif  
        vsnprintf(buf,kBufsize,format,args);
      #endif
        va_end (args);
        return buf;
      }
    
    Going on with recent mail from Steve, it seems that there are two
    `va_list' types on Digital Unix: va_list and va_alist. It might be
    that the last one can solve some of the previous mentioned problems,
    though it's still not possible to use variadic functions/methods in
    CINT. 
    
    Cheers, 
    
    Christian  -----------------------------------------------------------
    Holm Christensen                             Phone:  (+45) 35 35 96 91 
      Sankt Hansgade 23, 1. th.                  Office: (+45) 353  25 305 
      DK-2200 Copenhagen N                       Web:    www.nbi.dk/~cholm    
      Denmark                                    Email:       cholm@nbi.dk
    



    This archive was generated by hypermail 2b29 : Thu Apr 13 2000 - 17:19:06 EDT