I thought that this was fixed a while back, but the latest 7.7 precompile.pike gives me errors:
precompile: /usr/local/pike/7.7.19/bin/pike /usr/local/pike/7.7.19/include/pike/precompile.pike Node.cmod Cannot index the NULL value with 0. /usr/local/pike/7.7.19/include/pike/precompile.pike:1398: /main()->generate_overload_func_for(({FuncData(f_Node_copy_1_defined),Func Data(f_Node_copy_2_defined)}),2,0,2147483647,"copy",mapping[1]) /usr/local/pike/7.7.19/include/pike/precompile.pike:2164:
/main()->ParseBlock()->create(({({,,,18}),({,,,3}),({,,,4}),({,,,4}),({,,,
4}),({,,,4}),({,,,4}),({,,,4}),({,,,4}),({,,,4}),({,,,4}),({,,,4}),({,,,4} ),,,38}),"Node") /usr/local/pike/7.7.19/include/pike/precompile.pike:177: /main()->ParseBlock() /usr/local/pike/7.7.19/include/pike/precompile.pike:1509: /main()->ParseBlock()->create(({"/* Generated from "Node.cmod" by precom pile.pike\n *\n * Do NOT edit this file.\n */\n","\n#undef PRECOMPILE_API_ VERSION\n","#define PRECOMPILE_API_VERSION 2\n","\n\n",,,25}),"") /usr/local/pike/7.7.19/include/pike/precompile.pike:177: /main()->ParseBlock() /usr/local/pike/7.7.19/include/pike/precompile.pike:2305:
/main()->main(2,({"/usr/local/pike/7.7.19/include/pike/precompile.pike","Node.cmod"})) Failed to run /usr/local/pike/7.7.19/include/pike/precompile.pike.
When presented with the following code:
PIKEFUN object copy() { struct object * o; xmlNodePtr node;
check_node_created();
node = xmlCopyNode(THIS->object_data->node, 0);
o=NEW_NODE(); OBJ2_NODE(o)->object_data->node = node; OBJ2_NODE(o)->object_data->unlinked = 1; NEW_NODE_REFS(o); push_object(o); }
PIKEFUN object copy(int extended) { xmlNodePtr node;
check_node_created();
node = xmlCopyNode(THIS->object_data->node, extended);
o=NEW_NODE(); OBJ2_NODE(o)->object_data->node = node; OBJ2_NODE(o)->object_data->unlinked = 1; NEW_NODE_REFS(o); push_object(o); }
Any suggestions?
Bill
pike-devel@lists.lysator.liu.se