From simon.urbanek at r-project.org  Mon Aug 23 19:12:41 2010
From: simon.urbanek at r-project.org (Simon Urbanek)
Date: Mon, 23 Aug 2010 13:12:41 -0400
Subject: [Rd] Handle RAWSXP in inspect.c:typename()
In-Reply-To: <AANLkTi=Xn0mJAjyPB-S4fcbWLwKOJirvAX_7DmUJTYwW@mail.gmail.com>
References: <AANLkTi=Xn0mJAjyPB-S4fcbWLwKOJirvAX_7DmUJTYwW@mail.gmail.com>
Message-ID: <715DF39F-655E-43ED-8611-EBB2C901B61C@r-project.org>


On Aug 22, 2010, at 4:47 AM, Rory Winston wrote:

> Hi all
> 
> I had written a gdb macro to dump the string representation of an SEXPREC
> type when I realised everything I needed was in inspect.c already in the
> typename() function. However, the typename function doesnt handle the RAWSXP
> type, so if possible, could the following patch be applied (I've just put in
> inline as it is a trivial 1-liner)?
> 

... it' just a part of the story - RAWSXPs are not handled at all - not even in inspect itself (I'm not sure how I missed that ;)). I have added RAW support to inspect in R-devel now.

Thanks,
Simon


> Index: src/main/inspect.c
> ===================================================================
> --- src/main/inspect.c    (revision 52221)
> +++ src/main/inspect.c    (working copy)
> @@ -63,6 +63,7 @@
>     case EXTPTRSXP:    return "EXTPTRSXP";
>     case WEAKREFSXP:    return "WEAKREFSXP";
>     case S4SXP:        return "S4SXP";
> +    case RAWSXP:    return "RAWSXP";
>     default:
>     return "<unknown>";
>     }
> 
> 
> Best
> -- Rory
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
> 
> 



[Rd] Handle RAWSXP in inspect.c:typename()
Simon Urbanek