Skip to content

Commit 12d740c

Browse files
author
Vladimir Kotal
committed
more spellchecking
1 parent c6fff31 commit 12d740c

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

intro.tex

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1245,7 +1245,7 @@
12451245
at system make files of any Unix-like system. A typical feature of such build
12461246
systems is that there is no documentation on how it works internally so you have
12471247
to dig in deep if you need to understand or modify it -- and that usually is not
1248-
for the faint-hearted.
1248+
for the fainthearted.
12491249
\end{itemize}
12501250

12511251
%%%%%
@@ -1882,8 +1882,11 @@
18821882
\item Passing the environment in the third parameter of type
18831883
\texttt{char**} is not part of the normative part of the C standard, only the
18841884
informative one. C compilers typically support that though.
1885-
The \texttt{main} variant with the \nth{3} parameter looks like this:\\ \texttt{int
1886-
\funnm{main}(int \emph{argc}, char *\emph{argv}[], char *\emph{envp}[]);}
1885+
The \texttt{main} variant with the \nth{3} parameter looks like this:\\
1886+
ifdef([[[NOSPELLCHECK]]], [[[
1887+
\texttt{int \funnm{main}(int \emph{argc}, char *\emph{argv}[],
1888+
char *\emph{envp}[]);}
1889+
]]])
18871890
\item The return value type of \texttt{main} should be always \texttt{int}.
18881891
\emsl{Only lower 8 bits from that integer are only used though.} It is always a
18891892
non-negative number. Note that in contrast to the C convention, the \texttt{0}
@@ -1971,8 +1974,8 @@
19711974
convention. \texttt{wget} does not follow convention and uses
19721975
\texttt{http\_proxy} and \texttt{https\_proxy} as environment variables to set
19731976
the proxy to be used, and other lower case variables as well.
1974-
\item If \emph{envp} is the \nth{3} argument of \texttt{main}, it is the same pointer
1975-
as is in the standard global variable \texttt{environ}.
1977+
\item If \texttt{envp} is the \nth{3} argument of \texttt{main}, it is the same
1978+
pointer as is in the standard global variable \texttt{environ}.
19761979
\item Example: \example{main/print-env.c} (see below how to clear out inherited
19771980
environment from the shell using the \texttt{env} command):
19781981

@@ -2071,7 +2074,7 @@
20712074
application to specify the ordering.
20722075
\item The UNIX standard defines 13 rules that very precisely define the naming
20732076
of commands and the format of options. For example the name of the command
2074-
should be lower case, 2--9 characters long and using only chracters from
2077+
should be lower case, 2--9 characters long and using only characters from
20752078
the portable character set. Arguments without options should be possible to group
20762079
after '--', etc.
20772080
\item Using numbers of options is old fashioned; reportedly SUSv3 mentions that.
@@ -2117,7 +2120,7 @@
21172120
\item Usually the \texttt{getopt} function is used first to process options
21182121
and then the rest is processed using custom functions; the remaining arguments
21192122
are often file names and such.
2120-
\item By convention the optinons in the \texttt{optstring} variable are sorted.
2123+
\item By convention the options in the \texttt{optstring} variable are sorted.
21212124
\end{itemize}
21222125

21232126
%%%%%

spellfilter.sed

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ s/\\texttt{[^{]*}//g
88
s/\\funnm{[^{]*}//g
99
s/\\emprg{.*}//g
1010
s/\\verb#[[:alnum:]_\(\)]+#//g
11+
s/\\url{[[:alnum:]_\/:\.]+}//g

0 commit comments

Comments
 (0)