PATCH to extend tree stringification operators namespace

gdr@codesourcery.com gdr@codesourcery.com
Mon Sep 20 08:21:00 GMT 1999


Mark Mitchell <mark@codesourcery.com> writes:

| >>>>> "Jason" == Jason Merrill <jason@cygnus.com> writes:
| 
| >>>>> gdr  <gdr@codesourcery.com> writes:
| 
|     >> Therefore I'm proposing to extend the tree stringification
|     >> operators namespace to include '*', '^', '!', '~', '=', '?',
|     >> '{', '&', '#', '@', '}', '-' whose meanings are as follow.
| 
|     Jason> And I thought printf was already cryptic...If you need this
|     Jason> kind of expressiveness, I think I'd rather you call
|     Jason> foo_as_string directly and use the constants directly.
| 
| I agree.  In fact, I'd suggest that we replace the `v' parameter by a
| structure with flags for these various formatting concepts.  One
| reason for doing this is that recursive calls within the print
| routines often want different flags than the top-level calls.

OK.  

What is wrong with using bit flags being ORed instead of a struct?

-- Gaby
CodeSourcery, LLC


More information about the Gcc-patches mailing list