Source-Changes archive

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

sun-lamp CVS commits



mycroft
Fri Apr 14 19:10:28 EDT 1995
Update of /a/cvsroot/src/usr.bin/m4
In directory pain.lcs.mit.edu:/b/src/usr.bin/m4

Modified Files:
        expr.c 
Log Message:
There were several places where m4 did not conform to the specification
in `The M4 Macro Processor', by Kernighan and Ritchie.

* `|' and `||' are both logical or.  There is no binary or.
* `&' and `&&' are both logical and.  There is no binary and.
* `!' has a much higher precedence.
* The equal and relation operators have the same precedence.
* `**' is implemented, and `^' is for exponentation (not xor).
* Unary `+' in implemented.

I've coded exponentiation to return what appears to be the same results
that other versions of m4 return.




Home | Main Index | Thread Index | Old Index