Source-Changes-HG archive

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

[src/trunk]: src/lib/libedit Use \- for minus sign, use Ev, use Er.



details:   https://anonhg.NetBSD.org/src/rev/cdb1d0204e05
branches:  trunk
changeset: 813907:cdb1d0204e05
user:      wiz <wiz%NetBSD.org@localhost>
date:      Thu Feb 25 14:59:22 2016 +0000

description:
Use \- for minus sign, use Ev, use Er.

diffstat:

 lib/libedit/editline.3 |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (51 lines):

diff -r 1faad05e801f -r cdb1d0204e05 lib/libedit/editline.3
--- a/lib/libedit/editline.3    Thu Feb 25 14:55:56 2016 +0000
+++ b/lib/libedit/editline.3    Thu Feb 25 14:59:22 2016 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: editline.3,v 1.87 2016/02/24 19:45:48 christos Exp $
+.\"    $NetBSD: editline.3,v 1.88 2016/02/25 14:59:22 wiz Exp $
 .\"
 .\" Copyright (c) 1997-2014 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -177,7 +177,7 @@
 The
 .Nm
 library respects the
-.Dv LC_CTYPE
+.Ev LC_CTYPE
 locale set by the application program and never uses
 .Xr setlocale 3
 to change the locale.
@@ -259,10 +259,10 @@
 If an invalid or incomplete character is found, it is discarded,
 .Va errno
 is set to
-.Dv EILSEQ ,
+.Er EILSEQ ,
 and the next character is read and stored in
 .Fa ch .
-Returns 1 if a valid character was read, 0 on end of file, or -1 on
+Returns 1 if a valid character was read, 0 on end of file, or \-1 on
 .Xr read 2
 failure.
 In the latter case,
@@ -271,7 +271,7 @@
 .It Fn el_getc
 Read a wide character as described for
 .Fn el_wgetc
-and return 0 on end of file or -1 on failure.
+and return 0 on end of file or \-1 on failure.
 If the wide character can be represented as a single-byte character,
 convert it with
 .Xr wctob 3 ,
@@ -280,8 +280,8 @@
 and return 1; otherwise, set
 .Va errno
 to
-.Dv ERANGE
-and return -1.
+.Er ERANGE
+and return \-1.
 In the C or POSIX locale, this simply reads a byte, but for any other
 locale, including UTF-8, this is rarely useful.
 .It Fn el_push



Home | Main Index | Thread Index | Old Index