123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376[@@@warning"-9-27"]includeCtypesletliftx=xopenCtypes_staticletrecfield:typeta.ttyp->string->atyp->(a,t)field=funsfnameftype->matchs,fnamewith|Struct({tag="yaml_parser_s";_}ass'),"error"->letf={ftype;fname;foffset=0}in(s'.fields<-BoxedFieldf::s'.fields;f)|Struct({tag="yaml_event_s";_}ass'),"end_mark"->letf={ftype;fname;foffset=80}in(s'.fields<-BoxedFieldf::s'.fields;f)|Struct({tag="yaml_event_s";_}ass'),"start_mark"->letf={ftype;fname;foffset=56}in(s'.fields<-BoxedFieldf::s'.fields;f)|Struct({tag="yaml_event_s";_}ass'),"data"->letf={ftype;fname;foffset=8}in(s'.fields<-BoxedFieldf::s'.fields;f)|Struct({tag="yaml_event_s";_}ass'),"type"->letf={ftype;fname;foffset=0}in(s'.fields<-BoxedFieldf::s'.fields;f)|Union({utag="event_data_u";_}ass'),"mapping_start"->letf={ftype;fname;foffset=0}in(s'.ufields<-BoxedFieldf::s'.ufields;f)|Union({utag="event_data_u";_}ass'),"sequence_start"->letf={ftype;fname;foffset=0}in(s'.ufields<-BoxedFieldf::s'.ufields;f)|Union({utag="event_data_u";_}ass'),"scalar"->letf={ftype;fname;foffset=0}in(s'.ufields<-BoxedFieldf::s'.ufields;f)|Union({utag="event_data_u";_}ass'),"alias"->letf={ftype;fname;foffset=0}in(s'.ufields<-BoxedFieldf::s'.ufields;f)|Union({utag="event_data_u";_}ass'),"document_end"->letf={ftype;fname;foffset=0}in(s'.ufields<-BoxedFieldf::s'.ufields;f)|Union({utag="event_data_u";_}ass'),"document_start"->letf={ftype;fname;foffset=0}in(s'.ufields<-BoxedFieldf::s'.ufields;f)|Union({utag="event_data_u";_}ass'),"stream_start"->letf={ftype;fname;foffset=0}in(s'.ufields<-BoxedFieldf::s'.ufields;f)|Struct({tag="event_mapping_start_s";_}ass'),"style"->letf={ftype;fname;foffset=20}in(s'.fields<-BoxedFieldf::s'.fields;f)|Struct({tag="event_mapping_start_s";_}ass'),"implicit"->letf={ftype;fname;foffset=16}in(s'.fields<-BoxedFieldf::s'.fields;f)|Struct({tag="event_mapping_start_s";_}ass'),"tag"->letf={ftype;fname;foffset=8}in(s'.fields<-BoxedFieldf::s'.fields;f)|Struct({tag="event_mapping_start_s";_}ass'),"anchor"->letf={ftype;fname;foffset=0}in(s'.fields<-BoxedFieldf::s'.fields;f)|Struct({tag="event_sequence_start_s";_}ass'),"style"->letf={ftype;fname;foffset=20}in(s'.fields<-BoxedFieldf::s'.fields;f)|Struct({tag="event_sequence_start_s";_}ass'),"implicit"->letf={ftype;fname;foffset=16}in(s'.fields<-BoxedFieldf::s'.fields;f)|Struct({tag="event_sequence_start_s";_}ass'),"tag"->letf={ftype;fname;foffset=8}in(s'.fields<-BoxedFieldf::s'.fields;f)|Struct({tag="event_sequence_start_s";_}ass'),"anchor"->letf={ftype;fname;foffset=0}in(s'.fields<-BoxedFieldf::s'.fields;f)|Struct({tag="event_scalar_s";_}ass'),"style"->letf={ftype;fname;foffset=40}in(s'.fields<-BoxedFieldf::s'.fields;f)|Struct({tag="event_scalar_s";_}ass'),"quoted_implicit"->letf={ftype;fname;foffset=36}in(s'.fields<-BoxedFieldf::s'.fields;f)|Struct({tag="event_scalar_s";_}ass'),"plain_implicit"->letf={ftype;fname;foffset=32}in(s'.fields<-BoxedFieldf::s'.fields;f)|Struct({tag="event_scalar_s";_}ass'),"length"->letf={ftype;fname;foffset=24}in(s'.fields<-BoxedFieldf::s'.fields;f)|Struct({tag="event_scalar_s";_}ass'),"value"->letf={ftype;fname;foffset=16}in(s'.fields<-BoxedFieldf::s'.fields;f)|Struct({tag="event_scalar_s";_}ass'),"tag"->letf={ftype;fname;foffset=8}in(s'.fields<-BoxedFieldf::s'.fields;f)|Struct({tag="event_scalar_s";_}ass'),"anchor"->letf={ftype;fname;foffset=0}in(s'.fields<-BoxedFieldf::s'.fields;f)|Struct({tag="event_alias_s";_}ass'),"anchor"->letf={ftype;fname;foffset=0}in(s'.fields<-BoxedFieldf::s'.fields;f)|Struct({tag="event_document_end_s";_}ass'),"implicit"->letf={ftype;fname;foffset=0}in(s'.fields<-BoxedFieldf::s'.fields;f)|Struct({tag="event_document_start_s";_}ass'),"implicit"->letf={ftype;fname;foffset=24}in(s'.fields<-BoxedFieldf::s'.fields;f)|Struct({tag="event_document_start_s";_}ass'),"tag_directives"->letf={ftype;fname;foffset=8}in(s'.fields<-BoxedFieldf::s'.fields;f)|Struct({tag="event_document_start_s";_}ass'),"version_directive"->letf={ftype;fname;foffset=0}in(s'.fields<-BoxedFieldf::s'.fields;f)|Struct({tag="event_tag_directives_s";_}ass'),"end"->letf={ftype;fname;foffset=8}in(s'.fields<-BoxedFieldf::s'.fields;f)|Struct({tag="event_tag_directives_s";_}ass'),"start"->letf={ftype;fname;foffset=0}in(s'.fields<-BoxedFieldf::s'.fields;f)|Struct({tag="event_stream_start_s";_}ass'),"encoding"->letf={ftype;fname;foffset=0}in(s'.fields<-BoxedFieldf::s'.fields;f)|Struct({tag="yaml_token_s";_}ass'),"end_mark"->letf={ftype;fname;foffset=56}in(s'.fields<-BoxedFieldf::s'.fields;f)|Struct({tag="yaml_token_s";_}ass'),"start_mark"->letf={ftype;fname;foffset=32}in(s'.fields<-BoxedFieldf::s'.fields;f)|Struct({tag="yaml_token_s";_}ass'),"data"->letf={ftype;fname;foffset=8}in(s'.fields<-BoxedFieldf::s'.fields;f)|Struct({tag="yaml_token_s";_}ass'),"type"->letf={ftype;fname;foffset=0}in(s'.fields<-BoxedFieldf::s'.fields;f)|Union({utag="data_u";_}ass'),"version_directive"->letf={ftype;fname;foffset=0}in(s'.ufields<-BoxedFieldf::s'.ufields;f)|Union({utag="data_u";_}ass'),"scalar"->letf={ftype;fname;foffset=0}in(s'.ufields<-BoxedFieldf::s'.ufields;f)|Union({utag="data_u";_}ass'),"anchor"->letf={ftype;fname;foffset=0}in(s'.ufields<-BoxedFieldf::s'.ufields;f)|Union({utag="data_u";_}ass'),"alias"->letf={ftype;fname;foffset=0}in(s'.ufields<-BoxedFieldf::s'.ufields;f)|Union({utag="data_u";_}ass'),"stream_start"->letf={ftype;fname;foffset=0}in(s'.ufields<-BoxedFieldf::s'.ufields;f)|Struct({tag="version_directive_s";_}ass'),"minor"->letf={ftype;fname;foffset=4}in(s'.fields<-BoxedFieldf::s'.fields;f)|Struct({tag="version_directive_s";_}ass'),"major"->letf={ftype;fname;foffset=0}in(s'.fields<-BoxedFieldf::s'.fields;f)|Struct({tag="scalar_s";_}ass'),"style"->letf={ftype;fname;foffset=16}in(s'.fields<-BoxedFieldf::s'.fields;f)|Struct({tag="scalar_s";_}ass'),"length"->letf={ftype;fname;foffset=8}in(s'.fields<-BoxedFieldf::s'.fields;f)|Struct({tag="scalar_s";_}ass'),"value"->letf={ftype;fname;foffset=0}in(s'.fields<-BoxedFieldf::s'.fields;f)|Struct({tag="anchor_s";_}ass'),"value"->letf={ftype;fname;foffset=0}in(s'.fields<-BoxedFieldf::s'.fields;f)|Struct({tag="alias_s";_}ass'),"value"->letf={ftype;fname;foffset=0}in(s'.fields<-BoxedFieldf::s'.fields;f)|Struct({tag="stream_start_s";_}ass'),"encoding"->letf={ftype;fname;foffset=0}in(s'.fields<-BoxedFieldf::s'.fields;f)|Struct({tag="yaml_mark_s";_}ass'),"column"->letf={ftype;fname;foffset=16}in(s'.fields<-BoxedFieldf::s'.fields;f)|Struct({tag="yaml_mark_s";_}ass'),"line"->letf={ftype;fname;foffset=8}in(s'.fields<-BoxedFieldf::s'.fields;f)|Struct({tag="yaml_mark_s";_}ass'),"index"->letf={ftype;fname;foffset=0}in(s'.fields<-BoxedFieldf::s'.fields;f)|Struct({tag="yaml_tag_directive_s";_}ass'),"prefix"->letf={ftype;fname;foffset=8}in(s'.fields<-BoxedFieldf::s'.fields;f)|Struct({tag="yaml_tag_directive_s";_}ass'),"handle"->letf={ftype;fname;foffset=0}in(s'.fields<-BoxedFieldf::s'.fields;f)|Struct({tag="yaml_version_directive_s";_}ass'),"minor"->letf={ftype;fname;foffset=4}in(s'.fields<-BoxedFieldf::s'.fields;f)|Struct({tag="yaml_version_directive_s";_}ass'),"major"->letf={ftype;fname;foffset=0}in(s'.fields<-BoxedFieldf::s'.fields;f)|View{ty;_},_->let{ftype;foffset;fname}=fieldtyfnameftypein{ftype;foffset;fname}|_->failwith("Unexpected field "^fname)letrecseal:typea.atyp->unit=function|Struct({tag="yaml_emitter_s";spec=Incomplete_;_}ass')->s'.spec<-Complete{size=432;align=8}|Struct({tag="yaml_parser_s";spec=Incomplete_;_}ass')->s'.spec<-Complete{size=480;align=8}|Struct({tag="yaml_event_s";spec=Incomplete_;_}ass')->s'.spec<-Complete{size=104;align=8}|Union({utag="event_data_u";uspec=None;_}ass')->s'.uspec<-Some{size=48;align=8}|Struct({tag="event_mapping_start_s";spec=Incomplete_;_}ass')->s'.spec<-Complete{size=24;align=8}|Struct({tag="event_sequence_start_s";spec=Incomplete_;_}ass')->s'.spec<-Complete{size=24;align=8}|Struct({tag="event_scalar_s";spec=Incomplete_;_}ass')->s'.spec<-Complete{size=48;align=8}|Struct({tag="event_alias_s";spec=Incomplete_;_}ass')->s'.spec<-Complete{size=8;align=8}|Struct({tag="event_document_end_s";spec=Incomplete_;_}ass')->s'.spec<-Complete{size=4;align=4}|Struct({tag="event_document_start_s";spec=Incomplete_;_}ass')->s'.spec<-Complete{size=32;align=8}|Struct({tag="event_tag_directives_s";spec=Incomplete_;_}ass')->s'.spec<-Complete{size=16;align=8}|Struct({tag="event_stream_start_s";spec=Incomplete_;_}ass')->s'.spec<-Complete{size=4;align=4}|Struct({tag="yaml_token_s";spec=Incomplete_;_}ass')->s'.spec<-Complete{size=80;align=8}|Union({utag="data_u";uspec=None;_}ass')->s'.uspec<-Some{size=24;align=8}|Struct({tag="version_directive_s";spec=Incomplete_;_}ass')->s'.spec<-Complete{size=8;align=4}|Struct({tag="scalar_s";spec=Incomplete_;_}ass')->s'.spec<-Complete{size=24;align=8}|Struct({tag="anchor_s";spec=Incomplete_;_}ass')->s'.spec<-Complete{size=8;align=8}|Struct({tag="alias_s";spec=Incomplete_;_}ass')->s'.spec<-Complete{size=8;align=8}|Struct({tag="stream_start_s";spec=Incomplete_;_}ass')->s'.spec<-Complete{size=4;align=4}|Struct({tag="yaml_mark_s";spec=Incomplete_;_}ass')->s'.spec<-Complete{size=24;align=8}|Struct({tag="yaml_tag_directive_s";spec=Incomplete_;_}ass')->s'.spec<-Complete{size=16;align=8}|Struct({tag="yaml_version_directive_s";spec=Incomplete_;_}ass')->s'.spec<-Complete{size=8;align=4}|Struct{tag;spec=Complete_;_}->raise(ModifyingSealedTypetag)|Union{utag;uspec=Some_;_}->raise(ModifyingSealedTypeutag)|View{ty;_}->sealty|_->raise(Unsupported"Sealing a non-structured type")type'aconst='aletconstant(typet)name(t:ttyp):t=matcht,namewith|Ctypes_static.PrimitiveCstubs_internals.Int64_t,"YAML_MAPPING_END_EVENT"->10L|Ctypes_static.PrimitiveCstubs_internals.Int64_t,"YAML_MAPPING_START_EVENT"->9L|Ctypes_static.PrimitiveCstubs_internals.Int64_t,"YAML_SEQUENCE_END_EVENT"->8L|Ctypes_static.PrimitiveCstubs_internals.Int64_t,"YAML_SEQUENCE_START_EVENT"->7L|Ctypes_static.PrimitiveCstubs_internals.Int64_t,"YAML_SCALAR_EVENT"->6L|Ctypes_static.PrimitiveCstubs_internals.Int64_t,"YAML_ALIAS_EVENT"->5L|Ctypes_static.PrimitiveCstubs_internals.Int64_t,"YAML_DOCUMENT_END_EVENT"->4L|Ctypes_static.PrimitiveCstubs_internals.Int64_t,"YAML_DOCUMENT_START_EVENT"->3L|Ctypes_static.PrimitiveCstubs_internals.Int64_t,"YAML_STREAM_END_EVENT"->2L|Ctypes_static.PrimitiveCstubs_internals.Int64_t,"YAML_STREAM_START_EVENT"->1L|Ctypes_static.PrimitiveCstubs_internals.Int64_t,"YAML_NO_EVENT"->0L|Ctypes_static.PrimitiveCstubs_internals.Int64_t,"YAML_SCALAR_TOKEN"->21L|Ctypes_static.PrimitiveCstubs_internals.Int64_t,"YAML_TAG_TOKEN"->20L|Ctypes_static.PrimitiveCstubs_internals.Int64_t,"YAML_ALIAS_TOKEN"->18L|Ctypes_static.PrimitiveCstubs_internals.Int64_t,"YAML_VALUE_TOKEN"->17L|Ctypes_static.PrimitiveCstubs_internals.Int64_t,"YAML_KEY_TOKEN"->16L|Ctypes_static.PrimitiveCstubs_internals.Int64_t,"YAML_FLOW_ENTRY_TOKEN"->15L|Ctypes_static.PrimitiveCstubs_internals.Int64_t,"YAML_BLOCK_ENTRY_TOKEN"->14L|Ctypes_static.PrimitiveCstubs_internals.Int64_t,"YAML_FLOW_MAPPING_END_TOKEN"->13L|Ctypes_static.PrimitiveCstubs_internals.Int64_t,"YAML_FLOW_MAPPING_START_TOKEN"->12L|Ctypes_static.PrimitiveCstubs_internals.Int64_t,"YAML_FLOW_SEQUENCE_END_TOKEN"->11L|Ctypes_static.PrimitiveCstubs_internals.Int64_t,"YAML_FLOW_SEQUENCE_START_TOKEN"->10L|Ctypes_static.PrimitiveCstubs_internals.Int64_t,"YAML_BLOCK_END_TOKEN"->9L|Ctypes_static.PrimitiveCstubs_internals.Int64_t,"YAML_BLOCK_MAPPING_START_TOKEN"->8L|Ctypes_static.PrimitiveCstubs_internals.Int64_t,"YAML_BLOCK_SEQUENCE_START_TOKEN"->7L|Ctypes_static.PrimitiveCstubs_internals.Int64_t,"YAML_DOCUMENT_END_TOKEN"->6L|Ctypes_static.PrimitiveCstubs_internals.Int64_t,"YAML_DOCUMENT_START_TOKEN"->5L|Ctypes_static.PrimitiveCstubs_internals.Int64_t,"YAML_TAG_DIRECTIVE_TOKEN"->4L|Ctypes_static.PrimitiveCstubs_internals.Int64_t,"YAML_VERSION_DIRECTIVE_TOKEN"->3L|Ctypes_static.PrimitiveCstubs_internals.Int64_t,"YAML_STREAM_END_TOKEN"->2L|Ctypes_static.PrimitiveCstubs_internals.Int64_t,"YAML_STREAM_START_TOKEN"->1L|Ctypes_static.PrimitiveCstubs_internals.Int64_t,"YAML_NO_TOKEN"->0L|Ctypes_static.PrimitiveCstubs_internals.Int64_t,"YAML_FLOW_MAPPING_STYLE"->2L|Ctypes_static.PrimitiveCstubs_internals.Int64_t,"YAML_BLOCK_MAPPING_STYLE"->1L|Ctypes_static.PrimitiveCstubs_internals.Int64_t,"YAML_ANY_MAPPING_STYLE"->0L|Ctypes_static.PrimitiveCstubs_internals.Int64_t,"YAML_FLOW_SEQUENCE_STYLE"->2L|Ctypes_static.PrimitiveCstubs_internals.Int64_t,"YAML_BLOCK_SEQUENCE_STYLE"->1L|Ctypes_static.PrimitiveCstubs_internals.Int64_t,"YAML_ANY_SEQUENCE_STYLE"->0L|Ctypes_static.PrimitiveCstubs_internals.Int64_t,"YAML_FOLDED_SCALAR_STYLE"->5L|Ctypes_static.PrimitiveCstubs_internals.Int64_t,"YAML_LITERAL_SCALAR_STYLE"->4L|Ctypes_static.PrimitiveCstubs_internals.Int64_t,"YAML_DOUBLE_QUOTED_SCALAR_STYLE"->3L|Ctypes_static.PrimitiveCstubs_internals.Int64_t,"YAML_SINGLE_QUOTED_SCALAR_STYLE"->2L|Ctypes_static.PrimitiveCstubs_internals.Int64_t,"YAML_PLAIN_SCALAR_STYLE"->1L|Ctypes_static.PrimitiveCstubs_internals.Int64_t,"YAML_ANY_SCALAR_STYLE"->0L|Ctypes_static.PrimitiveCstubs_internals.Int64_t,"YAML_EMITTER_ERROR"->7L|Ctypes_static.PrimitiveCstubs_internals.Int64_t,"YAML_WRITER_ERROR"->6L|Ctypes_static.PrimitiveCstubs_internals.Int64_t,"YAML_COMPOSER_ERROR"->5L|Ctypes_static.PrimitiveCstubs_internals.Int64_t,"YAML_PARSER_ERROR"->4L|Ctypes_static.PrimitiveCstubs_internals.Int64_t,"YAML_SCANNER_ERROR"->3L|Ctypes_static.PrimitiveCstubs_internals.Int64_t,"YAML_READER_ERROR"->2L|Ctypes_static.PrimitiveCstubs_internals.Int64_t,"YAML_MEMORY_ERROR"->1L|Ctypes_static.PrimitiveCstubs_internals.Int64_t,"YAML_NO_ERROR"->0L|Ctypes_static.PrimitiveCstubs_internals.Int64_t,"YAML_UTF16BE_ENCODING"->3L|Ctypes_static.PrimitiveCstubs_internals.Int64_t,"YAML_UTF16LE_ENCODING"->2L|Ctypes_static.PrimitiveCstubs_internals.Int64_t,"YAML_UTF8_ENCODING"->1L|Ctypes_static.PrimitiveCstubs_internals.Int64_t,"YAML_ANY_ENCODING"->0L|_,s->failwith("unmatched constant: "^s)letenum(typea)name?typedef?unexpected(alist:(a*int64)list)=matchnamewith|"yaml_event_type_t"->Cstubs_internals.build_enum_type"yaml_event_type_t"Ctypes_static.Uint32?typedef?unexpectedalist|"yaml_token_type_t"->Cstubs_internals.build_enum_type"yaml_token_type_t"Ctypes_static.Uint32?typedef?unexpectedalist|"yaml_mapping_style_t"->Cstubs_internals.build_enum_type"yaml_mapping_style_t"Ctypes_static.Uint32?typedef?unexpectedalist|"yaml_sequence_style_t"->Cstubs_internals.build_enum_type"yaml_sequence_style_t"Ctypes_static.Uint32?typedef?unexpectedalist|"yaml_scalar_style_t"->Cstubs_internals.build_enum_type"yaml_scalar_style_t"Ctypes_static.Uint32?typedef?unexpectedalist|"yaml_error_type_t"->Cstubs_internals.build_enum_type"yaml_error_type_t"Ctypes_static.Uint32?typedef?unexpectedalist|"yaml_encoding_t"->Cstubs_internals.build_enum_type"yaml_encoding_t"Ctypes_static.Uint32?typedef?unexpectedalist|s->failwith("unmatched enum: "^s)