home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / gnu / utils / bug / 1998 < prev    next >
Encoding:
Text File  |  1992-11-08  |  1.7 KB  |  71 lines

  1. Newsgroups: gnu.utils.bug
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!bredex.DE!nico
  3. From: nico@bredex.DE
  4. Subject: bugs or enhancements for regex-0.11
  5. Message-ID: <199211061337.AA26888@bredex.de>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Fri, 6 Nov 1992 15:37:54 GMT
  10. Approved: bug-gnu-utils@prep.ai.mit.edu
  11. Lines: 58
  12.  
  13. Hi folks,
  14. using codecenter i got some notes that may interest
  15. you:
  16.  
  17. Using:  regex.c, test/iregex.c, test/upcase.c
  18.  
  19. general problems:
  20.  
  21.   regex.c:   line 4814:  2nd param "preg" not used
  22.         solution: use /*ARGSUSED*/
  23.  
  24.   iregex.c:  line 38:  char pat[500] = "";  not allowed
  25.         solution:  char pat[500];
  26.                ...
  27.                pat[0] = '\0';
  28.  
  29.          line 52:  strlen() not defined
  30.         solution:  #include <string.h>
  31.  
  32.          line 37:  char c;  not used
  33.  
  34.  
  35. run-time problems:
  36.  
  37.   PATTERN:  ab*
  38.   STRING:   qqq
  39.  
  40.   regex.c:   line 2030 STORE_NUMBER(loc+1,arg);
  41.             "losing info due to sign extension"
  42.             arg: -9
  43.         solution: i'm not sure, but there might
  44.               a cast to (unsigned) senseful
  45.  
  46.   iregex.c (or regex.c ?):
  47.          line 65, 69: calls print_regs() but
  48.               regs.num_regs is NOT set.
  49.         solution: test return value of re_match()
  50.               and re_search()
  51.  
  52.         OR is it a bug ??
  53.         Should re_match() and re_search() set
  54.         regs.num_regs to 0 ???
  55.         (please document it !!!)
  56.  
  57.  
  58. This infos may be lowest priority but anyway i thought
  59. they could help.
  60. Would be glad to get a reply.
  61.  
  62. --------
  63. Nico
  64.                                  address: BREDEX GmbH
  65. email:   nico@bredex.de                   Nicolai Josuttis
  66.                                           Kastanienallee 2a 
  67. phone:   +49 531 75480                    D-3300 Braunschweig
  68. fax:     +49 531 796358                   Germany
  69. --------
  70.  
  71.