[comp.lang.perl] a2p still has bzero conflict + Fix

jv@mh.nl (Johan Vromans) (12/26/89)

After applying patches 7 and 8, it appears that a2p still has problems
with systems which have bcopy, but not bzero.
Although there are separate conditionals for bzero and bcopy in config.h,
a2p.h uses only BCOPY to decide whether to define both bcopy and
bzero.

Fix (which also removes the possibly dangerous semicolons at the end):

*** a2p.h~	Sun Dec 24 13:23:13 1989
--- a2p.h	Mon Dec 25 12:59:56 1989
***************
*** 21,28 ****
  #include "../config.h"
  
  #ifndef BCOPY
! #   define bcopy(s1,s2,l) memcpy(s2,s1,l);
! #   define bzero(s,l) memset(s,0,l);
  #endif
  
  #include "handy.h"
--- 21,30 ----
  #include "../config.h"
  
  #ifndef BCOPY
! #   define bcopy(s1,s2,l) memcpy(s2,s1,l)
! #endif
! #ifndef BZERO
! #   define bzero(s,l) memset(s,0,l)
  #endif
  
  #include "handy.h"

Johan
--
Johan Vromans				       jv@mh.nl via internet backbones
Multihouse Automatisering bv		       uucp: ..!{uunet,hp4nl}!mh.nl!jv
Doesburgweg 7, 2803 PL Gouda, The Netherlands  phone/fax: +31 1820 62944/62500
------------------------ "Arms are made for hugging" -------------------------