bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bash-4.0: fix internal_swtrmatch() prototype issues


From: Chet Ramey
Subject: Re: bash-4.0: fix internal_swtrmatch() prototype issues
Date: Sun, 22 Feb 2009 16:49:01 -0500
User-agent: Thunderbird 2.0.0.19 (Macintosh/20081209)

Mike Frysinger wrote:
> the internal_wstrmatch() prototype should be moved to lib/globl/strmatch.h as
> more than just strmatch.c uses this function (smatch.c uses it as well).

No.  If you look at how smatch.c is compiled, you'll see that it abuses
the C preprocessor to compile single-byte and multibyte versions of
the matching functions.  sm_loop.c provides the prototypes for the
functions it compiles (internal_wstrmatch and internal_strmatch, each of
which are defined as `FCT' before including sm_loop.c).

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer

Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]