diff options
author | Petr Machata <pmachata@redhat.com> | 2012-11-20 02:09:15 +0100 |
---|---|---|
committer | Petr Machata <pmachata@redhat.com> | 2012-11-20 02:36:18 +0100 |
commit | aa933f20686965045d673e80ce204198995dc615 (patch) | |
tree | d6a89781c8cf91e51b6fb9bb0f2cb57839aa37d2 | |
parent | ec4ab256e5c7fe1596dd90a3c8e8d4b052ca1207 (diff) | |
download | ltrace-aa933f20686965045d673e80ce204198995dc615.tar.gz |
Introduce "oct" as newly-default alias of "octal"
The reason for this is that there's no agreed-upon term for "hexadecimal"
that wouldn't be super awkward to type. So instead keep "hex", but
introduce "oct" for consistency.
-rw-r--r-- | NEWS | 4 | ||||
-rw-r--r-- | ltrace.conf.5 | 2 | ||||
-rw-r--r-- | read_config_file.c | 1 |
3 files changed, 6 insertions, 1 deletions
@@ -33,6 +33,10 @@ This allows displaying various data types as bit vectors. Please read ltrace.conf(5) to learn more. +*** Octal lens renamed to "oct" + For reasons of consistency with "hex". "octal" is still valid and + will be for forseeable future. + * Version 0.7.0 ** Tracing *** Full support for tracing multi-threaded processes diff --git a/ltrace.conf.5 b/ltrace.conf.5 index 5d3b472..5a8430a 100644 --- a/ltrace.conf.5 +++ b/ltrace.conf.5 @@ -122,7 +122,7 @@ a lens is directly a type. Otherwise a type is decorated by the lens. Ltrace understands the following lenses: .TP -.B octal(\fITYPE\fB) +.B oct(\fITYPE\fB) The argument, which should be an integer type, is formatted in base-8. .TP diff --git a/read_config_file.c b/read_config_file.c index 724d99e..3624e90 100644 --- a/read_config_file.c +++ b/read_config_file.c @@ -954,6 +954,7 @@ static struct named_lens { } lenses[] = { { "hide", &blind_lens }, { "octal", &octal_lens }, + { "oct", &octal_lens }, { "bitvec", &bitvect_lens }, { "hex", &hex_lens }, { "bool", &bool_lens }, |