def __init__(self, namespace, shlibs, includes):
super(GIRWriter, self).__init__()
+ self.write_comment('''This file was automatically generated from C sources - DO NOT EDIT!
+ To affect the contents of this file, edit the original C definitions, and/or use gtk-doc annotations. ''')
self._write_repository(namespace, shlibs, includes)
def _write_repository(self, namespace, shlibs, includes=set()):
def write_line(self, line=''):
self._data.write('%s%s\n' % (self._indent_char * self._indent, line))
+ def write_comment(self, text):
+ self.write_line('<!-- %s -->' % (text, ))
+
def write_tag(self, tag_name, attributes, data=None):
if attributes is None:
attributes = []