std::snprintf()
instead of
std::sprintf()
.char
is unsigned.
(#21)Register native routines.
Ensure that file handles on Windows are properly closed after reading a file.
<cstdio>
,
<cstring>
are resolved using a std::
prefix.sourcetools
can build on
Solaris.sourcetools
can
build on machines with older compilers (e.g. gcc 4.4).ERR
to INVALID
to fix
build errors on Solaris.The first release of sourcetools
comes with a small set
of features exposed to R:
read(file)
: Read a file (as a string). Similar to
readChar()
, but faster (and maybe be optimized to use a
memory mapped file reader in the future).
tokenize_file(file)
: Tokenize an R script.
tokenize_string(string)
: Tokenize a string of R
code.