6.16.5.1. c comment tangler

Start python section to interscript/tanglers/c.py[2 /3 ] Next Prev First Last
    29: #line 261 "tanglers.ipk"
    30: #---------------------------------------------------------
    31: class c_comment_tangler(tangler_base):
    32:   def __init__(self,sink,weaver):
    33:     tangler_base.__init__(self,sink,weaver)
    34: 
    35:   def writeline(self,data,file,count,inhibit_sref=0):
    36:     if self.count == 0:
    37:       self._writeline('/* '+data)
    38:     else:
    39:       self._writeline(' * '+data)
    40:     self.weaver.writeline(data)
    41: 
    42:   def __del__(self):
    43:     self._writeline(' */')
    44: 
End python section to interscript/tanglers/c.py[2]