languages/gen_h.py
def write_comment(self, input, gap, caption=None, small=False):
		""" 
		Write C comment line aligned to 80 characters in format:
			/* COMMENT */
		or:
			/* 
			 * COMMENT LONGER THAN 80 CHARACTERS SPLIT BETWEEN LINES
			 */
		Arguments:
			gap		 Number of tabs before the comment
			caption  Caption to append to the comment in the first line
			small	 So far no meaning for C implementation
		"""
		spltStr = split_string(input, 75 - gap)
		if (caption != None):
			spltStr.append("")
			spltStr.append(caption)
		elif (len(spltStr) == 1):
			self.__wr_line("{}/* {} */\n".format(" " * gap, input))
			return None
		
		self.__wr_line("{}/*\n".format(" " * gap))
		for (i,line) in enumerate(spltStr):
			self.__wr_line("{} * {}".format(" " * gap, line))
		self.__wr_line("{}*/\n".format(" " * gap))
 
		Write C comment line aligned to 80 characters in format:
			/* COMMENT */
		or:
			/* 
			 * COMMENT LONGER THAN 80 CHARACTERS SPLIT BETWEEN LINES
			 */
		Arguments:
			gap		 Number of tabs before the comment
			caption  Caption to append to the comment in the first line
			small	 So far no meaning for C implementation
		
Write C comment line aligned to 80 characters in format:
COMMENT
or.

COMMENT LONGER THAN 80 CHARACTERS SPLIT BETWEEN LINES

gap              Number of tabs before the comment
caption  Caption to append to the comment in the first line
small    So far no meaning for C implementation
Write C comment line aligned to 80 characters in format : COMMENT or . COMMENT LONGER THAN 80 CHARACTERS SPLIT BETWEEN LINES gap Number of tabs before the comment caption Caption to append to the comment in the first line small So far no meaning for C implementation
def write_comment(self, input, gap, caption=None, small=False):
		spltStr = split_string(input, 75 - gap)
		if (caption != None):
			spltStr.append("")
			spltStr.append(caption)
		elif (len(spltStr) == 1):
			self.__wr_line("{}/* {} */\n".format(" " * gap, input))
			return None
		self.__wr_line("{}/*\n".format(" " * gap))
		for (i,line) in enumerate(spltStr):
			self.__wr_line("{} * {}".format(" " * gap, line))
		self.__wr_line("{}*/\n".format(" " * gap))
def write_comment ( self , input , gap , caption = None , small = False ) : spltStr = split_string ( input , 75 - gap ) if ( caption != None ) : spltStr . append ( "" ) spltStr . append ( caption ) elif ( len ( spltStr ) == 1 ) : self . __wr_line ( "{}/* {} */\n" . format ( " " * gap , input ) ) return None self . __wr_line ( "{}/*\n" . format ( " " * gap ) ) for ( i , line ) in enumerate ( spltStr ) : self . __wr_line ( "{} * {}" . format ( " " * gap , line ) ) self . __wr_line ( "{}*/\n" . format ( " " * gap ) )
Write C comment line aligned to 80 characters in format:
 COMMENT
or:
Write C comment line aligned to 80 characters in format : COMMENT or :
""" 
		Write C comment line aligned to 80 characters in format:
			/* COMMENT */
		or:
			/* 
			 * COMMENT LONGER THAN 80 CHARACTERS SPLIT BETWEEN LINES
			 */
		Arguments:
			gap		 Number of tabs before the comment
			caption  Caption to append to the comment in the first line
			small	 So far no meaning for C implementation
		"""
self
input
gap
caption
small