~ubuntu-branches/ubuntu/trusty/gobject-introspection/trusty

« back to all changes in this revision

Viewing changes to tools/compiler.c

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2010-11-24 12:32:20 UTC
  • mto: (3.3.15 natty) (1.6.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 14.
  • Revision ID: james.westby@ubuntu.com-20101124123220-tbyh4pkjldp5ayck
Tags: upstream-0.9.12+git20101124
ImportĀ upstreamĀ versionĀ 0.9.12+git20101124

Show diffs side-by-side

added added

removed removed

Lines of Context:
174
174
    for (i = 0; includedirs[i]; i++)
175
175
      g_irepository_prepend_search_path (includedirs[i]);
176
176
 
177
 
  parser = g_ir_parser_new ();
178
 
 
179
 
  g_ir_parser_set_includes (parser, (const char*const*) includedirs);
180
 
 
181
 
  module = g_ir_parser_parse_file (parser, input[0], &error);
 
177
  parser = _g_ir_parser_new ();
 
178
 
 
179
  _g_ir_parser_set_includes (parser, (const char*const*) includedirs);
 
180
 
 
181
  module = _g_ir_parser_parse_file (parser, input[0], &error);
182
182
  if (module == NULL) 
183
183
    {
184
184
      g_fprintf (stderr, "error parsing file %s: %s\n", 
203
203
 
204
204
      g_debug ("[building] module %s", module->name);
205
205
 
206
 
      typelib = g_ir_module_build_typelib (module);
 
206
      typelib = _g_ir_module_build_typelib (module);
207
207
      if (typelib == NULL)
208
208
        g_error ("Failed to build typelib for module '%s'\n", module->name);
209
209
      if (!g_typelib_validate (typelib, &error))
219
219
 
220
220
#if 0
221
221
  /* No point */
222
 
  g_ir_parser_free (parser);
 
222
  _g_ir_parser_free (parser);
223
223
#endif  
224
224
 
225
225
  return 0;