Changeset 2011
- Timestamp:
- 05/18/07 18:04:52
- Files:
-
- trunk/tools/gtypeinterface-h-files-to-c-file.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/tools/gtypeinterface-h-files-to-c-file.pl
r1254 r2011 179 179 print "{\n\tparent_class->finalize (object);\n}\n"; 180 180 181 print "static void\n"; 182 print uncamel_low($typename)."_instance_init (GTypeInstance *instance, gpointer g_class)\n"; 183 print "{\n}\n"; 184 181 185 foreach my $iface (@interfaces) 182 186 { … … 226 230 print ("\t\t\t(GInterfaceInitFunc) ".$iface_low."_init, /* interface_init */\n"); 227 231 print ("\t\t\tNULL, /* interface_finalize */\n"); 228 print ("\t\t\tNULL /* interface_data */\n\t\t} \n\n");232 print ("\t\t\tNULL /* interface_data */\n\t\t};\n\n"); 229 233 } 230 234 … … 238 242 my $iface_up = uncamel_up ($iface->{name}); 239 243 my $iface_low = uncamel_low ($iface->{name}); 240 print "\t\t g_type_add_interface_static (type, $iface_up,\n";241 print "\t\t\t&".$iface_low."_info \n\n";244 print "\t\tFIX THIS (ADD _TYPE):\n\t\tg_type_add_interface_static (type, $iface_up,\n"; 245 print "\t\t\t&".$iface_low."_info);\n\n"; 242 246 } 243 247 print "\t}\n\treturn type;\n}\n";
