gobject-introspection r149 - in trunk: . tools
- From: robtaylor svn gnome org
- To: svn-commits-list gnome org
- Subject: gobject-introspection r149 - in trunk: . tools
- Date: Tue, 11 Mar 2008 13:29:21 +0000 (GMT)
Author: robtaylor
Date: Tue Mar 11 13:29:21 2008
New Revision: 149
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=149&view=rev
Log:
2008-03-11 Rob Taylor <rob taylor codethink co uk>
* tools/gidlcompilercontext.c: (g_idl_compiler_write_dir_entry),
(g_idl_compiler_write_xref_entry), (g_idl_compiler_add_xref):
Add some comments for strings into generated output for
easier debugging.
Modified:
trunk/ChangeLog
trunk/tools/gidlcompilercontext.c
Modified: trunk/tools/gidlcompilercontext.c
==============================================================================
--- trunk/tools/gidlcompilercontext.c (original)
+++ trunk/tools/gidlcompilercontext.c Tue Mar 11 13:29:21 2008
@@ -422,7 +422,7 @@
" {\n" " %d,\n"
" %d,\n"
" 0,\n"
- " " STRING_POINTER ",\n"
+ " " STRING_POINTER ", /* %s */\n"
" " TYPE_POINTER ",\n"
" },\n";
guint orig = ctx->directory_entries;
@@ -430,7 +430,7 @@
fprintf (ctx->mdata_directory, entry_prototype,
blob_type,
TRUE,
- ctx->struct_name, g_idl_compiler_write_string (ctx, name),
+ ctx->struct_name, g_idl_compiler_write_string (ctx, name), name,
ctx->struct_name, entry_id);
ctx->directory_local_entries += 1;
@@ -448,16 +448,16 @@
" {\n" " %d,\n"
" %d,\n"
" 0,\n"
- " " STRING_POINTER ",\n"
- " " STRING_POINTER ",\n"
+ " " STRING_POINTER ", /* %s */\n"
+ " " STRING_POINTER ", /* %s */\n"
" },\n";
guint dir_id_res = ctx->directory_entries;
fprintf (ctx->mdata_directory, entry_prototype,
blob_type,
FALSE,
- ctx->struct_name, g_idl_compiler_write_string (ctx, name),
- ctx->struct_name, g_idl_compiler_write_string (ctx, namespace));
+ ctx->struct_name, g_idl_compiler_write_string (ctx, name), name,
+ ctx->struct_name, g_idl_compiler_write_string (ctx, namespace), name);
ctx->directory_entries += 1;
return dir_id_res;
@@ -525,13 +525,14 @@
" 0,\n"
" 0,\n"
" 0,\n"
- " " STRING_POINTER ",\n",
+ " " STRING_POINTER ", /* %s */\n",
ctx->struct_name,
- g_idl_compiler_write_string (ctx, symbol));
+ g_idl_compiler_write_string (ctx, symbol), name);
if (namespace)
- fprintf (ctx->mdata_directory, " " STRING_POINTER ",\n",
- ctx->struct_name, g_idl_compiler_write_string (ctx, namespace));
+ fprintf (ctx->mdata_directory, " " STRING_POINTER ", /* %s */\n",
+ ctx->struct_name, g_idl_compiler_write_string (ctx, namespace),
+ name);
else
fprintf (ctx->mdata_directory, " 0,\n");
fprintf (ctx->mdata_directory, " },\n");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]