def config_stdint_h(ctx, builder): if not builder.check_header_exists('stdint.h'): raise c.MissingHeader('stdint.h') return Record( types=std.get_types_data(builder, default_types_stdint_h, headers=['stdint.h'], int_type=True))
def config_complex_h(ctx, builder): if not builder.check_header_exists('complex.h'): raise c.MissingHeader('complex.h') return Record( types=std.get_types_data(builder, default_types_complex_h, headers=['complex.h']))
def config_unistd_h(ctx, builder): ''' Test for the posix unistd.h header, which provides standard posix types. @param builder: C builder ''' if not builder.check_header_exists('unistd.h'): raise MissingHeader('unistd.h') return Record( types=std.get_types_data(builder, default_types_unistd_h, headers=['unistd.h']), )
def config_types(ctx, builder): return std.get_types_data(builder, default_types)