🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #1158

regex.c and CHAR_SET_SIZE

#1158
From: Francois Pinard
Date: Sun, 27 Dec 1992 14:52
22 lines
1128 bytes
In regex.c 0.11, CHAR_SET_SIZE is defined only if SYNTAX_TABLE is not
defined.  As a matter of convenience, why not simply:

#ifndef CHAR_SET_SIZE 256
#define CHAR_SET_SIZE 256
#endif

after the SYNTAX_TABLE if.  So one could redefine it if needed, but
not being forced to.  Even better, one could parallel an:

extern int char_set_size;

to:

extern char *re_syntax_table;

so the user could dynamically provide both the table and its size.

-- 
Franc,ois Pinard       ``Happy GNU Year!''      pinard@iro.umontreal.ca
(514) 588-4656                                   ...!uunet!iros1!pinard
About the League for Programming Freedom?  Email me or lpf@uunet.uu.net
Technical Details
Message-ID: <9212271452.AA03058@icule.UUCP>
Path: arc1-ca.pugleaf.net!sparky!uunet!crdgw1!rpi!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!icule.UUCP!pinard

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!crdgw1!rpi!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!icule.UUCP!pinard
From: pinard@icule.UUCP (Francois Pinard)
Newsgroups: gnu.utils.bug
Subject: regex.c and CHAR_SET_SIZE
Message-ID: <9212271452.AA03058@icule.UUCP>
Date: 27 Dec 92 14:52:27 GMT
Sender: gnulists@ai.mit.edu
Reply-To: pinard@iro.umontreal.ca
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 22
Approved: bug-gnu-utils@prep.ai.mit.edu