home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / gnu / utils / bug / 1566 < prev    next >
Encoding:
Internet Message Format  |  1992-09-11  |  1.0 KB

  1. Path: sparky!uunet!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!bi.TWinsun.COM!eggert
  2. From: eggert@bi.TWinsun.COM (Paul Eggert)
  3. Newsgroups: gnu.utils.bug
  4. Subject: typo in regex 0.10 prevents use in pre-ANSI C
  5. Message-ID: <9209111538.AA16643@bi.twinsun.com>
  6. Date: 11 Sep 92 15:38:20 GMT
  7. Sender: gnulists@ai.mit.edu
  8. Distribution: gnu
  9. Organization: GNUs Not Usenet
  10. Lines: 26
  11. Approved: bug-gnu-utils@prep.ai.mit.edu
  12.  
  13. A typo in regex.h causes compilation to fail in pre-ANSI C compilers
  14. (e.g. SunOS 4.1.2 cc).  Here is a patch.
  15.  
  16. ===================================================================
  17. RCS file: RCS/regex.h,v
  18. retrieving revision 0.10
  19. diff -c -r0.10 regex.h
  20. *** regex.h    1992/09/09 10:33:48    0.10
  21. --- regex.h    1992/09/11 15:25:23
  22. ***************
  23. *** 396,402 ****
  24.   #if __STDC__
  25.   #define _RE_ARGS(args) args
  26.   #else
  27. ! #define _RE_ARGS(args)
  28.   #define const
  29.   #endif
  30.   
  31. --- 396,402 ----
  32.   #if __STDC__
  33.   #define _RE_ARGS(args) args
  34.   #else
  35. ! #define _RE_ARGS(args) ()
  36.   #define const
  37.   #endif
  38.   
  39.