Symbol versioning in C++ (two ld bugs)

Phil Edwards phil@jaj.com
Mon Feb 11 16:55:00 GMT 2002


On Mon, Feb 11, 2002 at 03:41:21PM -0800, Richard Henderson wrote:
> On Mon, Feb 11, 2002 at 05:09:49PM -0500, Phil Edwards wrote:
> > 
> > AFAICT this lexer token is only used in this one place.  As long as it
> > doesn't match a leading colon or a trailing semicolon there shouldn't be
> > any grammar conflicts.  I will try some modifications.
> 
> Maybe we should accept strings here for these more complicated globs?
> Or would that just be confusing?

Accepting a glob isn't hard when you're using regexps to write the glob.  :-)

I've added

    [  ]  -  !  ^

as acceptable characters, and that's letting me do quite a bit.

Globbing in the sense of filename generation -- all that fnmatch is
supposed to do -- is pretty simple.  Most of the complicated things like
brace expansion are actually extensions.  POSIX only specifies '!' as the
exception character inside a bracketed list; bash (and libiberty's fnmatch,
and my patch) also recognizes '^' for people who are used to regexps.


Phil

-- 
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace.  We seek
not your counsel, nor your arms.  Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen.            - Samuel Adams



More information about the Binutils mailing list