diff options
author | ru <ru@FreeBSD.org> | 2005-11-17 13:00:00 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2005-11-17 13:00:00 +0000 |
commit | 928d297eeb1b1084c1525eb3aba0cee109fed2b6 (patch) | |
tree | 8357787c5962631f6dc96a7483518171f91c2b20 /lib/libedit | |
parent | be367893cde807eabde21d3c27468e630a24c071 (diff) | |
download | FreeBSD-src-928d297eeb1b1084c1525eb3aba0cee109fed2b6.zip FreeBSD-src-928d297eeb1b1084c1525eb3aba0cee109fed2b6.tar.gz |
-mdoc sweep.
Diffstat (limited to 'lib/libedit')
-rw-r--r-- | lib/libedit/editline.3 | 17 | ||||
-rw-r--r-- | lib/libedit/editrc.5 | 2 |
2 files changed, 11 insertions, 8 deletions
diff --git a/lib/libedit/editline.3 b/lib/libedit/editline.3 index 1b864de..23d0015 100644 --- a/lib/libedit/editline.3 +++ b/lib/libedit/editline.3 @@ -108,7 +108,10 @@ .Ft void .Fn tok_reset "Tokenizer *t" .Ft int -.Fn tok_line "Tokenizer *t" "const LineInfo *li" "int *argc" "const char **argv[]" "int *cursorc" "int *cursoro" +.Fo tok_line +.Fa "Tokenizer *t" "const LineInfo *li" "int *argc" "const char **argv[]" +.Fa "int *cursorc" "int *cursoro" +.Fc .Ft int .Fn tok_str "Tokenizer *t" "const char *str" "int *argc" "const char **argv[]" .Sh DESCRIPTION @@ -192,7 +195,7 @@ to execute builtin .Nm commands. If the command is prefixed with -.Dq prog : +.Dq prog: then .Fn el_parse will only execute the command if @@ -396,7 +399,8 @@ This function is called internally by and .Fn el_getc . The builtin function can be set or restored with the special function -name ``EL_BUILTIN_GETCFN''. +name +.Dv EL_BUILTIN_GETCFN . .It Dv EL_CLIENTDATA , Fa "void *data" Register .Fa data @@ -438,7 +442,8 @@ above). Return non-zero if editing is enabled. .It Dv EL_GETCFN, Fa "int (**f)(EditLine *, char *)" Return a pointer to the function that read characters, which is equal to -``EL_BUILTIN_GETCFN'' in the case of the default builtin function. +.Dv EL_BUILTIN_GETCFN +in the case of the default builtin function. .It Dv EL_CLIENTDATA , Fa "void **data" Retrieve .Fa data @@ -649,7 +654,7 @@ The caller is responsible for free'ing the string in the returned .Pp The .Fn history -function returns \*[Gt]= 0 if the operation +function returns \*[Ge] 0 if the operation .Fa op succeeds. Otherwise, \-1 is returned and @@ -720,14 +725,12 @@ and .Aq newline . A positive exit code indicates that another line should be read and tokenization attempted again. -. .It Fn tok_str A simpler form of .Fn tok_line ; .Fa str is a NUL terminated string to tokenize. .El -. .\"XXX.Sh EXAMPLES .\"XXX: provide some examples .Sh SEE ALSO diff --git a/lib/libedit/editrc.5 b/lib/libedit/editrc.5 index 35d30cc..0624e18 100644 --- a/lib/libedit/editrc.5 +++ b/lib/libedit/editrc.5 @@ -231,7 +231,7 @@ Enable or disable the .Nm editline functionality in a program. .It Ic history Ar list | Ar size Dv n | Ar unique Dv n -The +The .Ar list command lists all entries in the history. The |