SYMBOL INDEX (990 symbols across 30 files) FILE: ctypesgen/__main__.py function find_names_in_modules (line 18) | def find_names_in_modules(modules): function main (line 30) | def main(givenargs=None): FILE: ctypesgen/ctypedescs.py class CtypesTypeVisitor (line 79) | class CtypesTypeVisitor(object): method visit_struct (line 80) | def visit_struct(self, struct): method visit_enum (line 83) | def visit_enum(self, enum): method visit_typedef (line 86) | def visit_typedef(self, name): method visit_error (line 89) | def visit_error(self, error, cls): method visit_identifier (line 92) | def visit_identifier(self, identifier): function visit_type_and_collect_info (line 98) | def visit_type_and_collect_info(ctype): function remove_function_pointer (line 127) | def remove_function_pointer(t): class CtypesType (line 137) | class CtypesType(object): method __init__ (line 138) | def __init__(self): method __repr__ (line 142) | def __repr__(self): method error (line 145) | def error(self, message, cls=None): method visit (line 148) | def visit(self, visitor): class CtypesSimple (line 153) | class CtypesSimple(CtypesType): method __init__ (line 156) | def __init__(self, name, signed, longs): method py_string (line 162) | def py_string(self, ignore_can_be_ctype=None): class CtypesSpecial (line 166) | class CtypesSpecial(CtypesType): method __init__ (line 167) | def __init__(self, name): method py_string (line 171) | def py_string(self, ignore_can_be_ctype=None): class CtypesTypedef (line 175) | class CtypesTypedef(CtypesType): method __init__ (line 178) | def __init__(self, name): method visit (line 182) | def visit(self, visitor): method py_string (line 187) | def py_string(self, ignore_can_be_ctype=None): class CtypesBitfield (line 191) | class CtypesBitfield(CtypesType): method __init__ (line 192) | def __init__(self, base, bitfield): method visit (line 197) | def visit(self, visitor): method py_string (line 201) | def py_string(self, ignore_can_be_ctype=None): class CtypesPointer (line 205) | class CtypesPointer(CtypesType): method __init__ (line 206) | def __init__(self, destination, qualifiers): method visit (line 211) | def visit(self, visitor): method py_string (line 216) | def py_string(self, ignore_can_be_ctype=None): class CtypesArray (line 220) | class CtypesArray(CtypesType): method __init__ (line 221) | def __init__(self, base, count): method visit (line 226) | def visit(self, visitor): method py_string (line 232) | def py_string(self, ignore_can_be_ctype=None): class CtypesNoErrorCheck (line 241) | class CtypesNoErrorCheck(object): method py_string (line 242) | def py_string(self, ignore_can_be_ctype=None): method __bool__ (line 245) | def __bool__(self): class CtypesPointerCast (line 251) | class CtypesPointerCast(object): method __init__ (line 252) | def __init__(self, target): method py_string (line 255) | def py_string(self, ignore_can_be_ctype=None): class CtypesFunction (line 259) | class CtypesFunction(CtypesType): method __init__ (line 260) | def __init__(self, restype, parameters, variadic, attrib=dict()): method visit (line 289) | def visit(self, visitor): method py_string (line 295) | def py_string(self, ignore_can_be_ctype=None): function anonymous_struct_tagnum (line 305) | def anonymous_struct_tagnum(): function fmt_anonymous_struct_tag (line 311) | def fmt_anonymous_struct_tag(num): function anonymous_struct_tag (line 315) | def anonymous_struct_tag(): class CtypesStruct (line 319) | class CtypesStruct(CtypesType): method __init__ (line 320) | def __init__(self, tag, attrib, variety, members, src=None): method get_required_types (line 343) | def get_required_types(self): method visit (line 348) | def visit(self, visitor): method get_subtypes (line 355) | def get_subtypes(self): method py_string (line 361) | def py_string(self, ignore_can_be_ctype=None): function anonymous_enum_tag (line 368) | def anonymous_enum_tag(): class CtypesEnum (line 374) | class CtypesEnum(CtypesType): method __init__ (line 375) | def __init__(self, tag, enumerators, src=None): method visit (line 393) | def visit(self, visitor): method py_string (line 397) | def py_string(self, ignore_can_be_ctype=None): FILE: ctypesgen/descriptions.py class DescriptionCollection (line 10) | class DescriptionCollection(object): method __init__ (line 13) | def __init__( class Description (line 27) | class Description(object): method __init__ (line 31) | def __init__(self, src=None): method add_requirements (line 57) | def add_requirements(self, reqs): method error (line 62) | def error(self, msg, cls=None): method warning (line 65) | def warning(self, msg, cls=None): method __repr__ (line 68) | def __repr__(self): method casual_name (line 71) | def casual_name(self): method py_name (line 74) | def py_name(self): method c_name (line 77) | def c_name(self): class ConstantDescription (line 81) | class ConstantDescription(Description): method __init__ (line 84) | def __init__(self, name, value, src=None): method casual_name (line 91) | def casual_name(self): method py_name (line 94) | def py_name(self): method c_name (line 97) | def c_name(self): class TypedefDescription (line 101) | class TypedefDescription(Description): method __init__ (line 104) | def __init__(self, name, ctype, src=None): method casual_name (line 109) | def casual_name(self): method py_name (line 112) | def py_name(self): method c_name (line 115) | def c_name(self): class StructDescription (line 119) | class StructDescription(Description): method __init__ (line 122) | def __init__(self, tag, attrib, variety, members, opaque, ctype, src=N... method casual_name (line 136) | def casual_name(self): method py_name (line 139) | def py_name(self): method c_name (line 142) | def c_name(self): class EnumDescription (line 146) | class EnumDescription(Description): method __init__ (line 149) | def __init__(self, tag, members, ctype, src=None): method casual_name (line 158) | def casual_name(self): method py_name (line 161) | def py_name(self): method c_name (line 164) | def c_name(self): class FunctionDescription (line 168) | class FunctionDescription(Description): method __init__ (line 171) | def __init__(self, name, restype, argtypes, errcheck, variadic, attrib... method casual_name (line 188) | def casual_name(self): method py_name (line 191) | def py_name(self): method c_name (line 194) | def c_name(self): class VariableDescription (line 198) | class VariableDescription(Description): method __init__ (line 201) | def __init__(self, name, ctype, src=None): method casual_name (line 210) | def casual_name(self): method py_name (line 213) | def py_name(self): method c_name (line 216) | def c_name(self): class MacroDescription (line 220) | class MacroDescription(Description): method __init__ (line 223) | def __init__(self, name, params, expr, src=None): method casual_name (line 229) | def casual_name(self): method py_name (line 232) | def py_name(self): method c_name (line 235) | def c_name(self): class UndefDescription (line 239) | class UndefDescription(Description): method __init__ (line 242) | def __init__(self, macro, src=None): method casual_name (line 248) | def casual_name(self): method py_name (line 251) | def py_name(self): method c_name (line 254) | def c_name(self): FILE: ctypesgen/expressions.py class EvaluationContext (line 32) | class EvaluationContext(object): method evaluate_identifier (line 35) | def evaluate_identifier(self, name): method evaluate_sizeof (line 39) | def evaluate_sizeof(self, object): method evaluate_parameter (line 43) | def evaluate_parameter(self, name): class ExpressionNode (line 48) | class ExpressionNode(object): method __init__ (line 49) | def __init__(self): method error (line 52) | def error(self, message, cls=None): method __repr__ (line 55) | def __repr__(self): method visit (line 62) | def visit(self, visitor): class ConstantExpressionNode (line 67) | class ConstantExpressionNode(ExpressionNode): method __init__ (line 68) | def __init__(self, value, is_literal=False): method evaluate (line 73) | def evaluate(self, context): method py_string (line 76) | def py_string(self, can_be_ctype): class IdentifierExpressionNode (line 86) | class IdentifierExpressionNode(ExpressionNode): method __init__ (line 87) | def __init__(self, name): method evaluate (line 91) | def evaluate(self, context): method visit (line 94) | def visit(self, visitor): method py_string (line 98) | def py_string(self, can_be_ctype): class ParameterExpressionNode (line 104) | class ParameterExpressionNode(ExpressionNode): method __init__ (line 105) | def __init__(self, name): method evaluate (line 109) | def evaluate(self, context): method visit (line 112) | def visit(self, visitor): method py_string (line 115) | def py_string(self, can_be_ctype): class UnaryExpressionNode (line 121) | class UnaryExpressionNode(ExpressionNode): method __init__ (line 122) | def __init__(self, name, op, format, child_can_be_ctype, child): method visit (line 130) | def visit(self, visitor): method evaluate (line 134) | def evaluate(self, context): method py_string (line 140) | def py_string(self, can_be_ctype): class SizeOfExpressionNode (line 144) | class SizeOfExpressionNode(ExpressionNode): method __init__ (line 145) | def __init__(self, child): method visit (line 149) | def visit(self, visitor): method evaluate (line 153) | def evaluate(self, context): method py_string (line 159) | def py_string(self, can_be_ctype): class BinaryExpressionNode (line 166) | class BinaryExpressionNode(ExpressionNode): method __init__ (line 167) | def __init__(self, name, op, format, can_be_ctype, left, right): method visit (line 176) | def visit(self, visitor): method evaluate (line 181) | def evaluate(self, context): method py_string (line 187) | def py_string(self, can_be_ctype): class ConditionalExpressionNode (line 194) | class ConditionalExpressionNode(ExpressionNode): method __init__ (line 195) | def __init__(self, cond, yes, no): method visit (line 201) | def visit(self, visitor): method evaluate (line 207) | def evaluate(self, context): method py_string (line 213) | def py_string(self, can_be_ctype): class AttributeExpressionNode (line 221) | class AttributeExpressionNode(ExpressionNode): method __init__ (line 222) | def __init__(self, op, format, base, attribute): method visit (line 235) | def visit(self, visitor): method evaluate (line 239) | def evaluate(self, context): method py_string (line 242) | def py_string(self, can_be_ctype): class CallExpressionNode (line 251) | class CallExpressionNode(ExpressionNode): method __init__ (line 252) | def __init__(self, function, arguments): method visit (line 257) | def visit(self, visitor): method evaluate (line 263) | def evaluate(self, context): method py_string (line 267) | def py_string(self, can_be_ctype): class TypeCastExpressionNode (line 273) | class TypeCastExpressionNode(ExpressionNode): method __init__ (line 279) | def __init__(self, base, ctype): method visit (line 284) | def visit(self, visitor): method evaluate (line 289) | def evaluate(self, context): method py_string (line 292) | def py_string(self, can_be_ctype): class UnsupportedExpressionNode (line 332) | class UnsupportedExpressionNode(ExpressionNode): method __init__ (line 333) | def __init__(self, message): method evaluate (line 338) | def evaluate(self, context): method __repr__ (line 341) | def __repr__(self): method py_string (line 344) | def py_string(self, can_be_ctype): FILE: ctypesgen/libraryloader.py function _environ_path (line 47) | def _environ_path(name): class LibraryLoader (line 54) | class LibraryLoader: class Lookup (line 63) | class Lookup: method __init__ (line 68) | def __init__(self, path): method get (line 72) | def get(self, name, calling_convention="cdecl"): method has (line 82) | def has(self, name, calling_convention="cdecl"): method __getattr__ (line 88) | def __getattr__(self, name): method __init__ (line 91) | def __init__(self): method __call__ (line 94) | def __call__(self, libname): method getpaths (line 107) | def getpaths(self, libname): method getplatformpaths (line 145) | def getplatformpaths(self, _libname): # pylint: disable=no-self-use class DarwinLibraryLoader (line 153) | class DarwinLibraryLoader(LibraryLoader): class Lookup (line 166) | class Lookup(LibraryLoader.Lookup): method getplatformpaths (line 177) | def getplatformpaths(self, libname): method getdirs (line 188) | def getdirs(libname): class PosixLibraryLoader (line 227) | class PosixLibraryLoader(LibraryLoader): class _Directories (line 236) | class _Directories(dict): method __init__ (line 239) | def __init__(self): method add (line 243) | def add(self, directory): method extend (line 254) | def extend(self, directories): method ordered (line 259) | def ordered(self): method _get_ld_so_conf_dirs (line 263) | def _get_ld_so_conf_dirs(self, conf, dirs): method _create_ld_so_cache (line 285) | def _create_ld_so_cache(self): method getplatformpaths (line 355) | def getplatformpaths(self, libname): class WindowsLibraryLoader (line 370) | class WindowsLibraryLoader(LibraryLoader): class Lookup (line 375) | class Lookup(LibraryLoader.Lookup): method __init__ (line 378) | def __init__(self, path): function add_library_search_dirs (line 398) | def add_library_search_dirs(other_dirs): FILE: ctypesgen/messages.py function error_message (line 34) | def error_message(msg, cls=None): function warning_message (line 38) | def warning_message(msg, cls=None): function status_message (line 42) | def status_message(msg): FILE: ctypesgen/options.py function get_default_options (line 48) | def get_default_options(): FILE: ctypesgen/parser/__init__.py function parse (line 18) | def parse(headers, options): FILE: ctypesgen/parser/cdeclarations.py class Declaration (line 14) | class Declaration(object): method __init__ (line 15) | def __init__(self): method __repr__ (line 21) | def __repr__(self): class Declarator (line 29) | class Declarator(object): method __init__ (line 32) | def __init__(self): method __repr__ (line 43) | def __repr__(self): class Pointer (line 56) | class Pointer(Declarator): method __init__ (line 59) | def __init__(self): method __repr__ (line 63) | def __repr__(self): class Array (line 70) | class Array(object): method __init__ (line 71) | def __init__(self): method __repr__ (line 75) | def __repr__(self): class Parameter (line 86) | class Parameter(object): method __init__ (line 87) | def __init__(self): method __repr__ (line 93) | def __repr__(self): class Type (line 103) | class Type(object): method __init__ (line 104) | def __init__(self): method __repr__ (line 108) | def __repr__(self): class StorageClassSpecifier (line 115) | class StorageClassSpecifier(str): method __repr__ (line 116) | def __repr__(self): class TypeSpecifier (line 120) | class TypeSpecifier(str): method __repr__ (line 121) | def __repr__(self): class StructTypeSpecifier (line 125) | class StructTypeSpecifier(object): method __init__ (line 126) | def __init__(self, is_union, attrib, tag, declarations): method __repr__ (line 134) | def __repr__(self): class EnumSpecifier (line 155) | class EnumSpecifier(object): method __init__ (line 156) | def __init__(self, tag, enumerators, src=None): method __repr__ (line 162) | def __repr__(self): class Enumerator (line 171) | class Enumerator(object): method __init__ (line 172) | def __init__(self, name, expression): method __repr__ (line 176) | def __repr__(self): class TypeQualifier (line 183) | class TypeQualifier(str): method __repr__ (line 184) | def __repr__(self): class PragmaPack (line 188) | class PragmaPack(object): method __init__ (line 191) | def __init__(self): method set_default (line 195) | def set_default(self): method push (line 198) | def push(self, id=None, value=None): method pop (line 205) | def pop(self, id=None): class Attrib (line 242) | class Attrib(dict): method __init__ (line 243) | def __init__(self, *a, **kw): method __repr__ (line 251) | def __repr__(self): method update (line 254) | def update(self, *a, **kw): method _unalias (line 258) | def _unalias(self): function apply_specifiers (line 274) | def apply_specifiers(specifiers, declaration): FILE: ctypesgen/parser/cgrammar.py function p_translation_unit (line 123) | def p_translation_unit(p): function p_identifier (line 134) | def p_identifier(p): function p_constant_integer (line 156) | def p_constant_integer(p): function p_constant_float (line 172) | def p_constant_float(p): function p_constant_character (line 183) | def p_constant_character(p): function p_string_literal (line 191) | def p_string_literal(p): function p_multi_string_literal (line 197) | def p_multi_string_literal(p): function p_macro_param (line 211) | def p_macro_param(p): function p_primary_expression (line 221) | def p_primary_expression(p): function p_postfix_expression (line 233) | def p_postfix_expression(p): function p_argument_expression_list (line 279) | def p_argument_expression_list(p): function p_asm_expression (line 292) | def p_asm_expression(p): function p_str_opt_expr_pair_list (line 308) | def p_str_opt_expr_pair_list(p): function p_str_opt_expr_pair (line 315) | def p_str_opt_expr_pair(p): function p_volatile_opt (line 321) | def p_volatile_opt(p): function p_unary_expression (line 339) | def p_unary_expression(p): function p_unary_operator (line 362) | def p_unary_operator(p): function p_cast_expression (line 373) | def p_cast_expression(p): function p_multiplicative_expression (line 390) | def p_multiplicative_expression(p): function p_additive_expression (line 409) | def p_additive_expression(p): function p_shift_expression (line 427) | def p_shift_expression(p): function p_relational_expression (line 447) | def p_relational_expression(p): function p_equality_expression (line 467) | def p_equality_expression(p): function p_and_expression (line 479) | def p_and_expression(p): function p_exclusive_or_expression (line 491) | def p_exclusive_or_expression(p): function p_inclusive_or_expression (line 503) | def p_inclusive_or_expression(p): function p_logical_and_expression (line 515) | def p_logical_and_expression(p): function p_logical_or_expression (line 527) | def p_logical_or_expression(p): function p_conditional_expression (line 539) | def p_conditional_expression(p): function p_assignment_expression (line 563) | def p_assignment_expression(p): function p_assignment_operator (line 579) | def p_assignment_operator(p): function p_expression (line 595) | def p_expression(p): function p_constant_expression (line 603) | def p_constant_expression(p): function p_declaration (line 609) | def p_declaration(p): function p_declaration_impl (line 617) | def p_declaration_impl(p): function p_declaration_specifier_list (line 637) | def p_declaration_specifier_list(p): function p_declaration_specifier (line 651) | def p_declaration_specifier(p): function p_init_declarator_list (line 660) | def p_init_declarator_list(p): function p_init_declarator (line 670) | def p_init_declarator(p): function p_storage_class_specifier (line 682) | def p_storage_class_specifier(p): function p_type_specifier (line 692) | def p_type_specifier(p): function p_struct_or_union_specifier (line 713) | def p_struct_or_union_specifier(p): function p_struct_or_union (line 742) | def p_struct_or_union(p): function p_gcc_attributes (line 749) | def p_gcc_attributes(p): function p_gcc_attribute (line 761) | def p_gcc_attribute(p): function p_gcc_attrib_list (line 768) | def p_gcc_attrib_list(p): function p_gcc_attrib (line 778) | def p_gcc_attrib(p): function p_member_declaration_list (line 793) | def p_member_declaration_list(p): function p_member_declaration (line 803) | def p_member_declaration(p): function p_specifier_qualifier_list (line 825) | def p_specifier_qualifier_list(p): function p_specifier_qualifier (line 835) | def p_specifier_qualifier(p): function p_member_declarator_list (line 842) | def p_member_declarator_list(p): function p_member_declarator (line 852) | def p_member_declarator(p): function p_enum_specifier (line 869) | def p_enum_specifier(p): function p_enumerator_list (line 885) | def p_enumerator_list(p): function p_enumerator_list_iso (line 894) | def p_enumerator_list_iso(p): function p_enumerator (line 904) | def p_enumerator(p): function p_type_qualifier (line 914) | def p_type_qualifier(p): function p_function_specifier (line 922) | def p_function_specifier(p): function p_declarator (line 928) | def p_declarator(p): function p_direct_declarator (line 943) | def p_direct_declarator(p): function p_pointer (line 979) | def p_pointer(p): function p_type_qualifier_list (line 1004) | def p_type_qualifier_list(p): function p_parameter_type_list (line 1016) | def p_parameter_type_list(p): function p_parameter_list (line 1026) | def p_parameter_list(p): function p_parameter_declaration (line 1036) | def p_parameter_declaration(p): function p_identifier_list (line 1054) | def p_identifier_list(p): function p_type_name (line 1068) | def p_type_name(p): function p_abstract_declarator (line 1085) | def p_abstract_declarator(p): function p_direct_abstract_declarator (line 1114) | def p_direct_abstract_declarator(p): function p_initializer (line 1161) | def p_initializer(p): function p_initializer_list (line 1168) | def p_initializer_list(p): function p_statement (line 1174) | def p_statement(p): function p_labeled_statement (line 1184) | def p_labeled_statement(p): function p_compound_statement (line 1191) | def p_compound_statement(p): function p_compound_statement_error (line 1199) | def p_compound_statement_error(p): function p_declaration_list (line 1205) | def p_declaration_list(p): function p_statement_list (line 1211) | def p_statement_list(p): function p_expression_statement (line 1217) | def p_expression_statement(p): function p_expression_statement_error (line 1223) | def p_expression_statement_error(p): function p_selection_statement (line 1229) | def p_selection_statement(p): function p_iteration_statement (line 1236) | def p_iteration_statement(p): function p_jump_statement (line 1244) | def p_jump_statement(p): function p_external_declaration (line 1253) | def p_external_declaration(p): function p_function_definition (line 1260) | def p_function_definition(p): function p_directive (line 1269) | def p_directive(p): function p_define (line 1276) | def p_define(p): function p_define_error (line 1313) | def p_define_error(p): function p_undefine (line 1341) | def p_undefine(p): function p_macro_parameter_list (line 1352) | def p_macro_parameter_list(p): function p_error (line 1363) | def p_error(t): function p_pragma (line 1377) | def p_pragma(p): function p_pragma_pack (line 1383) | def p_pragma_pack(p): function p_pragma_pack_stack_args (line 1409) | def p_pragma_pack_stack_args(p): function p_pragma_directive_list (line 1433) | def p_pragma_directive_list(p): function p_pragma_directive (line 1443) | def p_pragma_directive(p): function main (line 1450) | def main(): FILE: ctypesgen/parser/cparser.py class CLexer (line 20) | class CLexer(object): method __init__ (line 21) | def __init__(self, cparser): method input (line 28) | def input(self, tokens): method token (line 32) | def token(self): class CParser (line 80) | class CParser(object): method __init__ (line 87) | def __init__(self, options): method parse (line 112) | def parse(self, filename, debug=False): method handle_error (line 128) | def handle_error(self, message, filename, lineno): method handle_pp_error (line 137) | def handle_pp_error(self, message): method handle_status (line 145) | def handle_status(self, message): method handle_define (line 152) | def handle_define(self, name, params, value, filename, lineno): method handle_define_constant (line 161) | def handle_define_constant(self, name, value, filename, lineno): method handle_define_macro (line 168) | def handle_define_macro(self, name, params, value, filename, lineno): method handle_undefine (line 176) | def handle_undefine(self, name, filename, lineno): method impl_handle_declaration (line 182) | def impl_handle_declaration(self, declaration, filename, lineno): method handle_declaration (line 197) | def handle_declaration(self, declaration, filename, lineno): class DebugCParser (line 206) | class DebugCParser(CParser): method handle_define (line 211) | def handle_define(self, name, value, filename, lineno): method handle_define_constant (line 214) | def handle_define_constant(self, name, value, filename, lineno): method handle_declaration (line 217) | def handle_declaration(self, declaration, filename, lineno): method get_ctypes_type (line 220) | def get_ctypes_type(self, typ, declarator): method handle_define_unparseable (line 223) | def handle_define_unparseable(self, name, params, value, filename, lin... FILE: ctypesgen/parser/ctypesparser.py function make_enum_from_specifier (line 41) | def make_enum_from_specifier(specifier): function get_decl_id (line 68) | def get_decl_id(decl): class CtypesParser (line 78) | class CtypesParser(CParser): method __init__ (line 84) | def __init__(self, options): method make_struct_from_specifier (line 90) | def make_struct_from_specifier(self, specifier): method get_ctypes_type (line 116) | def get_ctypes_type(self, typ, declarator, check_qualifiers=False): method handle_declaration (line 218) | def handle_declaration(self, declaration, filename, lineno): method handle_ctypes_new_type (line 244) | def handle_ctypes_new_type(self, ctype, filename, lineno): method handle_ctypes_typedef (line 247) | def handle_ctypes_typedef(self, name, ctype, filename, lineno): method handle_ctypes_function (line 250) | def handle_ctypes_function( method handle_ctypes_variable (line 255) | def handle_ctypes_variable(self, name, ctype, filename, lineno): FILE: ctypesgen/parser/datacollectingparser.py class DataCollectingParser (line 28) | class DataCollectingParser(ctypesparser.CtypesParser, CtypesTypeVisitor): method __init__ (line 35) | def __init__(self, headers, options): method parse (line 70) | def parse(self): method handle_define_constant (line 86) | def handle_define_constant(self, name, expr, filename, lineno): method handle_define_unparseable (line 91) | def handle_define_unparseable(self, name, params, value, filename, lin... method handle_define_macro (line 104) | def handle_define_macro(self, name, params, expr, filename, lineno): method handle_undefine (line 109) | def handle_undefine(self, macro, filename, lineno): method handle_ctypes_typedef (line 113) | def handle_ctypes_typedef(self, name, ctype, filename, lineno): method handle_ctypes_new_type (line 123) | def handle_ctypes_new_type(self, ctype, filename, lineno): method handle_ctypes_function (line 130) | def handle_ctypes_function( method handle_ctypes_variable (line 146) | def handle_ctypes_variable(self, name, ctype, filename, lineno): method handle_struct (line 156) | def handle_struct(self, ctypestruct, filename, lineno): method handle_enum (line 220) | def handle_enum(self, ctypeenum, filename, lineno): method handle_macro (line 273) | def handle_macro(self, name, params, expr, filename, lineno): method handle_error (line 318) | def handle_error(self, message, filename, lineno): method handle_pp_error (line 322) | def handle_pp_error(self, message): method handle_status (line 326) | def handle_status(self, message): method visit_struct (line 330) | def visit_struct(self, struct): method visit_enum (line 333) | def visit_enum(self, enum): method data (line 336) | def data(self): FILE: ctypesgen/parser/lex.py class LexError (line 57) | class LexError(Exception): method __init__ (line 58) | def __init__(self, message, s): class LexToken (line 64) | class LexToken(object): method __str__ (line 65) | def __str__(self): method __repr__ (line 68) | def __repr__(self): class PlyLogger (line 75) | class PlyLogger(object): method __init__ (line 76) | def __init__(self, f): method critical (line 79) | def critical(self, msg, *args, **kwargs): method warning (line 82) | def warning(self, msg, *args, **kwargs): method error (line 85) | def error(self, msg, *args, **kwargs): class NullLogger (line 93) | class NullLogger(object): method __getattribute__ (line 94) | def __getattribute__(self, name): method __call__ (line 97) | def __call__(self, *args, **kwargs): class Lexer (line 115) | class Lexer: method __init__ (line 116) | def __init__(self): method clone (line 144) | def clone(self, object=None): method writetab (line 174) | def writetab(self, lextab, outputdir=''): method readtab (line 211) | def readtab(self, tabfile, fdict): method input (line 251) | def input(self, s): method begin (line 263) | def begin(self, state): method push_state (line 276) | def push_state(self, state): method pop_state (line 283) | def pop_state(self): method current_state (line 289) | def current_state(self): method skip (line 295) | def skip(self, n): method token (line 305) | def token(self): method __iter__ (line 415) | def __iter__(self): method next (line 418) | def next(self): function _get_regex (line 439) | def _get_regex(func): function get_caller_module_dict (line 449) | def get_caller_module_dict(levels): function _funcs_to_names (line 462) | def _funcs_to_names(funclist, namelist): function _names_to_funcs (line 477) | def _names_to_funcs(namelist, fdict): function _form_master_re (line 493) | def _form_master_re(relist, reflags, ldict, toknames): function _statetoken (line 533) | def _statetoken(s, names): class LexerReflect (line 557) | class LexerReflect(object): method __init__ (line 558) | def __init__(self, ldict, log=None, reflags=0): method get_all (line 569) | def get_all(self): method validate_all (line 576) | def validate_all(self): method get_tokens (line 583) | def get_tokens(self): method validate_tokens (line 603) | def validate_tokens(self): method get_literals (line 614) | def get_literals(self): method validate_literals (line 620) | def validate_literals(self): method get_states (line 631) | def get_states(self): method get_rules (line 662) | def get_rules(self): method validate_rules (line 728) | def validate_rules(self): method validate_module (line 831) | def validate_module(self, module): function lex (line 862) | def lex(module=None, object=None, debug=False, optimize=False, lextab='l... function runmain (line 1054) | def runmain(lexer=None, data=None): function TOKEN (line 1088) | def TOKEN(r): FILE: ctypesgen/parser/pplexer.py class StringLiteral (line 73) | class StringLiteral(str): method __new__ (line 74) | def __new__(cls, value): function t_ANY_directive (line 141) | def t_ANY_directive(t): function t_ANY_f_const_1 (line 149) | def t_ANY_f_const_1(t): function t_ANY_f_const_2 (line 159) | def t_ANY_f_const_2(t): function t_ANY_f_const_3 (line 169) | def t_ANY_f_const_3(t): function t_ANY_f_const_4 (line 179) | def t_ANY_f_const_4(t): function t_ANY_f_const_5 (line 187) | def t_ANY_f_const_5(t): function t_ANY_f_const_6 (line 195) | def t_ANY_f_const_6(t): function t_ANY_i_const_bin (line 203) | def t_ANY_i_const_bin(t): function t_ANY_i_const_hex (line 211) | def t_ANY_i_const_hex(t): function t_ANY_i_const_dec (line 219) | def t_ANY_i_const_dec(t): function t_ANY_i_const_oct (line 227) | def t_ANY_i_const_oct(t): function t_ANY_character_constant (line 239) | def t_ANY_character_constant(t): function t_ANY_string_literal (line 248) | def t_ANY_string_literal(t): function t_INITIAL_identifier (line 255) | def t_INITIAL_identifier(t): function t_DEFINE_identifier (line 261) | def t_DEFINE_identifier(t): function t_INITIAL_newline (line 292) | def t_INITIAL_newline(t): function t_INITIAL_pp_undefine (line 298) | def t_INITIAL_pp_undefine(t): function t_INITIAL_pp_define (line 307) | def t_INITIAL_pp_define(t): function t_INITIAL_pragma (line 316) | def t_INITIAL_pragma(t): function t_PRAGMA_pack (line 323) | def t_PRAGMA_pack(t): function t_PRAGMA_newline (line 329) | def t_PRAGMA_newline(t): function t_PRAGMA_identifier (line 337) | def t_PRAGMA_identifier(t): function t_PRAGMA_error (line 342) | def t_PRAGMA_error(t): function t_DEFINE_newline (line 350) | def t_DEFINE_newline(t): function t_DEFINE_pp_param_op (line 363) | def t_DEFINE_pp_param_op(t): function t_INITIAL_error (line 371) | def t_INITIAL_error(t): function t_DEFINE_error (line 376) | def t_DEFINE_error(t): FILE: ctypesgen/parser/preprocessor.py class PreprocessorLexer (line 28) | class PreprocessorLexer(lex.Lexer): method __init__ (line 29) | def __init__(self): method input (line 34) | def input(self, data, filename=None): method token (line 41) | def token(self): class PreprocessorParser (line 57) | class PreprocessorParser(object): method __init__ (line 58) | def __init__(self, options, cparser): method parse (line 89) | def parse(self, filename): FILE: ctypesgen/parser/yacc.py class PlyLogger (line 108) | class PlyLogger(object): method __init__ (line 109) | def __init__(self, f): method debug (line 112) | def debug(self, msg, *args, **kwargs): method warning (line 117) | def warning(self, msg, *args, **kwargs): method error (line 120) | def error(self, msg, *args, **kwargs): class NullLogger (line 126) | class NullLogger(object): method __getattribute__ (line 127) | def __getattribute__(self, name): method __call__ (line 130) | def __call__(self, *args, **kwargs): class YaccError (line 134) | class YaccError(Exception): function format_result (line 138) | def format_result(r): function format_stack_entry (line 148) | def format_stack_entry(r): function errok (line 174) | def errok(): function restart (line 178) | def restart(): function token (line 182) | def token(): function call_errorfunc (line 187) | def call_errorfunc(errorfunc, token, parser): class YaccSymbol (line 216) | class YaccSymbol: method __str__ (line 217) | def __str__(self): method __repr__ (line 220) | def __repr__(self): class YaccProduction (line 232) | class YaccProduction: method __init__ (line 233) | def __init__(self, s, stack=None): method __getitem__ (line 239) | def __getitem__(self, n): method __setitem__ (line 247) | def __setitem__(self, n, v): method __getslice__ (line 250) | def __getslice__(self, i, j): method __len__ (line 253) | def __len__(self): method lineno (line 256) | def lineno(self, n): method set_lineno (line 259) | def set_lineno(self, n, lineno): method linespan (line 262) | def linespan(self, n): method lexpos (line 267) | def lexpos(self, n): method set_lexpos (line 270) | def set_lexpos(self, n, lexpos): method lexspan (line 273) | def lexspan(self, n): method error (line 278) | def error(self): class LRParser (line 287) | class LRParser: method __init__ (line 288) | def __init__(self, lrtab, errorf): method errok (line 296) | def errok(self): method restart (line 299) | def restart(self): method set_defaulted_states (line 315) | def set_defaulted_states(self): method disable_defaulted_states (line 322) | def disable_defaulted_states(self): method parse (line 325) | def parse(self, input=None, lexer=None, debug=False, tracking=False, t... method parsedebug (line 350) | def parsedebug(self, input=None, lexer=None, debug=False, tracking=Fal... method parseopt (line 699) | def parseopt(self, input=None, lexer=None, debug=False, tracking=False... method parseopt_notrack (line 1007) | def parseopt_notrack(self, input=None, lexer=None, debug=False, tracki... class Production (line 1315) | class Production(object): method __init__ (line 1317) | def __init__(self, number, name, prod, precedence=('right', 0), func=N... method __str__ (line 1347) | def __str__(self): method __repr__ (line 1350) | def __repr__(self): method __len__ (line 1353) | def __len__(self): method __nonzero__ (line 1356) | def __nonzero__(self): method __getitem__ (line 1359) | def __getitem__(self, index): method lr_item (line 1363) | def lr_item(self, n): method bind (line 1379) | def bind(self, pdict): class MiniProduction (line 1387) | class MiniProduction(object): method __init__ (line 1388) | def __init__(self, str, name, len, func, file, line): method __str__ (line 1397) | def __str__(self): method __repr__ (line 1400) | def __repr__(self): method bind (line 1404) | def bind(self, pdict): class LRItem (line 1433) | class LRItem(object): method __init__ (line 1434) | def __init__(self, p, n): method __str__ (line 1445) | def __str__(self): method __repr__ (line 1452) | def __repr__(self): function rightmost_terminal (line 1460) | def rightmost_terminal(symbols, terminals): class GrammarError (line 1476) | class GrammarError(YaccError): class Grammar (line 1479) | class Grammar(object): method __init__ (line 1480) | def __init__(self, terminals): method __len__ (line 1516) | def __len__(self): method __getitem__ (line 1519) | def __getitem__(self, index): method set_precedence (line 1530) | def set_precedence(self, term, assoc, level): method add_production (line 1555) | def add_production(self, prodname, syms, func=None, file='', line=0): method set_start (line 1639) | def set_start(self, start=None): method find_unreachable (line 1655) | def find_unreachable(self): method infinite_cycles (line 1678) | def infinite_cycles(self): method undefined_symbols (line 1742) | def undefined_symbols(self): method unused_terminals (line 1759) | def unused_terminals(self): method unused_rules (line 1774) | def unused_rules(self): method unused_precedence (line 1791) | def unused_precedence(self): method _first (line 1807) | def _first(self, beta): method compute_first (line 1842) | def compute_first(self): method compute_follow (line 1879) | def compute_follow(self, start=None): method build_lritems (line 1938) | def build_lritems(self): class VersionError (line 1974) | class VersionError(YaccError): class LRTable (line 1977) | class LRTable(object): method __init__ (line 1978) | def __init__(self): method read_table (line 1984) | def read_table(self, module): method read_pickle (line 2004) | def read_pickle(self, filename): method bind_callables (line 2032) | def bind_callables(self, pdict): function digraph (line 2061) | def digraph(X, R, FP): function traverse (line 2072) | def traverse(x, N, stack, F, X, R, FP): class LALRError (line 2095) | class LALRError(YaccError): class LRGeneratedTable (line 2105) | class LRGeneratedTable(LRTable): method __init__ (line 2106) | def __init__(self, grammar, method='LALR', log=None): method lr0_closure (line 2143) | def lr0_closure(self, I): method lr0_goto (line 2169) | def lr0_goto(self, I, x): method lr0_items (line 2204) | def lr0_items(self): method compute_nullable_nonterminals (line 2260) | def compute_nullable_nonterminals(self): method find_nonterminal_transitions (line 2289) | def find_nonterminal_transitions(self, C): method dr_relation (line 2309) | def dr_relation(self, C, trans, nullable): method reads_relation (line 2333) | def reads_relation(self, C, trans, empty): method compute_lookback_includes (line 2376) | def compute_lookback_includes(self, C, trans, nullable): method compute_read_sets (line 2456) | def compute_read_sets(self, C, ntrans, nullable): method compute_follow_sets (line 2478) | def compute_follow_sets(self, ntrans, readsets, inclsets): method add_lookaheads (line 2496) | def add_lookaheads(self, lookbacks, followset): method add_lalr_lookaheads (line 2514) | def add_lalr_lookaheads(self, C): method lr_parse_table (line 2538) | def lr_parse_table(self): method write_table (line 2731) | def write_table(self, tabmodule, outputdir='', signature=''): method pickle_table (line 2854) | def pickle_table(self, filename, signature=''): function get_caller_module_dict (line 2889) | def get_caller_module_dict(levels): function parse_grammar (line 2901) | def parse_grammar(doc, file, line): class ParserReflect (line 2942) | class ParserReflect(object): method __init__ (line 2943) | def __init__(self, pdict, log=None): method get_all (line 2958) | def get_all(self): method validate_all (line 2966) | def validate_all(self): method signature (line 2976) | def signature(self): method validate_modules (line 3003) | def validate_modules(self): method get_start (line 3028) | def get_start(self): method validate_start (line 3032) | def validate_start(self): method get_error_func (line 3038) | def get_error_func(self): method validate_error_func (line 3042) | def validate_error_func(self): method get_tokens (line 3064) | def get_tokens(self): method validate_tokens (line 3084) | def validate_tokens(self): method get_precedence (line 3098) | def get_precedence(self): method validate_precedence (line 3102) | def validate_precedence(self): method get_pfunctions (line 3133) | def get_pfunctions(self): method validate_pfunctions (line 3154) | def validate_pfunctions(self): function yacc (line 3220) | def yacc(method='LALR', debug=yaccdebug, module=None, tabmodule=tab_modu... FILE: ctypesgen/printer_json/printer.py function todict (line 11) | def todict(obj, classkey="Klass"): class WrapperPrinter (line 37) | class WrapperPrinter: method __init__ (line 38) | def __init__(self, outpath, options, data): method __del__ (line 70) | def __del__(self): method print_group (line 73) | def print_group(self, list, name, function): method print_library (line 77) | def print_library(self, library): method print_constant (line 80) | def print_constant(self, constant): method print_undef (line 83) | def print_undef(self, undef): method print_typedef (line 86) | def print_typedef(self, typedef): method print_struct (line 89) | def print_struct(self, struct): method print_struct_members (line 100) | def print_struct_members(self, struct): method print_enum (line 103) | def print_enum(self, enum): method print_function (line 113) | def print_function(self, function): method print_variable (line 126) | def print_variable(self, variable): method print_macro (line 132) | def print_macro(self, macro): FILE: ctypesgen/printer_python/preamble.py class UserString (line 19) | class UserString: method __init__ (line 20) | def __init__(self, seq): method __bytes__ (line 28) | def __bytes__(self): method __str__ (line 31) | def __str__(self): method __repr__ (line 34) | def __repr__(self): method __int__ (line 37) | def __int__(self): method __long__ (line 40) | def __long__(self): method __float__ (line 43) | def __float__(self): method __complex__ (line 46) | def __complex__(self): method __hash__ (line 49) | def __hash__(self): method __le__ (line 52) | def __le__(self, string): method __lt__ (line 58) | def __lt__(self, string): method __ge__ (line 64) | def __ge__(self, string): method __gt__ (line 70) | def __gt__(self, string): method __eq__ (line 76) | def __eq__(self, string): method __ne__ (line 82) | def __ne__(self, string): method __contains__ (line 88) | def __contains__(self, char): method __len__ (line 91) | def __len__(self): method __getitem__ (line 94) | def __getitem__(self, index): method __getslice__ (line 97) | def __getslice__(self, start, end): method __add__ (line 102) | def __add__(self, other): method __radd__ (line 110) | def __radd__(self, other): method __mul__ (line 116) | def __mul__(self, n): method __mod__ (line 121) | def __mod__(self, args): method capitalize (line 125) | def capitalize(self): method center (line 128) | def center(self, width, *args): method count (line 131) | def count(self, sub, start=0, end=sys.maxsize): method decode (line 134) | def decode(self, encoding=None, errors=None): # XXX improve this? method encode (line 143) | def encode(self, encoding=None, errors=None): # XXX improve this? method endswith (line 152) | def endswith(self, suffix, start=0, end=sys.maxsize): method expandtabs (line 155) | def expandtabs(self, tabsize=8): method find (line 158) | def find(self, sub, start=0, end=sys.maxsize): method index (line 161) | def index(self, sub, start=0, end=sys.maxsize): method isalpha (line 164) | def isalpha(self): method isalnum (line 167) | def isalnum(self): method isdecimal (line 170) | def isdecimal(self): method isdigit (line 173) | def isdigit(self): method islower (line 176) | def islower(self): method isnumeric (line 179) | def isnumeric(self): method isspace (line 182) | def isspace(self): method istitle (line 185) | def istitle(self): method isupper (line 188) | def isupper(self): method join (line 191) | def join(self, seq): method ljust (line 194) | def ljust(self, width, *args): method lower (line 197) | def lower(self): method lstrip (line 200) | def lstrip(self, chars=None): method partition (line 203) | def partition(self, sep): method replace (line 206) | def replace(self, old, new, maxsplit=-1): method rfind (line 209) | def rfind(self, sub, start=0, end=sys.maxsize): method rindex (line 212) | def rindex(self, sub, start=0, end=sys.maxsize): method rjust (line 215) | def rjust(self, width, *args): method rpartition (line 218) | def rpartition(self, sep): method rstrip (line 221) | def rstrip(self, chars=None): method split (line 224) | def split(self, sep=None, maxsplit=-1): method rsplit (line 227) | def rsplit(self, sep=None, maxsplit=-1): method splitlines (line 230) | def splitlines(self, keepends=0): method startswith (line 233) | def startswith(self, prefix, start=0, end=sys.maxsize): method strip (line 236) | def strip(self, chars=None): method swapcase (line 239) | def swapcase(self): method title (line 242) | def title(self): method translate (line 245) | def translate(self, *args): method upper (line 248) | def upper(self): method zfill (line 251) | def zfill(self, width): class MutableString (line 255) | class MutableString(UserString): method __init__ (line 271) | def __init__(self, string=""): method __hash__ (line 274) | def __hash__(self): method __setitem__ (line 277) | def __setitem__(self, index, sub): method __delitem__ (line 284) | def __delitem__(self, index): method __setslice__ (line 291) | def __setslice__(self, start, end, sub): method __delslice__ (line 301) | def __delslice__(self, start, end): method immutable (line 306) | def immutable(self): method __iadd__ (line 309) | def __iadd__(self, other): method __imul__ (line 318) | def __imul__(self, n): class String (line 323) | class String(MutableString, ctypes.Union): method __init__ (line 326) | def __init__(self, obj=b""): method __len__ (line 332) | def __len__(self): method from_param (line 335) | def from_param(cls, obj): function ReturnString (line 375) | def ReturnString(obj, func=None, arguments=None): function UNCHECKED (line 386) | def UNCHECKED(type): class _variadic_function (line 395) | class _variadic_function(object): method __init__ (line 396) | def __init__(self, func, restype, argtypes, errcheck): method _as_parameter_ (line 403) | def _as_parameter_(self): method __call__ (line 407) | def __call__(self, *args): function ord_if_char (line 417) | def ord_if_char(value): FILE: ctypesgen/printer_python/printer.py class WrapperPrinter (line 19) | class WrapperPrinter: method __init__ (line 20) | def __init__(self, outpath, options, data): method __del__ (line 64) | def __del__(self): method print_group (line 67) | def print_group(self, list, name, function): method srcinfo (line 79) | def srcinfo(self, src): method template_subs (line 93) | def template_subs(self): method print_header (line 110) | def print_header(self): method print_preamble (line 132) | def print_preamble(self): method _copy_preamble_loader_files (line 145) | def _copy_preamble_loader_files(self, path): method print_loader (line 189) | def print_loader(self): method print_library (line 205) | def print_library(self, library): method print_module (line 208) | def print_module(self, module): method print_constant (line 211) | def print_constant(self, constant): method print_undef (line 215) | def print_undef(self, undef): method print_typedef (line 225) | def print_typedef(self, typedef): method print_struct (line 229) | def print_struct(self, struct): method print_struct_members (line 234) | def print_struct_members(self, struct): method print_enum (line 289) | def print_enum(self, enum): method print_function (line 294) | def print_function(self, function): method print_fixed_function (line 300) | def print_fixed_function(self, function): method print_variadic_function (line 355) | def print_variadic_function(self, function): method print_variable (line 394) | def print_variable(self, variable): method print_macro (line 420) | def print_macro(self, macro): method print_simple_macro (line 428) | def print_simple_macro(self, macro): method print_func_macro (line 440) | def print_func_macro(self, macro): method strip_prefixes (line 449) | def strip_prefixes(self): method insert_file (line 475) | def insert_file(self, filename): FILE: ctypesgen/processor/dependencies.py function find_dependencies (line 10) | def find_dependencies(data, opts): FILE: ctypesgen/processor/operations.py function automatically_typedef_structs (line 23) | def automatically_typedef_structs(data, options): function remove_NULL (line 38) | def remove_NULL(data, options): function remove_descriptions_in_system_headers (line 47) | def remove_descriptions_in_system_headers(data, opts): function remove_macros (line 67) | def remove_macros(data, opts): function filter_by_regexes_exclude (line 74) | def filter_by_regexes_exclude(data, opts): function filter_by_regexes_include (line 84) | def filter_by_regexes_include(data, opts): function fix_conflicting_names (line 95) | def fix_conflicting_names(data, opts): function find_source_libraries (line 255) | def find_source_libraries(data, opts): FILE: ctypesgen/processor/pipeline.py function process (line 52) | def process(data, options): function calculate_final_inclusion (line 73) | def calculate_final_inclusion(data, opts): function print_errors_encountered (line 110) | def print_errors_encountered(data, opts): FILE: ctypesgen/version.py function version_tuple (line 14) | def version_tuple(v): function read_file_version (line 25) | def read_file_version(): function version (line 32) | def version(): function version_number (line 50) | def version_number(): function compatible (line 54) | def compatible(v0, v1): function write_version_file (line 60) | def write_version_file(v=None): FILE: demo/demoapp.c function main (line 17) | int main(int argc, char **argv) FILE: demo/demoapp.py function do_demo (line 19) | def do_demo(): function main (line 28) | def main(argv=None): FILE: demo/demolib.c function trivial_add (line 17) | int trivial_add(int a, int b) FILE: demo/pydemolib.py class UserString (line 31) | class UserString: method __init__ (line 32) | def __init__(self, seq): method __bytes__ (line 40) | def __bytes__(self): method __str__ (line 43) | def __str__(self): method __repr__ (line 46) | def __repr__(self): method __int__ (line 49) | def __int__(self): method __long__ (line 52) | def __long__(self): method __float__ (line 55) | def __float__(self): method __complex__ (line 58) | def __complex__(self): method __hash__ (line 61) | def __hash__(self): method __le__ (line 64) | def __le__(self, string): method __lt__ (line 70) | def __lt__(self, string): method __ge__ (line 76) | def __ge__(self, string): method __gt__ (line 82) | def __gt__(self, string): method __eq__ (line 88) | def __eq__(self, string): method __ne__ (line 94) | def __ne__(self, string): method __contains__ (line 100) | def __contains__(self, char): method __len__ (line 103) | def __len__(self): method __getitem__ (line 106) | def __getitem__(self, index): method __getslice__ (line 109) | def __getslice__(self, start, end): method __add__ (line 114) | def __add__(self, other): method __radd__ (line 122) | def __radd__(self, other): method __mul__ (line 128) | def __mul__(self, n): method __mod__ (line 133) | def __mod__(self, args): method capitalize (line 137) | def capitalize(self): method center (line 140) | def center(self, width, *args): method count (line 143) | def count(self, sub, start=0, end=sys.maxsize): method decode (line 146) | def decode(self, encoding=None, errors=None): # XXX improve this? method encode (line 155) | def encode(self, encoding=None, errors=None): # XXX improve this? method endswith (line 164) | def endswith(self, suffix, start=0, end=sys.maxsize): method expandtabs (line 167) | def expandtabs(self, tabsize=8): method find (line 170) | def find(self, sub, start=0, end=sys.maxsize): method index (line 173) | def index(self, sub, start=0, end=sys.maxsize): method isalpha (line 176) | def isalpha(self): method isalnum (line 179) | def isalnum(self): method isdecimal (line 182) | def isdecimal(self): method isdigit (line 185) | def isdigit(self): method islower (line 188) | def islower(self): method isnumeric (line 191) | def isnumeric(self): method isspace (line 194) | def isspace(self): method istitle (line 197) | def istitle(self): method isupper (line 200) | def isupper(self): method join (line 203) | def join(self, seq): method ljust (line 206) | def ljust(self, width, *args): method lower (line 209) | def lower(self): method lstrip (line 212) | def lstrip(self, chars=None): method partition (line 215) | def partition(self, sep): method replace (line 218) | def replace(self, old, new, maxsplit=-1): method rfind (line 221) | def rfind(self, sub, start=0, end=sys.maxsize): method rindex (line 224) | def rindex(self, sub, start=0, end=sys.maxsize): method rjust (line 227) | def rjust(self, width, *args): method rpartition (line 230) | def rpartition(self, sep): method rstrip (line 233) | def rstrip(self, chars=None): method split (line 236) | def split(self, sep=None, maxsplit=-1): method rsplit (line 239) | def rsplit(self, sep=None, maxsplit=-1): method splitlines (line 242) | def splitlines(self, keepends=0): method startswith (line 245) | def startswith(self, prefix, start=0, end=sys.maxsize): method strip (line 248) | def strip(self, chars=None): method swapcase (line 251) | def swapcase(self): method title (line 254) | def title(self): method translate (line 257) | def translate(self, *args): method upper (line 260) | def upper(self): method zfill (line 263) | def zfill(self, width): class MutableString (line 267) | class MutableString(UserString): method __init__ (line 283) | def __init__(self, string=""): method __hash__ (line 286) | def __hash__(self): method __setitem__ (line 289) | def __setitem__(self, index, sub): method __delitem__ (line 296) | def __delitem__(self, index): method __setslice__ (line 303) | def __setslice__(self, start, end, sub): method __delslice__ (line 313) | def __delslice__(self, start, end): method immutable (line 318) | def immutable(self): method __iadd__ (line 321) | def __iadd__(self, other): method __imul__ (line 330) | def __imul__(self, n): class String (line 335) | class String(MutableString, ctypes.Union): method __init__ (line 339) | def __init__(self, obj=b""): method __len__ (line 345) | def __len__(self): method from_param (line 348) | def from_param(cls, obj): function ReturnString (line 388) | def ReturnString(obj, func=None, arguments=None): function UNCHECKED (line 399) | def UNCHECKED(type): class _variadic_function (line 408) | class _variadic_function(object): method __init__ (line 409) | def __init__(self, func, restype, argtypes, errcheck): method _as_parameter_ (line 416) | def _as_parameter_(self): method __call__ (line 420) | def __call__(self, *args): function ord_if_char (line 430) | def ord_if_char(value): function _environ_path (line 493) | def _environ_path(name): class LibraryLoader (line 500) | class LibraryLoader: class Lookup (line 509) | class Lookup: method __init__ (line 514) | def __init__(self, path): method get (line 518) | def get(self, name, calling_convention="cdecl"): method has (line 528) | def has(self, name, calling_convention="cdecl"): method __getattr__ (line 534) | def __getattr__(self, name): method __init__ (line 537) | def __init__(self): method __call__ (line 540) | def __call__(self, libname): method getpaths (line 553) | def getpaths(self, libname): method getplatformpaths (line 591) | def getplatformpaths(self, _libname): # pylint: disable=no-self-use class DarwinLibraryLoader (line 599) | class DarwinLibraryLoader(LibraryLoader): class Lookup (line 612) | class Lookup(LibraryLoader.Lookup): method getplatformpaths (line 623) | def getplatformpaths(self, libname): method getdirs (line 634) | def getdirs(libname): class PosixLibraryLoader (line 673) | class PosixLibraryLoader(LibraryLoader): class _Directories (line 682) | class _Directories(dict): method __init__ (line 685) | def __init__(self): method add (line 689) | def add(self, directory): method extend (line 700) | def extend(self, directories): method ordered (line 705) | def ordered(self): method _get_ld_so_conf_dirs (line 709) | def _get_ld_so_conf_dirs(self, conf, dirs): method _create_ld_so_cache (line 731) | def _create_ld_so_cache(self): method getplatformpaths (line 801) | def getplatformpaths(self, libname): class WindowsLibraryLoader (line 816) | class WindowsLibraryLoader(LibraryLoader): class Lookup (line 821) | class Lookup(LibraryLoader.Lookup): method __init__ (line 824) | def __init__(self, path): function add_library_search_dirs (line 844) | def add_library_search_dirs(other_dirs): FILE: tests/ctypesgentest.py function redirect (line 29) | def redirect(stdout=sys.stdout): function generate (line 38) | def generate(header, **more_options): function cleanup (line 98) | def cleanup(filepattern="temp.*"): function set_logging_level (line 104) | def set_logging_level(log_level): function ctypesgen_version (line 108) | def ctypesgen_version(): function sort_anon_fn (line 112) | def sort_anon_fn(anon_tag): class JsonHelper (line 116) | class JsonHelper: method __init__ (line 126) | def __init__(self): method prepare (line 129) | def prepare(self, json): method _replace_anon_tag (line 144) | def _replace_anon_tag(self, json, tag, new_tag): method _search_anon_tags (line 164) | def _search_anon_tags(self, json): function generate_common (line 187) | def generate_common(): function cleanup_common (line 201) | def cleanup_common(): function _compile_common (line 208) | def _compile_common(common_lib): function _generate_common (line 223) | def _generate_common(file_name, common_lib, embed_preamble=True): function _create_common_files (line 240) | def _create_common_files(): FILE: tests/testsuite.py function compare_json (line 48) | def compare_json(test_instance, json, json_ans, verbose=False): function compute_packed (line 91) | def compute_packed(modulo, fields): class StdlibTest (line 102) | class StdlibTest(unittest.TestCase): method setUpClass (line 104) | def setUpClass(cls): method tearDownClass (line 117) | def tearDownClass(cls): method test_getenv_returns_string (line 121) | def test_getenv_returns_string(self): method test_getenv_returns_null (line 148) | def test_getenv_returns_null(self): class CommonHeaderTest (line 176) | class CommonHeaderTest(unittest.TestCase): method setUpClass (line 178) | def setUpClass(cls): method tearDownClass (line 182) | def tearDownClass(cls): method test_two_import_with_embedded_preamble (line 186) | def test_two_import_with_embedded_preamble(self): method test_one_import (line 194) | def test_one_import(self): method test_two_import (line 200) | def test_two_import(self): class StdBoolTest (line 209) | class StdBoolTest(unittest.TestCase): method setUpClass (line 213) | def setUpClass(cls): method tearDownClass (line 226) | def tearDownClass(cls): method test_stdbool_type (line 230) | def test_stdbool_type(self): class IntTypesTest (line 237) | class IntTypesTest(unittest.TestCase): method setUpClass (line 241) | def setUpClass(cls): method tearDownClass (line 260) | def tearDownClass(cls): method test_int_types (line 264) | def test_int_types(self): class SimpleMacrosTest (line 286) | class SimpleMacrosTest(unittest.TestCase): method setUpClass (line 290) | def setUpClass(cls): method _json (line 308) | def _json(self, name): method tearDownClass (line 315) | def tearDownClass(cls): method test_macro_constant_int (line 319) | def test_macro_constant_int(self): method test_macro_addition_json (line 326) | def test_macro_addition_json(self): method test_macro_addition (line 334) | def test_macro_addition(self): method test_macro_ternary_json (line 340) | def test_macro_ternary_json(self): method test_macro_ternary_true (line 354) | def test_macro_ternary_true(self): method test_macro_ternary_false (line 360) | def test_macro_ternary_false(self): method test_macro_ternary_true_complex (line 366) | def test_macro_ternary_true_complex(self): method test_macro_ternary_false_complex (line 372) | def test_macro_ternary_false_complex(self): method test_macro_string_compose (line 378) | def test_macro_string_compose(self): method test_macro_string_compose_json (line 384) | def test_macro_string_compose_json(self): method test_macro_math_multipler (line 393) | def test_macro_math_multipler(self): method test_macro_math_multiplier_json (line 399) | def test_macro_math_multiplier_json(self): method test_macro_math_minus (line 412) | def test_macro_math_minus(self): method test_macro_math_minus_json (line 418) | def test_macro_math_minus_json(self): method test_macro_math_divide (line 431) | def test_macro_math_divide(self): method test_macro_math_divide_json (line 437) | def test_macro_math_divide_json(self): method test_macro_math_mod (line 450) | def test_macro_math_mod(self): method test_macro_math_mod_json (line 456) | def test_macro_math_mod_json(self): method test_macro_subcall_simple (line 464) | def test_macro_subcall_simple(self): method test_macro_subcall_simple_json (line 470) | def test_macro_subcall_simple_json(self): method test_macro_subcall_simple_plus (line 478) | def test_macro_subcall_simple_plus(self): method test_macro_subcall_simple_plus_json (line 484) | def test_macro_subcall_simple_plus_json(self): method test_macro_subcall_minus (line 497) | def test_macro_subcall_minus(self): method test_macro_subcall_minus_json (line 504) | def test_macro_subcall_minus_json(self): method test_macro_subcall_minus_plus (line 517) | def test_macro_subcall_minus_plus(self): method test_macro_subcall_minus_plus_json (line 524) | def test_macro_subcall_minus_plus_json(self): class StructuresTest (line 538) | class StructuresTest(unittest.TestCase): method setUpClass (line 542) | def setUpClass(cls): method tearDownClass (line 637) | def tearDownClass(cls): method test_struct_json (line 641) | def test_struct_json(self): method test_fields (line 1960) | def test_fields(self): method test_pack (line 1974) | def test_pack(self): method test_pragma_pack (line 1993) | def test_pragma_pack(self): method test_typedef_vs_field_id (line 2012) | def test_typedef_vs_field_id(self): method test_anonymous_tag_uniformity (line 2022) | def test_anonymous_tag_uniformity(self): class MathTest (line 2032) | class MathTest(unittest.TestCase): method setUpClass (line 2036) | def setUpClass(cls): method tearDownClass (line 2052) | def tearDownClass(cls): method test_sin (line 2056) | def test_sin(self): method test_sqrt (line 2062) | def test_sqrt(self): method test_bad_args_string_not_number (line 2073) | def test_bad_args_string_not_number(self): method test_subcall_sin (line 2082) | def test_subcall_sin(self): class EnumTest (line 2089) | class EnumTest(unittest.TestCase): method setUpClass (line 2091) | def setUpClass(cls): method tearDownClass (line 2102) | def tearDownClass(cls): method test_enum (line 2106) | def test_enum(self): method test_enum_json (line 2110) | def test_enum_json(self): class PrototypeTest (line 2199) | class PrototypeTest(unittest.TestCase): method setUpClass (line 2201) | def setUpClass(cls): method tearDownClass (line 2214) | def tearDownClass(cls): method test_function_prototypes_json (line 2218) | def test_function_prototypes_json(self): class LongDoubleTest (line 2352) | class LongDoubleTest(unittest.TestCase): method setUpClass (line 2356) | def setUpClass(cls): method tearDownClass (line 2367) | def tearDownClass(cls): method test_longdouble_type (line 2371) | def test_longdouble_type(self): class MainTest (line 2380) | class MainTest(unittest.TestCase): method _exec (line 2394) | def _exec(args): method test_version (line 2400) | def test_version(self): method test_help (line 2407) | def test_help(self): method test_invalid_option (line 2417) | def test_invalid_option(self): class UncheckedTest (line 2428) | class UncheckedTest(unittest.TestCase): method setUpClass (line 2432) | def setUpClass(cls): method test_unchecked_prototype (line 2438) | def test_unchecked_prototype(self): method tearDownClass (line 2447) | def tearDownClass(cls): class ConstantsTest (line 2452) | class ConstantsTest(unittest.TestCase): method setUpClass (line 2456) | def setUpClass(cls): method tearDownClass (line 2487) | def tearDownClass(cls): method test_integer_constants (line 2491) | def test_integer_constants(self): method test_floating_constants (line 2502) | def test_floating_constants(self): method test_struct_fields (line 2511) | def test_struct_fields(self): method test_character_constants (line 2525) | def test_character_constants(self): class NULLTest (line 2530) | class NULLTest(unittest.TestCase): method setUpClass (line 2534) | def setUpClass(cls): method tearDownClass (line 2539) | def tearDownClass(cls): method test_null_type (line 2543) | def test_null_type(self): class MacromanEncodeTest (line 2549) | class MacromanEncodeTest(unittest.TestCase): method setUpClass (line 2556) | def setUpClass(cls): method tearDownClass (line 2576) | def tearDownClass(cls): method test_macroman_encoding_source (line 2581) | def test_macroman_encoding_source(self): function main (line 2587) | def main(argv=None):