Displaying 4 results from an estimated 4 matches for "character_data".
2003 Dec 17
1
Accessing row and col names of SEXP objects
...but the
colnames I'm getting are garbage.
None of the following are working.
void printInfo(SEXP ts) {
int j;
for (j=0; j<col; j++) {
printf("%s\n",CHAR(STRING_ELT(GetColNames(ts), j)));
printf("%s\n",CHAR(VECTOR_ELT(GetColNames(ts), j)));
printf("%s\n",CHARACTER_DATA(STRING_ELT(GetColNames(ts), j)));
printf("%s\n",CHARACTER_DATA(VECTOR_ELT(GetColNames(ts), j)));
}
}
Here is the object I'm passing in:
tmp <- matrix(rnorm(100),ncol=5)
colnames(tmp) <- c("tmp","a","b","c","d")
rownames...
2007 Mar 07
0
13 commits - libswfdec/Makefile.am libswfdec/swfdec_js_global.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_root_movie.c libswfdec/swfdec_root_movie.h libswfdec/swfdec_script.c libswfdec/swfdec_sprite.h libswfdec/swfdec_sprite_movie.c
...root_movie.c b/libswfdec/swfdec_root_movie.c
index d01b8e4..aeaa529 100644
--- a/libswfdec/swfdec_root_movie.c
+++ b/libswfdec/swfdec_root_movie.c
@@ -127,10 +127,6 @@ swfdec_root_movie_dispose (GObject *obje
g_object_unref (root->decoder);
root->decoder = NULL;
}
- if (root->character_data != NULL) {
- g_hash_table_destroy (root->character_data);
- root->character_data = NULL;
- }
G_OBJECT_CLASS (swfdec_root_movie_parent_class)->dispose (object);
}
@@ -214,60 +210,6 @@ swfdec_root_movie_load (SwfdecRootMovie
swfdec_player_launch (root->player, url, target...
2007 Mar 05
0
11 commits - configure.ac libswfdec/swfdec_js_movie.c libswfdec/swfdec_root_movie.c libswfdec/swfdec_root_movie.h libswfdec/swfdec_script.c libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite.h libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_swf_decoder.c
...gpointer infop)
+{
+ SwfdecSpriteInfo *info = infop;
+
+ g_free (info);
+}
+
+static SwfdecSpriteInfo *
+swfdec_sprite_info_get (SwfdecMovie *movie, SwfdecSprite *sprite)
+{
+ SwfdecRootMovie *root = SWFDEC_ROOT_MOVIE (movie->root);
+ SwfdecSpriteInfo *info;
+
+ info = swfdec_root_movie_get_character_data (root, SWFDEC_CHARACTER (sprite));
+ if (info == NULL) {
+ info = g_new0 (SwfdecSpriteInfo, 1);
+ swfdec_root_movie_set_character_data (root, SWFDEC_CHARACTER (sprite),
+ info, swfdec_sprite_info_free);
+ }
+ return info;
+}
+
+/*** SWFDEC_SPRITE_MOVIE ***/
+
static SwfdecMovie *
swfdec_...
2003 Oct 04
3
More questions about R extension programming
On Fri, 2003-10-03 at 17:01, Rajarshi Guha wrote:
> Hi,
> I'm using a package that has a number of formats. I have C code to
> parse these formats the results of which are generally integer arrays.
>
> I would like to utilize these modules in R rather than writing R code to
> read in these files (and also to learn about R extensions).
Thanks for the pointers to the above