Use binary mode for output file on Windows.

2008-08-28  Tor Lillqvist  <tml@novell.com>

	* tools/compiler.c (write_out_typelib): Use binary mode for output
	file on Windows.

	* girepository/girnode.c: Don't print NULL strings.

	* tests/invoke/Makefile.am
	* tests/scanner/Makefile.am: Use -no-undefined on Windows to
	convince libtool to build shared libraries.

	* tests/invoke/invoke.c: Don't needlessly include <dlfcn.h>. Use
	g_assert() instead of printing out expected errors.


svn path=/trunk/; revision=509
This commit is contained in:
Tor Lillqvist 2008-08-28 16:55:37 +00:00 committed by Tor Lillqvist
parent 0969efd5a5
commit fc1efcef59

View File

@ -821,8 +821,11 @@ g_ir_node_get_full_size_internal (GIrNode *parent,
size = 0;
}
g_debug ("node '%s' %p type '%s' full size %d", node->name, node,
g_ir_node_type_to_string (node->type), size);
g_debug ("node %s%s%s%p type '%s' full size %d",
node->name ? "'" : "",
node->name ? node->name : "",
node->name ? "' " : "",
node, g_ir_node_type_to_string (node->type), size);
return size;
}
@ -1170,8 +1173,9 @@ g_ir_node_build_typelib (GIrNode *node,
g_assert (node != NULL);
g_debug ("build_typelib: %s (%s)",
node->name,
g_debug ("build_typelib: %s%s(%s)",
node->name ? node->name : "",
node->name ? " " : "",
g_ir_node_type_to_string (node->type));
switch (node->type)
@ -2122,8 +2126,11 @@ g_ir_node_build_typelib (GIrNode *node,
g_assert_not_reached ();
}
g_debug ("node '%s' %p type '%s', offset %d -> %d, offset2 %d -> %d",
node->name, node, g_ir_node_type_to_string (node->type),
g_debug ("node %s%s%s%p type '%s', offset %d -> %d, offset2 %d -> %d",
node->name ? "'" : "",
node->name ? node->name : "",
node->name ? "' " : "",
node, g_ir_node_type_to_string (node->type),
old_offset, *offset, old_offset2, *offset2);
if (*offset2 - old_offset2 + *offset - old_offset > g_ir_node_get_full_size (node))