For a list of contributors, see the accompanying CONTRIBUTORS file.
This file is part of GtkRadiant.
For a list of contributors, see the accompanying CONTRIBUTORS file.
This file is part of GtkRadiant.
char buf[1024];
sprintf (buf, "%f %f %f", v[0], v[1], v[2]);
char buf[1024];
sprintf (buf, "%f %f %f", v[0], v[1], v[2]);
- ret = xmlNewNode (NULL, "point");
- xmlNodeSetContent (ret, buf);
+ ret = xmlNewNode (NULL, (xmlChar*)"point");
+ xmlNodeSetContent (ret, (xmlChar*)buf);
// l_net library defines an upper limit of MAX_NETMESSAGE
// there are some size check errors, so we use MAX_NETMESSAGE-10 to be safe
// if the size of the buffer exceeds MAX_NETMESSAGE-10 we'll send in several network messages
// l_net library defines an upper limit of MAX_NETMESSAGE
// there are some size check errors, so we use MAX_NETMESSAGE-10 to be safe
// if the size of the buffer exceeds MAX_NETMESSAGE-10 we'll send in several network messages
{
// what size are we gonna send now?
(xml_buf->use - pos < MAX_NETMESSAGE - 10) ? (size = xml_buf->use - pos) : (size = MAX_NETMESSAGE - 10);
{
// what size are we gonna send now?
(xml_buf->use - pos < MAX_NETMESSAGE - 10) ? (size = xml_buf->use - pos) : (size = MAX_NETMESSAGE - 10);
// now build a proper "select" XML node
sprintf (buf, "Entity %i, Brush %i: %s", entitynum, brushnum, msg);
// now build a proper "select" XML node
sprintf (buf, "Entity %i, Brush %i: %s", entitynum, brushnum, msg);
- node = xmlNewNode (NULL, "select");
- xmlNodeSetContent (node, buf);
+ node = xmlNewNode (NULL, (xmlChar*)"select");
+ xmlNodeSetContent (node, (xmlChar*)buf);
// a 'select' information
sprintf (buf, "%i %i", entitynum, brushnum);
// a 'select' information
sprintf (buf, "%i %i", entitynum, brushnum);
- select = xmlNewNode (NULL, "brush");
- xmlNodeSetContent (select, buf);
+ select = xmlNewNode (NULL, (xmlChar*)"brush");
+ xmlNodeSetContent (select, (xmlChar*)buf);
- node = xmlNewNode (NULL, "pointmsg");
- xmlNodeSetContent (node, msg);
+ node = xmlNewNode (NULL, (xmlChar*)"pointmsg");
+ xmlNodeSetContent (node, (xmlChar*)msg);
// a 'point' node
sprintf (buf, "%g %g %g", pt[0], pt[1], pt[2]);
// a 'point' node
sprintf (buf, "%g %g %g", pt[0], pt[1], pt[2]);
- point = xmlNewNode (NULL, "point");
- xmlNodeSetContent (point, buf);
+ point = xmlNewNode (NULL, (xmlChar*)"point");
+ xmlNodeSetContent (point, (xmlChar*)buf);
- node = xmlNewNode (NULL, "windingmsg");
- xmlNodeSetContent (node, msg);
+ node = xmlNewNode (NULL, (xmlChar*)"windingmsg");
+ xmlNodeSetContent (node, (xmlChar*)msg);
// a 'winding' node
sprintf( buf, "%i ", numpoints);
for(i = 0; i < numpoints; i++)
// a 'winding' node
sprintf( buf, "%i ", numpoints);
for(i = 0; i < numpoints; i++)
- winding = xmlNewNode (NULL, "winding");
- xmlNodeSetContent (winding, buf);
+ winding = xmlNewNode (NULL, (xmlChar*)"winding");
+ xmlNodeSetContent (winding, (xmlChar*)buf);
- doc = xmlNewDoc("1.0");
- doc->children = xmlNewDocRawNode(doc, NULL, "q3map_feedback", NULL);
+ doc = xmlNewDoc((xmlChar*)"1.0");
+ doc->children = xmlNewDocRawNode(doc, NULL, (xmlChar*)"q3map_feedback", NULL);
{
gchar* utf8 = g_locale_to_utf8(buf, -1, NULL, NULL, NULL);
{
gchar* utf8 = g_locale_to_utf8(buf, -1, NULL, NULL, NULL);