From a1857ee34c56aa1c57d58add48c4b6fb9ce447fb Mon Sep 17 00:00:00 2001 From: michael Date: Sat, 6 Feb 1999 11:10:04 +0000 Subject: [PATCH] + integer is 4 bytes in Delphi and objfpc mode --- docs/prog.tex | 8 ++++++-- docs/ref.tex | 3 ++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/docs/prog.tex b/docs/prog.tex index bd180c8b7f..377130091e 100644 --- a/docs/prog.tex +++ b/docs/prog.tex @@ -3661,7 +3661,9 @@ implementation of a function/procedure. In particular, you can not omit the parameters when implementing the function or procedure. \item Overloading of functions is not allowed. \item Nested comments are not allowed. -\item The Objpas unit is loaded right after the system unit. +\item The Objpas unit is loaded right after the system unit. One of the +consequences of this is that the type \var{Integer} is redefined as +\var{Longint}. \end{enumerate} \section{GPC mode} This mode is selected by the \var{{\$MODE GPC}} switch. On the command-line, @@ -3685,7 +3687,9 @@ implementation of a function/procedure. In particular, you can not omit the parameters when implementing the function or procedure. \item Overloading of functions is allowed. \item Nested comments are allowed. -\item The Objpas unit is loaded right after the system unit. +\item The Objpas unit is loaded right after the system unit. One of the +consequences of this is that the type \var{Integer} is redefined as +\var{Longint}. \item You can use the cvar type. \item PChars are converted to strings automatically. \end{enumerate} diff --git a/docs/ref.tex b/docs/ref.tex index 56e90a65ea..fea90d60be 100644 --- a/docs/ref.tex +++ b/docs/ref.tex @@ -488,7 +488,8 @@ The integer types, and their ranges and sizes, that are predefined in Type & Range & Size in bytes \\ \hline Byte & 0 .. 255 & 1 \\ Shortint & -127 .. 127 & 1\\ -Integer & -32768 .. 32767 & 2 \\ +Integer & -32768 .. 32767 & 2\footnote{The integer type is redefined as +longint if you are in Delphi or ObjFPC mode, and has then size 4} \\ Word & 0 .. 65535 & 2 \\ Longint & -2147483648 .. 2147483648 & 4\\ Cardinal\footnote{The cardinal type support is buggy until version 0.99.6} & 0..4294967296 & 4 \\ \hline