Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.os.vms    |    DEC's VAX* line of computers & VMS.    |    264,096 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 263,371 of 264,096    |
|    =?UTF-8?Q?Arne_Vajh=C3=B8j?= to All    |
|    Re: PZMQ    |
|    19 Sep 25 08:26:43    |
   
   From: arne@vajhoej.dk   
      
   On 9/18/2025 10:17 PM, Lawrence D’Oliveiro wrote:   
   > On Thu, 18 Sep 2025 20:21:51 -0400, Arne Vajhøj wrote:   
   >> Instead of:   
   >>   
   >> retval := zmq_connect(s, addr);   
   >> if retval <> 0 then begin   
   >> writeln('error');   
   >> end;   
   >>   
   >> it is now possible to do:   
   >>   
   >> retval := zmq_connect(s, addr);   
   >> if retval <> 0 then begin   
   >> e := errno; writeln(strerror(e));   
   >> end;   
   >>   
   >> or even:   
   >>   
   >> retval := zmq_connect(s, addr);   
   >> if retval <> 0 then begin   
   >> e := errno;   
   >> if e <> EVMSERR then begin   
   >> writeln(strerror(e));   
   >> end else begin   
   >> e := vmserrno; writeln(strvmserror(e));   
   >> end;   
   >> end;   
   >   
   > Does perror(3) take care of this for you?   
      
   I do not have any intention of wrap perror - it   
   is a very specific composite function.   
      
   strvmserror calls lib$sys_getmsg.   
      
   Arne   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca