Skip to content

Commit 808c402

Browse files
author
ripley
committed
tweaks, mainly whitespace cleanup
git-svn-id: https://svn.r-project.org/R/trunk@87343 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent afe8dc0 commit 808c402

File tree

1 file changed

+39
-39
lines changed

1 file changed

+39
-39
lines changed

doc/manual/R-exts.texi

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ Windows. In addition, some applications on Windows can only work with path
331331
names of certain length, following an earlier limit in the Windows operating
332332
system. Packages are normally distributed as tarballs, and these have a limit
333333
on path lengths. So, to be friendly to users who themselves may want to use a
334-
relatively long path where they extract the package, and for maximal
334+
relatively long path where they extract the package, and for maximal
335335
portability, 100 bytes.
336336

337337
A source package if possible should not contain binary executable files:
@@ -3342,11 +3342,11 @@ mylibs:
33423342
(cd libs; \
33433343
CC="$(CC)" CFLAGS="$(CFLAGS)" \
33443344
CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" \
3345-
cmake . \
3346-
-DCMAKE_BUILD_TYPE=Release \
3347-
-DBUILD_SHARED_LIBS:bool=OFF \
3348-
-DCMAKE_POSITION_INDEPENDENT_CODE:bool=ON; \
3349-
$(MAKE))
3345+
cmake . \
3346+
-DCMAKE_BUILD_TYPE=Release \
3347+
-DBUILD_SHARED_LIBS:bool=OFF \
3348+
-DCMAKE_POSITION_INDEPENDENT_CODE:bool=ON; \
3349+
$(MAKE))
33503350

33513351
@end example
33523352
@noindent
@@ -9062,19 +9062,19 @@ The first line had to be done as root.
90629062

90639063
The first report shows in which library (etc) the time was spent:
90649064
@example
9065-
CPU_CLK_UNHALT...|
9066-
samples| %|
9067-
------------------
9068-
278341 91.9947 R
9069-
18290 6.0450 libc.so.6
9070-
2277 0.7526 kallsyms
9071-
1426 0.4713 stats.so
9072-
739 0.2442 libRblas.so
9073-
554 0.1831 libz.so.1.2.11
9074-
373 0.1233 libm.so.6
9075-
352 0.1163 libtirpc.so.3.0.0
9076-
153 0.0506 ld-linux-x86-64.so.2
9077-
12 0.0040 methods.so
9065+
CPU_CLK_UNHALT...|
9066+
samples| %|
9067+
------------------
9068+
278341 91.9947 R
9069+
18290 6.0450 libc.so.6
9070+
2277 0.7526 kallsyms
9071+
1426 0.4713 stats.so
9072+
739 0.2442 libRblas.so
9073+
554 0.1831 libz.so.1.2.11
9074+
373 0.1233 libm.so.6
9075+
352 0.1163 libtirpc.so.3.0.0
9076+
153 0.0506 ld-linux-x86-64.so.2
9077+
12 0.0040 methods.so
90789078
@end example
90799079
@noindent
90809080
(@code{kallsyms} is the kernel.)
@@ -11719,7 +11719,7 @@ dynamically look up the address in another package. This can be done
1171911719
using @code{R_FindSymbol}:
1172011720
@example
1172111721
DL_FUNC R_FindSymbol(char const *name, char const *pkg,
11722-
R_RegisteredNativeSymbol *symbol);
11722+
R_RegisteredNativeSymbol *symbol);
1172311723
@end example
1172411724
@apifun R_FindSymbol
1172511725

@@ -15227,7 +15227,7 @@ by something like (fixed-form Fortran 90 code):
1522715227
end subroutine putRNGseed
1522815228
end interface
1522915229
end module rngfuncs
15230-
15230+
1523115231
subroutine testit
1523215232
use rngfuncs
1523315233
double precision X
@@ -16218,7 +16218,6 @@ at the result.
1621816218

1621916219
@c None of these are remapped.
1622016220
The interfaces (defined in header @file{R_ext/Applic.h}) are
16221-
@c There are never remapped
1622216221

1622316222
@itemize @bullet
1622416223
@item @I{Nelder Mead}:
@@ -16526,9 +16525,10 @@ longer recommended.
1652616525
@deftypefun double R_atof (const char* @var{str})
1652716526
@deftypefunx double R_strtod (const char* @var{str}, char ** @var{end})
1652816527
Implementations of the C99/POSIX functions @code{atof} and @code{strtod}
16529-
which guarantee platform- and locale-independent behaviour, including always using the
16530-
period as the decimal point @emph{aka} `@I{radix character}' and returning
16531-
R's @code{NA_REAL_} for all unconverted strings, including @code{"NA"}.
16528+
which guarantee platform- and locale-independent behaviour, including
16529+
always using the period as the decimal point @emph{aka} `@I{radix
16530+
character}' and returning R's @code{NA_REAL_} for all unconverted
16531+
strings, including @code{"NA"}.
1653216532
@end deftypefun
1653316533

1653416534

@@ -16605,14 +16605,14 @@ within C code:
1660516605
#include <Rinternals.h>
1660616606

1660716607
SEXP R_tryCatchError(SEXP (*fun)(void *data), void *data,
16608-
SEXP (*hndlr)(SEXP cond, void *hdata), void *hdata);
16608+
SEXP (*hndlr)(SEXP cond, void *hdata), void *hdata);
1660916609

1661016610
SEXP R_tryCatch(SEXP (*fun)(void *data), void *data,
16611-
SEXP,
16612-
SEXP (*hndlr)(SEXP cond, void *hdata), void *hdata,
16613-
void (*clean)(void *cdata), void *cdata);
16611+
SEXP,
16612+
SEXP (*hndlr)(SEXP cond, void *hdata), void *hdata,
16613+
void (*clean)(void *cdata), void *cdata);
1661416614
SEXP R_withCallingErrorHandler(SEXP (*fun)(void *data), void *data,
16615-
SEXP (*hndlr)(SEXP cond, void *hdata), void *hdata)
16615+
SEXP (*hndlr)(SEXP cond, void *hdata), void *hdata)
1661616616
@end example
1661716617
@apifun R_tryCatchError
1661816618
@apifun R_tryCatch
@@ -16680,7 +16680,7 @@ available:
1668016680

1668116681
@example
1668216682
SEXP R_ExecWithCleanup(SEXP (*fun)(void *), void *data,
16683-
void (*cleanfun)(void *), void *cleandata);
16683+
void (*cleanfun)(void *), void *cleandata);
1668416684
@end example
1668516685
@apifun R_ExecWithCleanup
1668616686
@noindent
@@ -16810,11 +16810,11 @@ Code should not depend on the fields of the stream structures. Simpler
1681016810
initializers are available for serializing to or from a file pointer:
1681116811
@example
1681216812
void R_InitFileOutPStream(R_outpstream_t stream, FILE *fp,
16813-
R_pstream_format_t type, int version,
16814-
SEXP (*phook)(SEXP, SEXP), SEXP pdata);
16813+
R_pstream_format_t type, int version,
16814+
SEXP (*phook)(SEXP, SEXP), SEXP pdata);
1681516815
void R_InitFileInPStream(R_inpstream_t stream, FILE *fp,
16816-
R_pstream_format_t type,
16817-
SEXP (*phook)(SEXP, SEXP), SEXP pdata);
16816+
R_pstream_format_t type,
16817+
SEXP (*phook)(SEXP, SEXP), SEXP pdata);
1681816818
@end example
1681916819

1682016820
Once the stream structures are set up they can be used by calling
@@ -17401,9 +17401,9 @@ that do not yet contain these entry points.
1740117401
SEXP Rf_allocLang(int n)
1740217402
@{
1740317403
if (n > 0)
17404-
return LCONS(R_NilValue, Rf_allocList(n - 1));
17404+
return LCONS(R_NilValue, Rf_allocList(n - 1));
1740517405
else
17406-
return R_NilValue;
17406+
return R_NilValue;
1740717407
@}
1740817408
#endif
1740917409

@@ -17935,9 +17935,9 @@ These functions interact with a console.
1793517935

1793617936
@code{R_ReadConsole} prints the given prompt at the console and then does a
1793717937
@code{fgets(3)}--like operation, writing up to @var{buflen} bytes into the
17938-
buffer @var{buf}. The last of the bytes written should be @samp{"\0"}.
17938+
buffer @var{buf}. The last of the bytes written should be @samp{"\0"}.
1793917939
When there is enough space in the buffer to hold the full input line
17940-
including the line terminator, the line terminator should be included.
17940+
including the line terminator, the line terminator should be included.
1794117941
Otherwise, the rest of the line should be returned in subsequent calls to
1794217942
@code{R_ReadConsole}. The last call should return data terminated by the line
1794317943
terminator. If @var{hist} is non-zero, then the line should be added to any

0 commit comments

Comments
 (0)