Rev 41766 |
Rev 41768 |
Go to most recent revision |
Last modification |
Compare with Previous |
View Log
| Download
| RSS feed
Last modification
- Rev 41767 2007-05-31 22:20:25
- Author: rgentlem
- Log message:
- more patches from Seth F, for the CHARSXP hashing
Seth says:
This patch series teaches R_StringHash how to handle the encoding
information stored in the general purpose bits of CHARSXPs. A new
interface for CHARSXP creation is added, mkCharEnc that allows for
specifying the encoding.
The patch series also captures more CHARSXPs in the global cache. In
particular, character.c:mkChar2 and gram.y:mkChar2 both use the cache
now.
The string hashing in scan.c has been removed as it no longer is
needed.
The CallocCharBuf macro gets a small fix (extra parens)
And last, but not least:
CHAR() from package code now returns (const char *)
Since CHARSXPs should no longer be modified in place, we can make
CHAR() return (const char *) so that compilers can warn or error about
improper modification. Thanks to Herve Pages for the suggestions.