This commit is contained in:
peter 2000-09-02 17:36:02 +00:00
parent a941c1d15d
commit bbf3e55e70
10 changed files with 65 additions and 55 deletions

View File

@ -54,6 +54,10 @@ LATEX2HTMLOPTS = -no_reuse -up_url "../fpctoc.html"\
-html_version 4.0 -split 3 -image_type gif -html_version 4.0 -split 3 -image_type gif
endif endif
# Icons for latex2html
ICONSERVER=../buttons
export ICONSERVER
# Ascii mode ? (i.e. no pics) # Ascii mode ? (i.e. no pics)
ifndef ASCIIMODE ifndef ASCIIMODE
ASCIIMODE=NO ASCIIMODE=NO
@ -89,16 +93,16 @@ export TMP=/tmp
# End of configurable section. Do not edit after this line. # End of configurable section. Do not edit after this line.
####################################################################### #######################################################################
PS = $(addsuffix .ps, $(HTML)) PS = $(addsuffix .ps, $(HTML) onechap)
DVI = $(addsuffix .dvi, $(HTML)) DVI = $(addsuffix .dvi, $(HTML) onechap)
TXT = $(addsuffix .txt, $(HTML)) TXT = $(addsuffix .txt, $(HTML) onechap)
PDF = $(addsuffix .pdf, $(HTML)) PDF = $(addsuffix .pdf, $(HTML) onechap)
TOC = $(addsuffix .toc, $(HTML)) TOC = $(addsuffix .toc, $(HTML) onechap)
AUX = $(addsuffix .aux, $(HTML)) AUX = $(addsuffix .aux, $(HTML) onechap)
LOG = $(addsuffix .log, $(HTML)) LOG = $(addsuffix .log, $(HTML) onechap)
LOT = $(addsuffix .lot, $(HTML)) LOT = $(addsuffix .lot, $(HTML) onechap)
OUT = $(addsuffix .out, $(HTML)) OUT = $(addsuffix .out, $(HTML) onechap)
CHK = $(addsuffix .chk, $(HTML) unitex refex) CHK = $(addsuffix .chk, $(HTML) progex unitex refex htex onechap)
CHAPTERS = $(addsuffix .tex, crt dos getopts go32 graph linux printer\ CHAPTERS = $(addsuffix .tex, crt dos getopts go32 graph linux printer\
strings objects heaptrc sysutils ipc mouse gpm dxeload \ strings objects heaptrc sysutils ipc mouse gpm dxeload \
@ -161,9 +165,9 @@ help:
@echo ' pdfdist : pdf, and archive result.' @echo ' pdfdist : pdf, and archive result.'
clean: clean:
-rm -f *.htex
-rm -rf $(HTML) onechap -rm -rf $(HTML) onechap
-rm -f $(TOC) $(LOG) $(DVI) $(PDF) $(AUX) $(OUT) $(PS) *.i* $(LOT) $(TXT) $(CHK) -rm -f $(TOC) $(LOG) $(DVI) $(PDF) $(AUX) $(OUT) $(PS) *.i* $(LOT) $(TXT) $(CHK)
-rm -f onechap.dvi onechap.aux onechap.log onechap.chk
# Units # Units
-$(MAKE) -C crtex clean -$(MAKE) -C crtex clean
@ -212,6 +216,12 @@ ifndef INSTALLDEBUG
endif endif
touch refex.chk touch refex.chk
progex.chk:
ifndef INSTALLDEBUG
$(MAKE) -C progex tex
endif
touch progex.chk
messages: messages:
msg2inc -TE ../compiler/errore.msg messages.tex msg2inc -TE ../compiler/errore.msg messages.tex
@ -250,15 +260,19 @@ all : dvi ps pdf txt html
# Html creation # Html creation
##################################################################### #####################################################################
user: user.chk htex: htex.chk
htex.chk: $(wildcard *.tex)
./tex2htex
touch htex.chk
user.chk: user.tex date.inc user: user.chk
user.chk: htex.chk date.inc
ifdef INSTALLDEBUG ifdef INSTALLDEBUG
mkdir user mkdir user
cp user.tex user/index.html cp user.tex user/index.html
else else
$(LATEX2HTML) $(LATEX2HTMLOPTS) -split 2 -link 2\ $(LATEX2HTML) $(LATEX2HTMLOPTS) -split 2 -link 2\
-t "User's guide for Free Pascal" user.tex -t "User's guide for Free Pascal" user.htex
-sed -f foot.sed <user/footnode.html >user/footnote.html -sed -f foot.sed <user/footnode.html >user/footnote.html
-mv user/footnote.html user/footnode.html -mv user/footnote.html user/footnode.html
-rm -f user/labels.pl user/internals.pl user/.*.pag user/.*.dir -rm -f user/labels.pl user/internals.pl user/.*.pag user/.*.dir
@ -267,14 +281,13 @@ endif
touch user.chk touch user.chk
units: units.chk units: units.chk
units.chk: unitex.chk htex.chk date.inc
units.chk: units.tex unitex.chk date.inc
ifdef INSTALLDEBUG ifdef INSTALLDEBUG
mkdir units mkdir units
cp units.tex units/index.html cp units.tex units/index.html
else else
$(LATEX2HTML) $(LATEX2HTMLOPTS) -split 3 -link 2\ $(LATEX2HTML) $(LATEX2HTMLOPTS) -split 3 -link 2\
-t "Unit reference for Free Pascal" units.tex -t "Unit reference for Free Pascal" units.htex
-sed -f foot.sed <units/footnode.html >units/footnote.html -sed -f foot.sed <units/footnode.html >units/footnote.html
-mv units/footnote.html units/footnode.html -mv units/footnote.html units/footnode.html
-rm -f units/labels.pl units/internals.pl units/.*.pag units/.*.dir -rm -f units/labels.pl units/internals.pl units/.*.pag units/.*.dir
@ -283,14 +296,13 @@ endif
touch units.chk touch units.chk
ref: ref.chk ref: ref.chk
ref.chk: refex.chk htex.chk date.inc
ref.chk: refex.chk ref.tex date.inc
ifdef INSTALLDEBUG ifdef INSTALLDEBUG
mkdir ref mkdir ref
cp ref.tex ref/index.html cp ref.tex ref/index.html
else else
$(LATEX2HTML) $(LATEX2HTMLOPTS) -split 4 -link 2\ $(LATEX2HTML) $(LATEX2HTMLOPTS) -split 4 -link 2\
-t "Free Pascal reference guide" ref.tex -t "Free Pascal reference guide" ref.htex
-sed -f foot.sed <ref/footnode.html >ref/footnote.html -sed -f foot.sed <ref/footnode.html >ref/footnote.html
-mv ref/footnote.html ref/footnode.html -mv ref/footnote.html ref/footnode.html
-rm -f ref/labels.pl ref/internals.pl ref/.*.pag ref/.*.dir -rm -f ref/labels.pl ref/internals.pl ref/.*.pag ref/.*.dir
@ -299,14 +311,13 @@ endif
touch ref.chk touch ref.chk
prog: prog.chk prog: prog.chk
prog.chk: progex.chk htex.chk date.inc
prog.chk: prog.tex date.inc
ifdef INSTALLDEBUG ifdef INSTALLDEBUG
mkdir prog mkdir prog
cp prog.tex prog/index.html cp prog.tex prog/index.html
else else
$(LATEX2HTML) $(LATEX2HTMLOPTS) -split 2 -link 2\ $(LATEX2HTML) $(LATEX2HTMLOPTS) -split 2 -link 2\
-t "Free Pascal programmers guide" prog.tex -t "Free Pascal programmers guide" prog.htex
-sed -f foot.sed <prog/footnode.html >prog/footnote.html -sed -f foot.sed <prog/footnode.html >prog/footnote.html
-mv prog/footnote.html prog/footnode.html -mv prog/footnote.html prog/footnode.html
-rm -f prog/labels.pl prog/internals.pl prog/.*.pag prog/.*.dir -rm -f prog/labels.pl prog/internals.pl prog/.*.pag prog/.*.dir
@ -315,14 +326,13 @@ endif
touch prog.chk touch prog.chk
internal: internal.chk internal: internal.chk
internal.chk: htex.chk date.inc
internal.chk: internal.tex date.inc
ifdef INSTALLDEBUG ifdef INSTALLDEBUG
mkdir internal mkdir internal
cp internal.tex internal/index.html cp internal.tex internal/index.html
else else
$(LATEX2HTML) $(LATEX2HTMLOPTS) -split 4 -link 2\ $(LATEX2HTML) $(LATEX2HTMLOPTS) -split 4 -link 2\
-t "Free Pascal Compiler Documentation" internal.tex -t "Free Pascal Compiler Documentation" internal.htex
-sed -f foot.sed <internal/footnode.html >internal/footnote.html -sed -f foot.sed <internal/footnode.html >internal/footnote.html
-mv internal/footnote.html internal/footnode.html -mv internal/footnote.html internal/footnode.html
-rm -f internal/labels.pl internal/internals.pl internal/.*.pag internal/.*.dir -rm -f internal/labels.pl internal/internals.pl internal/.*.pag internal/.*.dir
@ -331,14 +341,13 @@ endif
touch internal.chk touch internal.chk
onechap: onechap.chk onechap: onechap.chk
onechap.chk: unitex.chk htex.chk date.inc
onechap.chk: onechap.tex date.inc
ifdef INSTALLDEBUG ifdef INSTALLDEBUG
mkdir onechap mkdir onechap
cp onechap.tex onechap/index.html cp onechap.tex onechap/index.html
else else
$(LATEX2HTML) $(LATEX2HTMLOPTS) -split 4 -link 2\ $(LATEX2HTML) $(LATEX2HTMLOPTS) -split 4 -link 2\
-t "Free Pascal reference guide" onechap.tex -t "Free Pascal reference guide" onechap.htex
-sed -f foot.sed <onechap/footnode.html >onechap/footnote.html -sed -f foot.sed <onechap/footnode.html >onechap/footnote.html
-mv onechap/footnote.html onechap/footnode.html -mv onechap/footnote.html onechap/footnode.html
-rm -f onechap/labels.pl onechap/internals.pl onechap/.*.pag onechap/.*.dir -rm -f onechap/labels.pl onechap/internals.pl onechap/.*.pag onechap/.*.dir
@ -348,6 +357,7 @@ endif
html: $(HTML) html: $(HTML)
##################################################################### #####################################################################
# Installation # Installation
##################################################################### #####################################################################
@ -460,7 +470,10 @@ linuxexamples: examples
# #
# $Log$ # $Log$
# Revision 1.1 2000-07-13 09:10:03 michael # Revision 1.2 2000-09-02 17:36:02 peter
# * merged
#
# Revision 1.1 2000/07/13 09:10:03 michael
# + Initial import # + Initial import
# #
# Revision 1.40 2000/07/11 18:07:26 peter # Revision 1.40 2000/07/11 18:07:26 peter

View File

@ -108,6 +108,7 @@
% some OSes % some OSes
% %
\newcommand{\linux}{\textsc{linux}\xspace} \newcommand{\linux}{\textsc{linux}\xspace}
\newcommand{\unix}{\textsc{unix}\xspace}
\newcommand{\dos} {\textsc{dos}\xspace} \newcommand{\dos} {\textsc{dos}\xspace}
\newcommand{\msdos}{\textsc{ms-dos}\xspace} \newcommand{\msdos}{\textsc{ms-dos}\xspace}
\newcommand{\ostwo}{\textsc{os/2}\xspace} \newcommand{\ostwo}{\textsc{os/2}\xspace}
@ -139,4 +140,4 @@
% %
% end of fpc-html.tex % end of fpc-html.tex
% %

View File

@ -166,6 +166,7 @@
% some OSes % some OSes
% %
\newcommand{\linux}{\textsc{linux}\xspace} \newcommand{\linux}{\textsc{linux}\xspace}
\newcommand{\unix}{\textsc{unix}\xspace}
\newcommand{\dos} {\textsc{dos}\xspace} \newcommand{\dos} {\textsc{dos}\xspace}
\newcommand{\msdos}{\textsc{ms-dos}\xspace} \newcommand{\msdos}{\textsc{ms-dos}\xspace}
\newcommand{\ostwo}{\textsc{os/2}\xspace} \newcommand{\ostwo}{\textsc{os/2}\xspace}
@ -234,8 +235,7 @@
\lstset{basicstyle=\sffamily\small}% \lstset{basicstyle=\sffamily\small}%
\lstset{commentstyle=\itshape}% \lstset{commentstyle=\itshape}%
\lstset{keywordstyle=\bfseries}% \lstset{keywordstyle=\bfseries}%
\lstset{frame=tb} \lstset{frame=tb}%
\lstset{blankstring=true}%
% %
% Page settings % Page settings
\setlength{\oddsidemargin}{20pt} \setlength{\oddsidemargin}{20pt}
@ -263,4 +263,4 @@
\usepackage{html} \usepackage{html}
\usepackage{htmllist} \usepackage{htmllist}
% %
% end of fpc.sty % end of fpc.sty

View File

@ -33,7 +33,6 @@
\usepackage{html} \usepackage{html}
\usepackage{htmllist} \usepackage{htmllist}
\fi \fi
\usepackage{fpc}
\latex{% \latex{%
\ifpdf \ifpdf
\pdfcompresslevel=9 \pdfcompresslevel=9
@ -47,6 +46,7 @@
\fi \fi
} }
% %
\latex{\usepackage{fpc}}
\html{\input{fpc-html.tex}} \html{\input{fpc-html.tex}}
% %
% Settings % Settings

View File

@ -961,7 +961,7 @@ On error, -1 is returned to the parent, and no child is created.
\seef{Fork}, \seem{clone}{2} \seef{Fork}, \seem{clone}{2}
\end{function} \end{function}
\FPCexample{ex14} \FPCexample{ex71}
\begin{function}{CloseDir} \begin{function}{CloseDir}
\Declaration \Declaration
@ -3398,7 +3398,7 @@ Other errors may occur, but aren't documented.
\begin{function}{WaitPid} \begin{function}{WaitPid}
\Declaration \Declaration
Function WaitPid (Pid : longint; Status : pointer; Options : Integer) : Longint; Function WaitPid (Pid : longint; Status : pointer; Options : Longint) : Longint;
\Description \Description
\var{WaitPid} waits for a child process with process ID \var{Pid} to exit. The \var{WaitPid} waits for a child process with process ID \var{Pid} to exit. The
value of \var{Pid} can be one of the following: value of \var{Pid} can be one of the following:
@ -3419,6 +3419,8 @@ behaves:
exited. exited.
\item [WUNTRACED] Causes \var{WaitPid} to return also for children which are \item [WUNTRACED] Causes \var{WaitPid} to return also for children which are
stopped, but whose status has not yet been reported. stopped, but whose status has not yet been reported.
\item[__WCLONE] Causes \var{WaitPid} also to wait for threads created by
the \seef{Clone} call.
\end{description} \end{description}
Upon return, it returns the exit status of the process, or -1 in case of Upon return, it returns the exit status of the process, or -1 in case of
failure. failure.

View File

@ -26,22 +26,19 @@
\usepackage{html} \usepackage{html}
\usepackage{htmllist} \usepackage{htmllist}
\fi \fi
\usepackage{fpc} \latex{\usepackage{listings}\lstset{language=delphi}}
\latex{ \latex{\usepackage{fpc}}
\usepackage{listings}
\lstset{language=delphi}
}
\html{\input{fpc-html.tex}} \html{\input{fpc-html.tex}}
\begin{document} \begin{document}
%\input{crt.tex} \input{crt.tex}
%\input{dos.tex} %\input{dos.tex}
%\input{dxeload} %\input{dxeload.tex}
%\input{emu387} %\input{emu387}
%\input{getopts.tex} %\input{getopts.tex}
%\input{go32.tex} %\input{go32.tex}
%\input{gpm.tex} %\input{gpm.tex}
%\input{graph.tex} %\input{graph.tex}
\input{heaptrc.tex} %\input{heaptrc.tex}
%\input{ipc.tex} %\input{ipc.tex}
%\input{ide.tex} %\input{ide.tex}
%\input{linux.tex} %\input{linux.tex}

View File

@ -28,7 +28,6 @@
\usepackage{html} \usepackage{html}
\usepackage{htmllist} \usepackage{htmllist}
\fi \fi
\usepackage{fpc}
\latex{% \latex{%
\ifpdf \ifpdf
\pdfinfo{/Author(Michael Van Canneyt) \pdfinfo{/Author(Michael Van Canneyt)
@ -39,6 +38,7 @@
\fi \fi
} }
% %
\latex{\usepackage{fpc}}
\html{\input{fpc-html.tex}} \html{\input{fpc-html.tex}}
% %
% Settings % Settings
@ -3039,11 +3039,8 @@ of this function. This has as a consequence that the return type is
of your program. This returns zero in the \fpc implementation of the of your program. This returns zero in the \fpc implementation of the
system unit, since both code and data are in the same memory space. system unit, since both code and data are in the same memory space.
\item [Ptr:] Accepted a segment and offset from an address, and would return \item [Ptr:] Accepted a segment and offset from an address, and would return
a pointer to this address. This has been changed in the run-time library. a pointer to this address. This has been changed in the run-time library, it
Standard it returns now simply the offset. If you want to retain the old now simply returns the offset.
functionality, you can recompile the run-time library with the
\var{DoMapping} symbol defined. This will restore the Turbo Pascal
behaviour.
\item [memw and mem] These arrays gave access to the \dos memory. \fpc \item [memw and mem] These arrays gave access to the \dos memory. \fpc
supports them on the go32v2 platform, they are mapped into \dos memory supports them on the go32v2 platform, they are mapped into \dos memory
space. You need the \var{GO32} unit for this. On other platforms, they are space. You need the \var{GO32} unit for this. On other platforms, they are

View File

@ -28,7 +28,6 @@
\usepackage{html} \usepackage{html}
\usepackage{htmllist} \usepackage{htmllist}
\fi \fi
\usepackage{fpc}
\latex{% \latex{%
\ifpdf \ifpdf
\pdfinfo{/Author(Michael Van Canneyt) \pdfinfo{/Author(Michael Van Canneyt)
@ -39,6 +38,7 @@
\fi \fi
} }
% %
\latex{\usepackage{fpc}}
\html{\input{fpc-html.tex}} \html{\input{fpc-html.tex}}
\makeindex \makeindex
% %

View File

@ -34,7 +34,6 @@
\usepackage{html} \usepackage{html}
\usepackage{htmllist} \usepackage{htmllist}
\fi \fi
\usepackage{fpc}
\latex{\usepackage{multicol}} \latex{\usepackage{multicol}}
\latex{% \latex{%
\ifpdf \ifpdf
@ -49,6 +48,7 @@
\fi \fi
} }
% %
\latex{\usepackage{fpc}}
\html{\input{fpc-html.tex}} \html{\input{fpc-html.tex}}
% %
% Settings % Settings
@ -129,7 +129,7 @@ lookup.
% The graph unit % The graph unit
\input{graph.tex} \input{graph.tex}
% The HeapTrc unit % The HeapTrc unit
\input{heaptrc} \input{heaptrc.tex}
% The IPC unit % The IPC unit
\input{ipc.tex} \input{ipc.tex}
% the Linux unit % the Linux unit

View File

@ -28,7 +28,6 @@
\usepackage{html} \usepackage{html}
\usepackage{htmllist} \usepackage{htmllist}
\fi \fi
\usepackage{fpc}
\latex{% \latex{%
\usepackage{times} \usepackage{times}
\ifpdf \ifpdf
@ -40,6 +39,7 @@
\fi \fi
} }
% %
\latex{\usepackage{fpc}}
\html{\input{fpc-html.tex}} \html{\input{fpc-html.tex}}
\makeindex \makeindex
% %