|
|
|||||||||||||||||||||||||||||||||||||||||||||||
![]() |
![]() |
||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||
|
8.1.5 Quotation Rule Of ThumbTo conclude, the quotation rule of thumb is:
One pair of quotes per pair of parentheses. Never over-quote, never under-quote, in particular in the definition of macros. In the few places where the macros need to use brackets (usually in C program text or regular expressions), properly quote the arguments! It is common to read Autoconf programs with snippets like:
which is incredibly useless since
The M4-fluent reader will note that these two examples are rigorously
equivalent, since Simplified, the example above is just doing this:
instead of simply:
With macros that do not double quote their arguments (which is the rule), double-quote the (risky) literals:
See See section 8.1.4 Quadrigraphs, for what to do if you run into a hopeless case where quoting does not suffice.
When you create a
However, it's also possible to put on too many layers of quotes. If
this happens, the resulting
|
|
|||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||
|
Marketplace: | |||||||||||||||||||||||||||||||||||||||||||||||
| " Anyone who considers arithmetical methods of producing random digits is, of course, in a state of sin. " | |||||||||||||||||||||||||||||||||||||||||||||||