languages/gen_h.py
def create_structure(self, name, decls):
		""" 
		Create structure, either with or without bitfields.
		Arguments:
			name	structure name
			decls	List with declarations contained within the structure.
		"""
		self.__wr_line("{}struct {} {}\n".format("	" * (decls[0].gap - 1),
							name, "{"))
		if (decls[0].intType == "bitfield"):
			tmp = self.__get_type_size(decls[0].type)
			self.__write_structure_bitfields(decls, tmp)
			s = " s"
		else:
			s = ""
			self.__write_structure_norm(decls)
			
		self.__wr_line("{}{}{};\n".format("	" * (decls[0].gap - 1), 
							"}", s))
 
		Create structure, either with or without bitfields.
		Arguments:
			name	structure name
			decls	List with declarations contained within the structure.
		
Create structure, either with or without bitfields.
Arguments:
name    structure name
decls   List with declarations contained within the structure.
Create structure either with or without bitfields . Arguments : name structure name decls List with declarations contained within the structure .
def create_structure(self, name, decls):
		self.__wr_line("{}struct {} {}\n".format("	" * (decls[0].gap - 1),
							name, "{"))
		if (decls[0].intType == "bitfield"):
			tmp = self.__get_type_size(decls[0].type)
			self.__write_structure_bitfields(decls, tmp)
			s = " s"
		else:
			s = ""
			self.__write_structure_norm(decls)
		self.__wr_line("{}{}{};\n".format("	" * (decls[0].gap - 1), 
							"}", s))
def create_structure ( self , name , decls ) : self . __wr_line ( "{}struct {} {}\n" . format ( "	" * ( decls [ 0 ] . gap - 1 ) , name , "{" ) ) if ( decls [ 0 ] . intType == "bitfield" ) : tmp = self . __get_type_size ( decls [ 0 ] . type ) self . __write_structure_bitfields ( decls , tmp ) s = " s" else : s = "" self . __write_structure_norm ( decls ) self . __wr_line ( "{}{}{};\n" . format ( "	" * ( decls [ 0 ] . gap - 1 ) , "}" , s ) )
Create structure, either with or without bitfields.
Create structure either with or without bitfields .
""" 
		Create structure, either with or without bitfields.
		Arguments:
			name	structure name
			decls	List with declarations contained within the structure.
		"""
self
name
decls