The R Project SVN R-packages

Rev

Rev 7747 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7747 Rev 8166
Line 61... Line 61...
61
/*
61
/*
62
  Identifier for the node. Could be anything, so we use the pointer address to ensure
62
  Identifier for the node. Could be anything, so we use the pointer address to ensure
63
   uniqueness.  Ignore the next definition in the comment!
63
   uniqueness.  Ignore the next definition in the comment!
64
#define SET_NODE_NAME(x, id) sprintf(x, "%d", id)
64
#define SET_NODE_NAME(x, id) sprintf(x, "%d", id)
65
*/
65
*/
66
#define SET_NODE_NAME(x, id, node) sprintf(x, "%p", (void *)node)
66
#define SET_NODE_NAME(x, id, node) snprintf(x, 20, "%p", (void *)node)
67
 
67
 
68
 
68
 
69
SEXP
69
SEXP
70
makeHashNode(xmlNodePtr node, char *buf, SEXP env, R_XMLSettings *parserSettings)
70
makeHashNode(xmlNodePtr node, char *buf, SEXP env, R_XMLSettings *parserSettings)
71
{
71
{