home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / gnu / utils / bug / 2273 < prev    next >
Encoding:
Text File  |  1992-12-27  |  1.1 KB  |  36 lines

  1. Path: sparky!uunet!crdgw1!rpi!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!icule.UUCP!pinard
  2. From: pinard@icule.UUCP (Francois Pinard)
  3. Newsgroups: gnu.utils.bug
  4. Subject: regex.c and CHAR_SET_SIZE
  5. Message-ID: <9212271452.AA03058@icule.UUCP>
  6. Date: 27 Dec 92 14:52:27 GMT
  7. Sender: gnulists@ai.mit.edu
  8. Reply-To: pinard@iro.umontreal.ca
  9. Distribution: gnu
  10. Organization: GNUs Not Usenet
  11. Lines: 22
  12. Approved: bug-gnu-utils@prep.ai.mit.edu
  13.  
  14. In regex.c 0.11, CHAR_SET_SIZE is defined only if SYNTAX_TABLE is not
  15. defined.  As a matter of convenience, why not simply:
  16.  
  17. #ifndef CHAR_SET_SIZE 256
  18. #define CHAR_SET_SIZE 256
  19. #endif
  20.  
  21. after the SYNTAX_TABLE if.  So one could redefine it if needed, but
  22. not being forced to.  Even better, one could parallel an:
  23.  
  24. extern int char_set_size;
  25.  
  26. to:
  27.  
  28. extern char *re_syntax_table;
  29.  
  30. so the user could dynamically provide both the table and its size.
  31.  
  32. -- 
  33. Franc,ois Pinard       ``Happy GNU Year!''      pinard@iro.umontreal.ca
  34. (514) 588-4656                                   ...!uunet!iros1!pinard
  35. About the League for Programming Freedom?  Email me or lpf@uunet.uu.net
  36.