diff options
| author | Tony Finch <fanf@FreeBSD.org> | 2003-01-22 15:19:07 +0000 |
|---|---|---|
| committer | Tony Finch <fanf@FreeBSD.org> | 2003-01-22 15:19:07 +0000 |
| commit | f5732aa7833652225e4d05d8b6d04de754c5053e (patch) | |
| tree | f4d50eabb7c8a39a04c494e2cb06331707cf1391 | |
| parent | 84860c33f05f7c738f3a1c4ced4a489e065d1f84 (diff) | |
Notes
| -rw-r--r-- | share/man/man7/operator.7 | 4 | ||||
| -rw-r--r-- | share/misc/operator | 36 |
2 files changed, 21 insertions, 19 deletions
diff --git a/share/man/man7/operator.7 b/share/man/man7/operator.7 index 2f674481bbcd..ef6cb6d8fe71 100644 --- a/share/man/man7/operator.7 +++ b/share/man/man7/operator.7 @@ -40,7 +40,7 @@ .Nd C operator precedence and order of evaluation .Sh DESCRIPTION .Bd -ragged -offset indent -compact -.Bl -column "! ~ ++ -- - (type) * & sizeof" +.Bl -column "\&= += -= *= /= %= <<= >>= &= ^= |=" .It Sy "Operator Associativity" .It "-------- -------------" .It "\&() [] -> . left to right" @@ -56,7 +56,7 @@ .It "\&&& left to right" .It "\&|| left to right" .It "\&?: right to left" -.It "\&= += -= etc. right to left" +.It "\&= += -= *= /= %= <<= >>= &= ^= |= right to left" .It "\&, left to right" .El .Ed diff --git a/share/misc/operator b/share/misc/operator index 003c436d055f..b293f31da9b2 100644 --- a/share/misc/operator +++ b/share/misc/operator @@ -1,17 +1,19 @@ -Operator Associativity ------------------------------------------------ -() [] -> . left to right -! ~ ++ -- - (type) * & sizeof right to left -* / % left to right -+ - left to right -<< >> left to right -< <= > >= left to right -== != left to right -& left to right -^ left to right -| left to right -&& left to right -|| left to right -?: right to left -= += -= etc. right to left -, left to right +Operator Associativity +----------------------------------------------------- +() [] -> . left to right +! ~ ++ -- - (type) * & sizeof right to left +* / % left to right ++ - left to right +<< >> left to right +< <= > >= left to right +== != left to right +& left to right +^ left to right +| left to right +&& left to right +|| left to right +?: right to left += += -= *= /= %= <<= >>= &= ^= |= right to left +, left to right + +$FreeBSD$ |
