Skip to content

Commit

Permalink
Clean up more trailing whitespace (re: 0388398)
Browse files Browse the repository at this point in the history
  • Loading branch information
McDutchie committed Dec 1, 2024
1 parent 34ca077 commit d9d326b
Show file tree
Hide file tree
Showing 76 changed files with 200 additions and 200 deletions.
2 changes: 1 addition & 1 deletion src/cmd/INIT/cc.ibm.risc
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ cc=$bin/xlc

ccflags="-brtl -qhalt=e -qsuppress=1506-224:1506-507"
case " $@ " in
*" -G "*)
*" -G "*)
ccflags="$ccflags -berok"
;;
esac
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/INIT/cc.ibm.risc.gcc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ cc=gcc
ccflags=

case " $@ " in
*" -shared "*)
*" -shared "*)
ccflags="$ccflags -shared -Wl,-G -Wl,-berok"
;;
*) ccflags="-Wl,-brtl"
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/INIT/cc.lynxos.i386
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ do case $1 in
shift
done
case $link:$static in
1:0) static=n ;;
1:0) static=n ;;
esac
case $static in
n) specs=/tmp/cc$$.specs
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/INIT/cc.lynxos.ppc
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ do case $1 in
shift
done
case $link:$static in
1:0) static=n ;;
1:0) static=n ;;
esac
case $static in
n) specs=/tmp/cc$$.specs
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/INIT/make.probe
Original file line number Diff line number Diff line change
Expand Up @@ -1774,7 +1774,7 @@ esac
# path cleanup
#

for i in ar ccnative dld ld nm size stdinclude stdlib strip
for i in ar ccnative dld ld nm size stdinclude stdlib strip
do eval o='$'$i
v=$o
case $v in
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/ksh93/PROMO.mm
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
precision floating point arithmetic.
Almost the complete set of C language operators are available
with the same syntax and precedence.
Arithmetic expressions can be used to as an argument expansion
Arithmetic expressions can be used to as an argument expansion
or as a separate command.
In addition there is an arithmetic for command that works
like the for statement in C.
Expand Down
24 changes: 12 additions & 12 deletions src/cmd/ksh93/builtins.mm
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
to load and link code into the current process at run time.
Some examples of the systems that have this feature
are Linux, System V Release 4, Solaris, Sun OS, HP-UX Release 8 and above,
AIX 3.2 and above, and Microsoft Windows systems.
AIX 3.2 and above, and Microsoft Windows systems.
.P
This memo describes how to write and compile programs
that can be loaded into \f5ksh\fP at run time as built-in
commands.
.AE \" abstract end
.H 1 INTRODUCTION
A built-in command is executed without creating a separate process.
Instead, the command is invoked as a C function by \f5ksh\fP.
Instead, the command is invoked as a C function by \f5ksh\fP.
If this function has no side effects in the shell process,
then the behavior of this built-in is identical to that of
the equivalent stand-alone command. The primary difference
Expand Down Expand Up @@ -70,7 +70,7 @@
\f5ksh\fP by adding built-in
commands makes sense and allows reuse of the shell
scripting ability in an application specific domain.
This memo describes how to write \f5ksh\fP extensions.
This memo describes how to write \f5ksh\fP extensions.
.H 1 "WRITING BUILT-IN COMMANDS"
There is a development kit available for writing \f5ksh\fP
built-ins as part of the AST (AT&T Software Technology) Toolkit.
Expand Down Expand Up @@ -143,7 +143,7 @@
of the built-in source file, where \fIidentifier\fP is any C identifier.
This line provides version information to the shell \f5builtin\fP command
that it uses to verify compatibility between the built-in and \f5ksh\fP
implementation versions. \f5builtin\fP fails with a diagnostic on version
implementation versions. \f5builtin\fP fails with a diagnostic on version
mismatch. The diagnostic helps determine whether \f5ksh\fP is out of
date and requires an upgrade or the built-in is out of date and requires
recompilation.
Expand Down Expand Up @@ -212,7 +212,7 @@ int b_hello(int argc, char *argv[], void *context)
.EE
will automatically find, load and install the built-in on any system.
Once this command has been invoked, you can invoke \f5hello\fP
as you do any other command.
as you do any other command.
If you are using \f5lib_init\fP method to add built-ins then no arguments
follow the \f5\-f\fP option.
.P
Expand Down Expand Up @@ -244,7 +244,7 @@ int b_hello(int argc, char *argv[], void *context)
.BR sh_ ,
.BR nv_ ,
and
.B ed_
.B ed_
since these are used by \f5ksh\fP itself.
\f5#define\fP constants in \f5ksh\fP interface
files use symbols beginning with \f5SH_\fP and \f5NV_\fP,
Expand Down Expand Up @@ -415,7 +415,7 @@ int optget(char *\fIargv\fP[], const char *\fIoptstring\fP)
.LI \f5[\fP...\f5]\fP
After a \f5:\fP or \f5#\fP, the characters contained
inside the brackets are used to identify the option
argument when generating a \fIusage\fP message.
argument when generating a \fIusage\fP message.
.LI \fIspace\fP
The remainder of the string will only be used when generating
usage messages.
Expand Down Expand Up @@ -470,7 +470,7 @@ int optget(char *\fIargv\fP[], const char *\fIoptstring\fP)
and which is used extensively by \f5ksh\fP itself.
Objects allocated with the \f5stkalloc()\fP
function are freed when you function completes
or aborts.
or aborts.
The \fBstk\fP library provides a convenient way to
build variable length strings and other objects dynamically.
The man page for the \fBstk\fP library is contained
Expand All @@ -480,7 +480,7 @@ int optget(char *\fIargv\fP[], const char *\fIoptstring\fP)
the current stack location and restores it after
it returns.
It is not necessary to save and restore the stack
location in the \f5b_\fP entry function,
location in the \f5b_\fP entry function,
but you may want to write functions that use this stack
are restore it when leaving the function.
The following coding convention will do this in
Expand Down Expand Up @@ -521,7 +521,7 @@ int optget(char *\fIargv\fP[], const char *\fIoptstring\fP)
with the prefix \f5nv_\fP.
Each shell variable is an object in an associative table
that is referenced by name.
The type \f5Namval_t*\fP is pointer to a shell variable.
The type \f5Namval_t*\fP is pointer to a shell variable.
To operate on a shell variable, you first get a handle
to the variable with the \f5nv_open()\fP function
and then supply the handle returned as the first
Expand Down Expand Up @@ -561,7 +561,7 @@ int optget(char *\fIargv\fP[], const char *\fIoptstring\fP)
any node into an active entity by assigning functions
to it that will be called whenever \f5nv_putval()\fP
and/or \f5nv_getval()\fP is called.
In fact there are up to five functions that can
In fact there are up to five functions that can
associated with each variable to override the
default actions.
The type \f5Namfun_t\fP is used to define these functions.
Expand Down Expand Up @@ -639,7 +639,7 @@ int optget(char *\fIargv\fP[], const char *\fIoptstring\fP)
to a give file stream. The tree can be executed by supplying
it as the first argument to
the \f5sh_trap()\fP function and giving a value of \f51\fP as the
second argument.
second argument.
Alternatively, the \f5sh_trap()\fP function can parse and execute
a string by passing the string as the first argument and giving \f50\fP
as the second argument.
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/ksh93/nval.3
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Namdisc_t;
.ft 5
Namval_t *nv_open(const char *\fIname\fP, Dt_t *\fIdict\fP, int \fIflags\fP);
Namval_t *nv_create(const char *\fIname\fP, Dt_t *\fIdict\fP, int \fIflags\fP, Namfun_t *\fIfp\fP);
Namval_t *nv_namptr(void *\fIptr\fP, int \fIindx\fP);
Namval_t *nv_namptr(void *\fIptr\fP, int \fIindx\fP);
void nv_delete(Namval_t *\fInp\fP, Dt_t *\fIdict\fP, int \fInofree\fP);
.ft R
.fi
Expand Down
4 changes: 2 additions & 2 deletions src/cmd/ksh93/sh.1
Original file line number Diff line number Diff line change
Expand Up @@ -9389,14 +9389,14 @@ or
.IP \[bu]
specifying path or
command names containing
.BR /
.BR /
.IP \[bu]
redirecting output
.RB ( > ,
.BR >| ,
.BR <> ,
and
.BR >> )
.BR >> )
.IP \[bu]
adding or deleting built-in commands
.IP \[bu]
Expand Down
Loading

0 comments on commit d9d326b

Please sign in to comment.