#NEWLINE# @ staticmethod #NEWLINE# def append_prototypes( contents , prototypes ) : #NEWLINE# #INDENT# result = [ ] #NEWLINE# if ( not prototypes ) : #NEWLINE# #INDENT# return result #NEWLINE# #UNINDENT# first_pos = prototypes [ 0 ] [ 1 ] #NEWLINE# result . append ( contents [ : first_pos ] . strip ( ) ) #NEWLINE# result . append ( ( '%s;' % ';\n' . join ( [ p [ 2 ] for p in prototypes ] ) ) ) #NEWLINE# result . append ( ( '#line %d "%s"' % ( ( contents . count ( '\n' , 0 , ( first_pos + len ( prototypes [ 0 ] [ 2 ] ) ) ) + 1 ) , prototypes [ 0 ] [ 0 ] . replace ( '\\' , '/' ) ) ) ) #NEWLINE# result . append ( contents [ first_pos : ] . strip ( ) ) #NEWLINE# return contents