(self, routines, f, prefix, header=True, empty=True)
Writes the C header file.

           This file contains all the function declarations.

           :Arguments:

           routines
                A list of Routine instances
           f
                A file-like object to write the file to
           prefix
                The filename prefix, used to construct the include guards.

           :Optional arguments:

           header
                When True, a header comment is included on top of each source
                file. [DEFAULT=True]
           empty
                When True, empty lines are included to structure the source
                files. [DEFAULT=True]
Writes the C header file.
Writes the C header file .
def dump_h(self, routines, f, prefix, header=True, empty=True):
        """Writes the C header file.

           This file contains all the function declarations.

           :Arguments:

           routines
                A list of Routine instances
           f
                A file-like object to write the file to
           prefix
                The filename prefix, used to construct the include guards.

           :Optional arguments:

           header
                When True, a header comment is included on top of each source
                file. [DEFAULT=True]
           empty
                When True, empty lines are included to structure the source
                files. [DEFAULT=True]
        """
        if header:
            print(''.join(self._get_header()), file=f)
        guard_name = "%s__%s__H" % (self.project.replace(
            " ", "_").upper(), prefix.replace("/", "_").upper())
        # include guards
        if empty:
            print(file=f)
        print("#ifndef %s" % guard_name, file=f)
        print("#define %s" % guard_name, file=f)
        if empty:
            print(file=f)
        # declaration of the function prototypes
        for routine in routines:
            prototype = self.get_prototype(routine)
            print("%s;" % prototype, file=f)
        # end if include guards
        if empty:
            print(file=f)
        print("#endif", file=f)
        if empty:
            print(file=f)
def dump_h ( self , routines , f , prefix , header = True , empty = True ) : if header : print ( '' . join ( self . _get_header ( ) ) , file = f ) guard_name = "%s__%s__H" % ( self . project . replace ( " " , "_" ) . upper ( ) , prefix . replace ( "/" , "_" ) . upper ( ) ) # include guards if empty : print ( file = f ) print ( "#ifndef %s" % guard_name , file = f ) print ( "#define %s" % guard_name , file = f ) if empty : print ( file = f ) # declaration of the function prototypes for routine in routines : prototype = self . get_prototype ( routine ) print ( "%s;" % prototype , file = f ) # end if include guards if empty : print ( file = f ) print ( "#endif" , file = f ) if empty : print ( file = f )