Home
last modified time | relevance | path

Searched refs:parser (Results 1 – 25 of 478) sorted by relevance

12345678910>>...20

/freebsd/contrib/expat/lib/
H A Dxmlparse.c7 |_| XML parser
242 static void copy_salt_to_sipkey(XML_Parser parser, struct sipkey *key);
305 A parser reuses these structures, maintaining a list of allocated
428 XML_ACCOUNT_DIRECT, /* bytes directly passed to the Expat parser */
452 typedef enum XML_Error PTRCALL Processor(XML_Parser parser, const char *start,
474 static enum XML_Error handleUnknownEncoding(XML_Parser parser,
476 static enum XML_Error processXmlDecl(XML_Parser parser, int isGeneralTextEntity,
478 static enum XML_Error initializeEncoding(XML_Parser parser);
479 static enum XML_Error doProlog(XML_Parser parser, const ENCODING *enc,
484 static enum XML_Error processInternalEntity(XML_Parser parser, ENTIT
760 MALLOC(parser,s) global() argument
761 REALLOC(parser,p,s) global() argument
762 FREE(parser,p) global() argument
950 generate_hash_secret_salt(XML_Parser parser) generate_hash_secret_salt() argument
993 get_hash_secret_salt(XML_Parser parser) get_hash_secret_salt() argument
1000 callProcessor(XML_Parser parser,const char * start,const char * end,const char ** endPtr) callProcessor() argument
1043 startParsing(XML_Parser parser) startParsing() argument
1067 XML_Parser parser; parserCreate() local
1187 parserInit(XML_Parser parser,const XML_Char * encodingName) parserInit() argument
1275 moveToFreeBindingList(XML_Parser parser,BINDING * bindings) moveToFreeBindingList() argument
1285 XML_ParserReset(XML_Parser parser,const XML_Char * encodingName) XML_ParserReset() argument
1326 XML_SetEncoding(XML_Parser parser,const XML_Char * encodingName) XML_SetEncoding() argument
1355 XML_Parser parser = oldParser; XML_ExternalEntityParserCreate() local
1524 destroyBindings(BINDING * bindings,XML_Parser parser) destroyBindings() argument
1536 XML_ParserFree(XML_Parser parser) XML_ParserFree() argument
1602 XML_UseParserAsHandlerArg(XML_Parser parser) XML_UseParserAsHandlerArg() argument
1608 XML_UseForeignDTD(XML_Parser parser,XML_Bool useDTD) XML_UseForeignDTD() argument
1625 XML_SetReturnNSTriplet(XML_Parser parser,int do_nst) XML_SetReturnNSTriplet() argument
1636 XML_SetUserData(XML_Parser parser,void * p) XML_SetUserData() argument
1646 XML_SetBase(XML_Parser parser,const XML_Char * p) XML_SetBase() argument
1660 XML_GetBase(XML_Parser parser) XML_GetBase() argument
1667 XML_GetSpecifiedAttributeCount(XML_Parser parser) XML_GetSpecifiedAttributeCount() argument
1674 XML_GetIdAttributeIndex(XML_Parser parser) XML_GetIdAttributeIndex() argument
1682 XML_GetAttributeInfo(XML_Parser parser) XML_GetAttributeInfo() argument
1690 XML_SetElementHandler(XML_Parser parser,XML_StartElementHandler start,XML_EndElementHandler end) XML_SetElementHandler() argument
1699 XML_SetStartElementHandler(XML_Parser parser,XML_StartElementHandler start) XML_SetStartElementHandler() argument
1705 XML_SetEndElementHandler(XML_Parser parser,XML_EndElementHandler end) XML_SetEndElementHandler() argument
1711 XML_SetCharacterDataHandler(XML_Parser parser,XML_CharacterDataHandler handler) XML_SetCharacterDataHandler() argument
1718 XML_SetProcessingInstructionHandler(XML_Parser parser,XML_ProcessingInstructionHandler handler) XML_SetProcessingInstructionHandler() argument
1725 XML_SetCommentHandler(XML_Parser parser,XML_CommentHandler handler) XML_SetCommentHandler() argument
1731 XML_SetCdataSectionHandler(XML_Parser parser,XML_StartCdataSectionHandler start,XML_EndCdataSectionHandler end) XML_SetCdataSectionHandler() argument
1741 XML_SetStartCdataSectionHandler(XML_Parser parser,XML_StartCdataSectionHandler start) XML_SetStartCdataSectionHandler() argument
1748 XML_SetEndCdataSectionHandler(XML_Parser parser,XML_EndCdataSectionHandler end) XML_SetEndCdataSectionHandler() argument
1755 XML_SetDefaultHandler(XML_Parser parser,XML_DefaultHandler handler) XML_SetDefaultHandler() argument
1763 XML_SetDefaultHandlerExpand(XML_Parser parser,XML_DefaultHandler handler) XML_SetDefaultHandlerExpand() argument
1771 XML_SetDoctypeDeclHandler(XML_Parser parser,XML_StartDoctypeDeclHandler start,XML_EndDoctypeDeclHandler end) XML_SetDoctypeDeclHandler() argument
1780 XML_SetStartDoctypeDeclHandler(XML_Parser parser,XML_StartDoctypeDeclHandler start) XML_SetStartDoctypeDeclHandler() argument
1787 XML_SetEndDoctypeDeclHandler(XML_Parser parser,XML_EndDoctypeDeclHandler end) XML_SetEndDoctypeDeclHandler() argument
1793 XML_SetUnparsedEntityDeclHandler(XML_Parser parser,XML_UnparsedEntityDeclHandler handler) XML_SetUnparsedEntityDeclHandler() argument
1800 XML_SetNotationDeclHandler(XML_Parser parser,XML_NotationDeclHandler handler) XML_SetNotationDeclHandler() argument
1806 XML_SetNamespaceDeclHandler(XML_Parser parser,XML_StartNamespaceDeclHandler start,XML_EndNamespaceDeclHandler end) XML_SetNamespaceDeclHandler() argument
1816 XML_SetStartNamespaceDeclHandler(XML_Parser parser,XML_StartNamespaceDeclHandler start) XML_SetStartNamespaceDeclHandler() argument
1823 XML_SetEndNamespaceDeclHandler(XML_Parser parser,XML_EndNamespaceDeclHandler end) XML_SetEndNamespaceDeclHandler() argument
1830 XML_SetNotStandaloneHandler(XML_Parser parser,XML_NotStandaloneHandler handler) XML_SetNotStandaloneHandler() argument
1837 XML_SetExternalEntityRefHandler(XML_Parser parser,XML_ExternalEntityRefHandler handler) XML_SetExternalEntityRefHandler() argument
1844 XML_SetExternalEntityRefHandlerArg(XML_Parser parser,void * arg) XML_SetExternalEntityRefHandlerArg() argument
1854 XML_SetSkippedEntityHandler(XML_Parser parser,XML_SkippedEntityHandler handler) XML_SetSkippedEntityHandler() argument
1861 XML_SetUnknownEncodingHandler(XML_Parser parser,XML_UnknownEncodingHandler handler,void * data) XML_SetUnknownEncodingHandler() argument
1870 XML_SetElementDeclHandler(XML_Parser parser,XML_ElementDeclHandler eldecl) XML_SetElementDeclHandler() argument
1876 XML_SetAttlistDeclHandler(XML_Parser parser,XML_AttlistDeclHandler attdecl) XML_SetAttlistDeclHandler() argument
1882 XML_SetEntityDeclHandler(XML_Parser parser,XML_EntityDeclHandler handler) XML_SetEntityDeclHandler() argument
1888 XML_SetXmlDeclHandler(XML_Parser parser,XML_XmlDeclHandler handler) XML_SetXmlDeclHandler() argument
1894 XML_SetParamEntityParsing(XML_Parser parser,enum XML_ParamEntityParsing peParsing) XML_SetParamEntityParsing() argument
1911 XML_SetHashSalt(XML_Parser parser,unsigned long hash_salt) XML_SetHashSalt() argument
1925 XML_Parse(XML_Parser parser,const char * s,int len,int isFinal) XML_Parse() argument
2036 XML_ParseBuffer(XML_Parser parser,int len,int isFinal) XML_ParseBuffer() argument
2107 XML_GetBuffer(XML_Parser parser,int len) XML_GetBuffer() argument
2233 XML_StopParser(XML_Parser parser,XML_Bool resumable) XML_StopParser() argument
2263 XML_ResumeParser(XML_Parser parser) XML_ResumeParser() argument
2303 XML_GetParsingStatus(XML_Parser parser,XML_ParsingStatus * status) XML_GetParsingStatus() argument
2311 XML_GetErrorCode(XML_Parser parser) XML_GetErrorCode() argument
2318 XML_GetCurrentByteIndex(XML_Parser parser) XML_GetCurrentByteIndex() argument
2328 XML_GetCurrentByteCount(XML_Parser parser) XML_GetCurrentByteCount() argument
2337 XML_GetInputContext(XML_Parser parser,int * offset,int * size) XML_GetInputContext() argument
2357 XML_GetCurrentLineNumber(XML_Parser parser) XML_GetCurrentLineNumber() argument
2369 XML_GetCurrentColumnNumber(XML_Parser parser) XML_GetCurrentColumnNumber() argument
2381 XML_FreeContentModel(XML_Parser parser,XML_Content * model) XML_FreeContentModel() argument
2387 XML_MemMalloc(XML_Parser parser,size_t size) XML_MemMalloc() argument
2394 XML_MemRealloc(XML_Parser parser,void * ptr,size_t size) XML_MemRealloc() argument
2401 XML_MemFree(XML_Parser parser,void * ptr) XML_MemFree() argument
2407 XML_DefaultCurrent(XML_Parser parser) XML_DefaultCurrent() argument
2609 XML_SetBillionLaughsAttackProtectionMaximumAmplification(XML_Parser parser,float maximumAmplificationFactor) XML_SetBillionLaughsAttackProtectionMaximumAmplification() argument
2621 XML_SetBillionLaughsAttackProtectionActivationThreshold(XML_Parser parser,unsigned long long activationThresholdBytes) XML_SetBillionLaughsAttackProtectionActivationThreshold() argument
2631 XML_SetReparseDeferralEnabled(XML_Parser parser,XML_Bool enabled) XML_SetReparseDeferralEnabled() argument
2645 storeRawNames(XML_Parser parser) storeRawNames() argument
2694 contentProcessor(XML_Parser parser,const char * start,const char * end,const char ** endPtr) contentProcessor() argument
2707 externalEntityInitProcessor(XML_Parser parser,const char * start,const char * end,const char ** endPtr) externalEntityInitProcessor() argument
2717 externalEntityInitProcessor2(XML_Parser parser,const char * start,const char * end,const char ** endPtr) externalEntityInitProcessor2() argument
2762 externalEntityInitProcessor3(XML_Parser parser,const char * start,const char * end,const char ** endPtr) externalEntityInitProcessor3() argument
2809 externalEntityContentProcessor(XML_Parser parser,const char * start,const char * end,const char ** endPtr) externalEntityContentProcessor() argument
2823 doContent(XML_Parser parser,int startTagLevel,const ENCODING * enc,const char * s,const char * end,const char ** nextPtr,XML_Bool haveMore,enum XML_Account account) doContent() argument
3297 freeBindings(XML_Parser parser,BINDING * bindings) freeBindings() argument
3325 storeAtts(XML_Parser parser,const ENCODING * enc,const char * attStr,TAG_NAME * tagNamePtr,BINDING ** bindingsPtr,enum XML_Account account) storeAtts() argument
3908 addBinding(XML_Parser parser,PREFIX * prefix,const ATTRIBUTE_ID * attId,const XML_Char * uri,BINDING ** bindingsPtr) addBinding() argument
4075 cdataSectionProcessor(XML_Parser parser,const char * start,const char * end,const char ** endPtr) cdataSectionProcessor() argument
4098 doCdataSection(XML_Parser parser,const ENCODING * enc,const char ** startPtr,const char * end,const char ** nextPtr,XML_Bool haveMore,enum XML_Account account) doCdataSection() argument
4222 ignoreSectionProcessor(XML_Parser parser,const char * start,const char * end,const char ** endPtr) ignoreSectionProcessor() argument
4240 doIgnoreSection(XML_Parser parser,const ENCODING * enc,const char ** startPtr,const char * end,const char ** nextPtr,XML_Bool haveMore) doIgnoreSection() argument
4322 initializeEncoding(XML_Parser parser) initializeEncoding() argument
4352 processXmlDecl(XML_Parser parser,int isGeneralTextEntity,const char * s,const char * next) processXmlDecl() argument
4444 handleUnknownEncoding(XML_Parser parser,const XML_Char * encodingName) handleUnknownEncoding() argument
4478 prologInitProcessor(XML_Parser parser,const char * s,const char * end,const char ** nextPtr) prologInitProcessor() argument
4490 externalParEntInitProcessor(XML_Parser parser,const char * s,const char * end,const char ** nextPtr) externalParEntInitProcessor() argument
4510 entityValueInitProcessor(XML_Parser parser,const char * s,const char * end,const char ** nextPtr) entityValueInitProcessor() argument
4594 externalParEntProcessor(XML_Parser parser,const char * s,const char * end,const char ** nextPtr) externalParEntProcessor() argument
4640 entityValueProcessor(XML_Parser parser,const char * s,const char * end,const char ** nextPtr) entityValueProcessor() argument
4678 prologProcessor(XML_Parser parser,const char * s,const char * end,const char ** nextPtr) prologProcessor() argument
4688 doProlog(XML_Parser parser,const ENCODING * enc,const char * s,const char * end,int tok,const char * next,const char ** nextPtr,XML_Bool haveMore,XML_Bool allowClosingDoctype,enum XML_Account account) doProlog() argument
5753 epilogProcessor(XML_Parser parser,const char * s,const char * end,const char ** nextPtr) epilogProcessor() argument
5824 processInternalEntity(XML_Parser parser,ENTITY * entity,XML_Bool betweenDecl) processInternalEntity() argument
5887 internalEntityProcessor(XML_Parser parser,const char * s,const char * end,const char ** nextPtr) internalEntityProcessor() argument
5963 errorProcessor(XML_Parser parser,const char * s,const char * end,const char ** nextPtr) errorProcessor() argument
5972 storeAttributeValue(XML_Parser parser,const ENCODING * enc,XML_Bool isCdata,const char * ptr,const char * end,STRING_POOL * pool,enum XML_Account account) storeAttributeValue() argument
5987 appendAttributeValue(XML_Parser parser,const ENCODING * enc,XML_Bool isCdata,const char * ptr,const char * end,STRING_POOL * pool,enum XML_Account account) appendAttributeValue() argument
6188 storeEntityValue(XML_Parser parser,const ENCODING * enc,const char * entityTextPtr,const char * entityTextEnd,enum XML_Account account) storeEntityValue() argument
6374 storeSelfEntityValue(XML_Parser parser,ENTITY * entity) storeSelfEntityValue() argument
6419 reportProcessingInstruction(XML_Parser parser,const ENCODING * enc,const char * start,const char * end) reportProcessingInstruction() argument
6446 reportComment(XML_Parser parser,const ENCODING * enc,const char * start,const char * end) reportComment() argument
6466 reportDefault(XML_Parser parser,const ENCODING * enc,const char * s,const char * end) reportDefault() argument
6514 defineAttribute(ELEMENT_TYPE * type,ATTRIBUTE_ID * attId,XML_Bool isCdata,XML_Bool isId,const XML_Char * value,XML_Parser parser) defineAttribute() argument
6574 setElementTypePrefix(XML_Parser parser,ELEMENT_TYPE * elementType) setElementTypePrefix() argument
6603 getAttributeId(XML_Parser parser,const ENCODING * enc,const char * start,const char * end) getAttributeId() argument
6666 getContext(XML_Parser parser) getContext() argument
6762 setContext(XML_Parser parser,const XML_Char * context) setContext() argument
7167 copy_salt_to_sipkey(XML_Parser parser,struct sipkey * key) copy_salt_to_sipkey() argument
7173 hash(XML_Parser parser,KEY s) hash() argument
7184 lookup(XML_Parser parser,HASH_TABLE * table,KEY name,size_t createSize) lookup() argument
7567 nextScaffoldPart(XML_Parser parser) nextScaffoldPart() argument
7637 build_model(XML_Parser parser) build_model() argument
7764 getElementType(XML_Parser parser,const ENCODING * enc,const char * ptr,const char * end) getElementType() argument
7944 testingAccountingGetCountBytesDirect(XML_Parser parser) testingAccountingGetCountBytesDirect() argument
7951 testingAccountingGetCountBytesIndirect(XML_Parser parser) testingAccountingGetCountBytesIndirect() argument
8006 getRootParserOf(XML_Parser parser,unsigned int * outLevelDiff) getRootParserOf() argument
[all...]
H A Dexpat.h7 |_| XML parser
193 XML_SetElementDeclHandler(XML_Parser parser, XML_ElementDeclHandler eldecl);
208 XML_SetAttlistDeclHandler(XML_Parser parser, XML_AttlistDeclHandler attdecl);
224 XML_SetXmlDeclHandler(XML_Parser parser, XML_XmlDeclHandler xmldecl);
232 /* Constructs a new parser; encoding is the encoding specified by the
238 /* Constructs a new parser and namespace processor. Element type
263 /* Constructs a new parser using the memory management suite referred to
265 suite. If namespaceSeparator is non-NULL it creates a parser with
269 All further memory operations used for the created parser will come from
277 /* Prepare a parser objec
681 XML_GetUserData(parser) global() argument
[all...]
/freebsd/contrib/ntp/libjsmn/
H A Djsmn.c8 static jsmntok_t *jsmn_alloc_token(jsmn_parser *parser, in jsmn_alloc_token() argument
11 if (parser->toknext >= num_tokens) { in jsmn_alloc_token()
14 tok = &tokens[parser->toknext++]; in jsmn_alloc_token()
37 static jsmnerr_t jsmn_parse_primitive(jsmn_parser *parser, const char *js, in jsmn_parse_primitive() argument
42 start = parser->pos; in jsmn_parse_primitive()
44 for (; parser->pos < len && js[parser->pos] != '\0'; parser->pos++) { in jsmn_parse_primitive()
45 switch (js[parser->pos]) { in jsmn_parse_primitive()
54 if (js[parser->pos] < 32 || js[parser->pos] >= 127) { in jsmn_parse_primitive()
55 parser->pos = start; in jsmn_parse_primitive()
61 parser->pos = start; in jsmn_parse_primitive()
[all …]
/freebsd/contrib/libucl/src/
H A Ducl_parser.c61 ucl_set_err (struct ucl_parser *parser, int code, const char *str, UT_string **err) in ucl_set_err() argument
64 struct ucl_chunk *chunk = parser->chunks; in ucl_set_err()
66 if (parser->cur_file) { in ucl_set_err()
67 filename = parser->cur_file; in ucl_set_err()
91 parser->err_code = code; in ucl_set_err()
92 parser->state = UCL_STATE_ERROR; in ucl_set_err()
96 ucl_save_comment (struct ucl_parser *parser, const char *begin, size_t len) in ucl_save_comment() argument
103 if (parser->last_comment) { in ucl_save_comment()
105 DL_APPEND (parser->last_comment, nobj); in ucl_save_comment()
108 parser->last_comment = nobj; in ucl_save_comment()
[all …]
H A Ducl_sexp.c37 ucl_create_err (&parser->err,\
60 ucl_parse_csexp (struct ucl_parser *parser) in ucl_parse_csexp() argument
75 assert (parser != NULL); in ucl_parse_csexp()
76 assert (parser->chunks != NULL); in ucl_parse_csexp()
77 assert (parser->chunks->begin != NULL); in ucl_parse_csexp()
78 assert (parser->chunks->remain != 0); in ucl_parse_csexp()
80 p = parser->chunks->begin; in ucl_parse_csexp()
81 end = p + parser->chunks->remain; in ucl_parse_csexp()
91 ucl_create_err (&parser->err, "bad starting character for " in ucl_parse_csexp()
101 ucl_create_err (&parser->err, "no memory"); in ucl_parse_csexp()
[all …]
H A Ducl_msgpack.c402 typedef ssize_t (*ucl_msgpack_parse_function)(struct ucl_parser *parser,
406 static ssize_t ucl_msgpack_parse_map (struct ucl_parser *parser,
409 static ssize_t ucl_msgpack_parse_array (struct ucl_parser *parser,
412 static ssize_t ucl_msgpack_parse_string (struct ucl_parser *parser,
415 static ssize_t ucl_msgpack_parse_int (struct ucl_parser *parser,
418 static ssize_t ucl_msgpack_parse_float (struct ucl_parser *parser,
421 static ssize_t ucl_msgpack_parse_bool (struct ucl_parser *parser,
424 static ssize_t ucl_msgpack_parse_null (struct ucl_parser *parser,
427 static ssize_t ucl_msgpack_parse_ignore (struct ucl_parser *parser,
762 ucl_msgpack_get_container (struct ucl_parser *parser, in ucl_msgpack_get_container() argument
[all …]
H A Ducl_util.c593 ucl_parser_get_object (struct ucl_parser *parser) argument
595 if (parser->state != UCL_STATE_ERROR && parser->top_obj != NULL) {
596 return ucl_object_ref (parser->top_obj);
603 ucl_parser_free (struct ucl_parser *parser) argument
612 if (parser == NULL) {
616 if (parser->top_obj != NULL) {
617 ucl_object_unref (parser->top_obj);
620 if (parser->includepaths != NULL) {
621 ucl_object_unref (parser->includepaths);
624 LL_FOREACH_SAFE (parser->stack, stack, stmp) {
[all …]
/freebsd/lib/libpmc/pmu-events/
H A Djsmn.c33 static jsmntok_t *jsmn_alloc_token(jsmn_parser *parser, in jsmn_alloc_token() argument
38 if ((unsigned)parser->toknext >= num_tokens) in jsmn_alloc_token()
40 tok = &tokens[parser->toknext++]; in jsmn_alloc_token()
61 static jsmnerr_t jsmn_parse_primitive(jsmn_parser *parser, const char *js, in jsmn_parse_primitive() argument
68 start = parser->pos; in jsmn_parse_primitive()
70 for (; parser->pos < len; parser->pos++) { in jsmn_parse_primitive()
71 switch (js[parser->pos]) { in jsmn_parse_primitive()
90 if (js[parser->pos] < 32 || js[parser->pos] >= 127) { in jsmn_parse_primitive()
91 parser->pos = start; in jsmn_parse_primitive()
100 parser->pos = start; in jsmn_parse_primitive()
[all …]
/freebsd/contrib/expat/tests/
H A Dmisc_tests.c7 |_| XML parser
62 /* Test that a failure to allocate the parser structure fails gracefully */
82 /* Test memory allocation failures for a parser with an encoding */
102 /* Test that freeing a NULL parser doesn't cause an explosion.
264 /* Test parser created for UTF-16LE is successful */
289 XML_Parser parser; in START_TEST() local
294 parser = XML_ParserCreate(NULL); in START_TEST()
295 XML_SetElementHandler(parser, start_element_issue_240, end_element_issue_240); in START_TEST()
297 mydata->parser = parser; in START_TEST()
310 XML_Parser parser; START_TEST() local
355 XML_Parser parser; START_TEST() local
395 XML_Parser parser = XML_ParserCreateNS(NULL, XCS('\n')); START_TEST() local
421 XML_Parser parser = XML_ParserCreate(NULL); START_TEST() local
444 XML_Parser parser = XML_ParserCreate(NULL); START_TEST() local
482 XML_Parser parser = (XML_Parser)userData; resumable_stopping_character_handler() local
490 XML_Parser parser = XML_ParserCreate(NULL); START_TEST() local
[all...]
H A Dhandlers.h7 |_| XML parser
96 XML_Parser parser;
132 XML_Parser parser;
169 extern int XMLCALL external_entity_optioner(XML_Parser parser,
175 extern int XMLCALL external_entity_loader(XML_Parser parser,
188 extern int XMLCALL external_entity_faulter(XML_Parser parser,
194 XML_Parser parser, const XML_Char *context, const XML_Char *base,
196 extern int XMLCALL external_entity_null_loader(XML_Parser parser,
202 extern int XMLCALL external_entity_resetter(XML_Parser parser,
208 extern int XMLCALL external_entity_suspender(XML_Parser parser,
127 XML_Parser parser; global() member
584 XML_Parser parser; global() member
[all...]
H A Dhandlers.c7 |_| XML parser
125 count = XML_GetSpecifiedAttributeCount(parserAndElementInfos->parser); in counting_start_element_handler()
130 id = XML_GetIdAttributeIndex(parserAndElementInfos->parser); in counting_start_element_handler()
275 XML_StopParser(mydata->parser, 0); in end_element_issue_240()
413 external_entity_optioner(XML_Parser parser, const XML_Char *context, in external_entity_optioner()
416 ExtOption *options = (ExtOption *)XML_GetUserData(parser); in external_entity_optioner()
424 ext_parser = XML_ExternalEntityParserCreate(parser, context, NULL); in external_entity_optioner()
439 external_entity_loader(XML_Parser parser, const XML_Char *context, in external_entity_loader()
442 ExtTest *test_data = (ExtTest *)XML_GetUserData(parser); in external_entity_loader()
448 extparser = XML_ExternalEntityParserCreate(parser, contex in external_entity_loader()
411 external_entity_optioner(XML_Parser parser,const XML_Char * context,const XML_Char * base,const XML_Char * systemId,const XML_Char * publicId) external_entity_optioner() argument
437 external_entity_loader(XML_Parser parser,const XML_Char * context,const XML_Char * base,const XML_Char * systemId,const XML_Char * publicId) external_entity_loader() argument
464 external_entity_faulter(XML_Parser parser,const XML_Char * context,const XML_Char * base,const XML_Char * systemId,const XML_Char * publicId) external_entity_faulter() argument
492 external_entity_null_loader(XML_Parser parser,const XML_Char * context,const XML_Char * base,const XML_Char * systemId,const XML_Char * publicId) external_entity_null_loader() argument
504 external_entity_resetter(XML_Parser parser,const XML_Char * context,const XML_Char * base,const XML_Char * systemId,const XML_Char * publicId) external_entity_resetter() argument
563 external_entity_suspender(XML_Parser parser,const XML_Char * context,const XML_Char * base,const XML_Char * systemId,const XML_Char * publicId) external_entity_suspender() argument
599 external_entity_suspend_xmldecl(XML_Parser parser,const XML_Char * context,const XML_Char * base,const XML_Char * systemId,const XML_Char * publicId) external_entity_suspend_xmldecl() argument
636 external_entity_suspending_faulter(XML_Parser parser,const XML_Char * context,const XML_Char * base,const XML_Char * systemId,const XML_Char * publicId) external_entity_suspending_faulter() argument
673 external_entity_failer__if_not_xml_ge(XML_Parser parser,const XML_Char * context,const XML_Char * base,const XML_Char * systemId,const XML_Char * publicId) external_entity_failer__if_not_xml_ge() argument
691 external_entity_cr_catcher(XML_Parser parser,const XML_Char * context,const XML_Char * base,const XML_Char * systemId,const XML_Char * publicId) external_entity_cr_catcher() argument
712 external_entity_bad_cr_catcher(XML_Parser parser,const XML_Char * context,const XML_Char * base,const XML_Char * systemId,const XML_Char * publicId) external_entity_bad_cr_catcher() argument
735 external_entity_rsqb_catcher(XML_Parser parser,const XML_Char * context,const XML_Char * base,const XML_Char * systemId,const XML_Char * publicId) external_entity_rsqb_catcher() argument
758 external_entity_good_cdata_ascii(XML_Parser parser,const XML_Char * context,const XML_Char * base,const XML_Char * systemId,const XML_Char * publicId) external_entity_good_cdata_ascii() argument
786 external_entity_param_checker(XML_Parser parser,const XML_Char * context,const XML_Char * base,const XML_Char * systemId,const XML_Char * publicId) external_entity_param_checker() argument
837 external_entity_param(XML_Parser parser,const XML_Char * context,const XML_Char * base,const XML_Char * systemId,const XML_Char * publicId) external_entity_param() argument
878 external_entity_load_ignore(XML_Parser parser,const XML_Char * context,const XML_Char * base,const XML_Char * systemId,const XML_Char * publicId) external_entity_load_ignore() argument
899 external_entity_load_ignore_utf16(XML_Parser parser,const XML_Char * context,const XML_Char * base,const XML_Char * systemId,const XML_Char * publicId) external_entity_load_ignore_utf16() argument
925 external_entity_load_ignore_utf16_be(XML_Parser parser,const XML_Char * context,const XML_Char * base,const XML_Char * systemId,const XML_Char * publicId) external_entity_load_ignore_utf16_be() argument
951 external_entity_valuer(XML_Parser parser,const XML_Char * context,const XML_Char * base,const XML_Char * systemId,const XML_Char * publicId) external_entity_valuer() argument
997 external_entity_not_standalone(XML_Parser parser,const XML_Char * context,const XML_Char * base,const XML_Char * systemId,const XML_Char * publicId) external_entity_not_standalone() argument
1034 external_entity_value_aborter(XML_Parser parser,const XML_Char * context,const XML_Char * base,const XML_Char * systemId,const XML_Char * publicId) external_entity_value_aborter() argument
1071 external_entity_public(XML_Parser parser,const XML_Char * context,const XML_Char * base,const XML_Char * systemId,const XML_Char * publicId) external_entity_public() argument
1098 external_entity_devaluer(XML_Parser parser,const XML_Char * context,const XML_Char * base,const XML_Char * systemId,const XML_Char * publicId) external_entity_devaluer() argument
1127 external_entity_oneshot_loader(XML_Parser parser,const XML_Char * context,const XML_Char * base,const XML_Char * systemId,const XML_Char * publicId) external_entity_oneshot_loader() argument
1152 external_entity_loader2(XML_Parser parser,const XML_Char * context,const XML_Char * base,const XML_Char * systemId,const XML_Char * publicId) external_entity_loader2() argument
1179 external_entity_faulter2(XML_Parser parser,const XML_Char * context,const XML_Char * base,const XML_Char * systemId,const XML_Char * publicId) external_entity_faulter2() argument
1207 external_entity_unfinished_attlist(XML_Parser parser,const XML_Char * context,const XML_Char * base,const XML_Char * systemId,const XML_Char * publicId) external_entity_unfinished_attlist() argument
1234 external_entity_handler(XML_Parser parser,const XML_Char * context,const XML_Char * base,const XML_Char * systemId,const XML_Char * publicId) external_entity_handler() argument
1265 external_entity_duff_loader(XML_Parser parser,const XML_Char * context,const XML_Char * base,const XML_Char * systemId,const XML_Char * publicId) external_entity_duff_loader() argument
1297 external_entity_dbl_handler(XML_Parser parser,const XML_Char * context,const XML_Char * base,const XML_Char * systemId,const XML_Char * publicId) external_entity_dbl_handler() argument
1354 external_entity_dbl_handler_2(XML_Parser parser,const XML_Char * context,const XML_Char * base,const XML_Char * systemId,const XML_Char * publicId) external_entity_dbl_handler_2() argument
1392 external_entity_alloc_set_encoding(XML_Parser parser,const XML_Char * context,const XML_Char * base,const XML_Char * systemId,const XML_Char * publicId) external_entity_alloc_set_encoding() argument
1421 external_entity_reallocator(XML_Parser parser,const XML_Char * context,const XML_Char * base,const XML_Char * systemId,const XML_Char * publicId) external_entity_reallocator() argument
1449 external_entity_alloc(XML_Parser parser,const XML_Char * context,const XML_Char * base,const XML_Char * systemId,const XML_Char * publicId) external_entity_alloc() argument
1469 external_entity_parser_create_alloc_fail_handler(XML_Parser parser,const XML_Char * context,const XML_Char * base,const XML_Char * systemId,const XML_Char * publicId) external_entity_parser_create_alloc_fail_handler() argument
1499 accounting_external_entity_ref_handler(XML_Parser parser,const XML_Char * context,const XML_Char * base,const XML_Char * systemId,const XML_Char * publicId) accounting_external_entity_ref_handler() argument
1830 XML_Parser parser = (XML_Parser)userData; suspending_comment_handler() local
[all...]
/freebsd/contrib/expat/xmlwf/
H A Dxmlfile.c7 |_| XML parser
78 XML_Parser parser;
82 static int processStream(const XML_Char *filename, XML_Parser parser);
85 reportError(XML_Parser parser, const XML_Char *filename) { in reportError()
86 enum XML_Error code = XML_GetErrorCode(parser); in reportError()
92 filename, XML_GetErrorLineNumber(parser), in reportError()
93 XML_GetErrorColumnNumber(parser), message); in reportError()
103 XML_Parser parser = ((PROCESS_ARGS *)args)->parser; in processFile()
105 if (XML_Parse(parser, (cons in processFile()
77 XML_Parser parser; global() member
84 reportError(XML_Parser parser,const XML_Char * filename) reportError() argument
101 XML_Parser parser = ((PROCESS_ARGS *)args)->parser; processFile() local
148 externalEntityRefFilemap(XML_Parser parser,const XML_Char * context,const XML_Char * base,const XML_Char * systemId,const XML_Char * publicId) externalEntityRefFilemap() argument
181 processStream(const XML_Char * filename,XML_Parser parser) processStream() argument
226 externalEntityRefStream(XML_Parser parser,const XML_Char * context,const XML_Char * base,const XML_Char * systemId,const XML_Char * publicId) externalEntityRefStream() argument
243 XML_ProcessFile(XML_Parser parser,const XML_Char * filename,unsigned flags) XML_ProcessFile() argument
[all...]
H A Dxmlwf.c560 metaLocation(XML_Parser parser) { in metaLocation() argument
561 const XML_Char *uri = XML_GetBase(parser); in metaLocation()
562 FILE *fp = ((XmlwfUserData *)XML_GetUserData(parser))->fp; in metaLocation()
569 XML_GetCurrentByteIndex(parser), XML_GetCurrentByteCount(parser), in metaLocation()
570 XML_GetCurrentLineNumber(parser), in metaLocation()
571 XML_GetCurrentColumnNumber(parser)); in metaLocation()
588 XML_Parser parser = (XML_Parser)userData; in metaStartElement() local
589 XmlwfUserData *data = (XmlwfUserData *)XML_GetUserData(parser); in metaStartElement()
592 = atts + XML_GetSpecifiedAttributeCount(parser); in metaStartElement()
594 int idAttIndex = XML_GetIdAttributeIndex(parser); in metaStartElement()
[all …]
/freebsd/contrib/expat/examples/
H A Delements.c79 XML_Parser parser = XML_ParserCreate(NULL); in main() local
83 if (! parser) { in main()
88 XML_SetUserData(parser, &depth); in main()
89 XML_SetElementHandler(parser, startElement, endElement); in main()
92 void *const buf = XML_GetBuffer(parser, BUFSIZ); in main()
95 XML_ParserFree(parser); in main()
103 XML_ParserFree(parser); in main()
109 if (XML_ParseBuffer(parser, (int)len, done) == XML_STATUS_ERROR) { in main()
112 XML_GetCurrentLineNumber(parser), in main()
113 XML_ErrorString(XML_GetErrorCode(parser))); in main()
[all …]
H A Doutline.c82 XML_Parser parser = XML_ParserCreate(NULL); in main() local
86 if (! parser) { in main()
91 XML_SetUserData(parser, &depth); in main()
92 XML_SetElementHandler(parser, startElement, endElement); in main()
95 void *const buf = XML_GetBuffer(parser, BUFSIZ); in main()
98 XML_ParserFree(parser); in main()
106 XML_ParserFree(parser); in main()
112 if (XML_ParseBuffer(parser, (int)len, done) == XML_STATUS_ERROR) { in main()
115 XML_GetCurrentLineNumber(parser), in main()
116 XML_ErrorString(XML_GetErrorCode(parser))); in main()
[all …]
H A Delement_declarations.c9 |_| XML parser
181 XML_Parser parser = (XML_Parser)userData; in handleElementDeclaration()
183 XML_FreeContentModel(parser, model); in handleElementDeclaration()
185 XML_StopParser(parser, /* resumable= */ XML_FALSE); in handleElementDeclaration()
191 XML_Parser parser = XML_ParserCreate(NULL); in main()
194 if (! parser) { in main()
195 fprintf(stderr, "Couldn't allocate memory for parser\n"); in main()
199 XML_SetUserData(parser, parser); in main()
200 XML_SetElementDeclHandler(parser, handleElementDeclaratio in main()
180 XML_Parser parser = (XML_Parser)userData; handleElementDeclaration() local
190 XML_Parser parser = XML_ParserCreate(NULL); main() local
[all...]
/freebsd/contrib/unifdef/tests/
H A Drecursive.experr23 unifdef: parser line 1 state C comment START line
25 unifdef: parser line 2 state C comment START line
27 unifdef: parser line 3 state NO comment START line
29 unifdef: parser line 4 state NO comment START line
31 unifdef: parser line 5 state NO comment START line
33 unifdef: parser line 6 state NO comment START line
35 unifdef: parser line 7 state NO comment START line
52 unifdef: parser line 8 state NO comment START line
54 unifdef: parser line 9 state NO comment START line
56 unifdef: parser line 10 state NO comment START line
[all …]
/freebsd/contrib/libucl/include/
H A Ducl.h964 UCL_EXTERN bool ucl_parser_set_default_priority (struct ucl_parser *parser,
972 UCL_EXTERN int ucl_parser_get_default_priority (struct ucl_parser *parser);
982 UCL_EXTERN bool ucl_parser_register_macro (struct ucl_parser *parser,
994 UCL_EXTERN bool ucl_parser_register_context_macro (struct ucl_parser *parser,
1018 UCL_EXTERN void ucl_parser_register_variable (struct ucl_parser *parser, const char *var,
1027 UCL_EXTERN void ucl_parser_set_variables_handler (struct ucl_parser *parser,
1037 UCL_EXTERN bool ucl_parser_add_chunk (struct ucl_parser *parser,
1049 UCL_EXTERN bool ucl_parser_add_chunk_priority (struct ucl_parser *parser,
1059 UCL_EXTERN bool ucl_parser_insert_chunk (struct ucl_parser *parser,
1073 UCL_EXTERN bool ucl_parser_add_chunk_full (struct ucl_parser *parser,
[all …]
/freebsd/sys/netlink/
H A Dnetlink_message_parser.h228 nl_parse_header(void *hdr, int len, const struct nlhdr_parser *parser, in nl_parse_header() argument
233 if (__predict_false(len < parser->nl_hdr_off)) { in nl_parse_header()
236 parser->nl_hdr_off, len); in nl_parse_header()
241 void *tmp_hdr = npt_alloc(npt, parser->nl_hdr_off); in nl_parse_header()
246 len = parser->nl_hdr_off; in nl_parse_header()
249 if (npt->strict && parser->sp != NULL && !parser->sp(hdr, npt)) in nl_parse_header()
253 for (int i = 0; i < parser->fp_size; i++) { in nl_parse_header()
254 const struct nlfield_parser *fp = &parser->fp[i]; in nl_parse_header()
263 struct nlattr *nla_head = (struct nlattr *)((char *)hdr + parser->nl_hdr_off); in nl_parse_header()
264 error = nl_parse_attrs_raw(nla_head, len - parser->nl_hdr_off, parser->np, in nl_parse_header()
[all …]
/freebsd/contrib/kyua/utils/config/
H A Dparser.cpp56 struct utils::config::parser::impl : utils::noncopyable {
58 parser* _parent;
74 impl(parser* const parent_, tree& config_tree_) : in impl()
126 config::parser::impl* impl = in lua_syntax()
127 *state.to_userdata< config::parser::impl* >(-1); in lua_syntax()
143 config::parser::parser(tree& config_tree) : in parser() function in config::parser
150 *_pimpl->_state.new_userdata< config::parser::impl* >() = _pimpl.get(); in parser()
156 config::parser::~parser(void) in ~parser()
171 config::parser::parse(const fs::path& file) in parse()
/freebsd/tests/sys/netinet6/
H A Dexthdr.py168 parser = argparse.ArgumentParser("exthdr.py",
170 parser.add_argument('--sendif', nargs=1,
173 parser.add_argument('--recvif', nargs=1,
176 parser.add_argument('--src', nargs=1,
179 parser.add_argument('--to', nargs=1,
182 parser.add_argument('--debug',
187 parser.add_argument('--hbh',
190 parser.add_argument('--hbhbad',
193 parser.add_argument('--rh',
196 parser.add_argument('--frag6',
[all …]
/freebsd/sys/netinet/
H A Dtcp_lro.c230 tcp_lro_low_level_parser(void *ptr, struct lro_parser *parser, bool update_data, bool is_vxlan, int… in tcp_lro_low_level_parser() argument
237 memset(parser, 0, sizeof(*parser)); in tcp_lro_low_level_parser()
246 parser->data.vxlan_vni = in tcp_lro_low_level_parser()
256 parser->data.vlan_id = eh->evl_tag & htons(EVL_VLID_MASK); in tcp_lro_low_level_parser()
272 parser->ip4 = ptr; in tcp_lro_low_level_parser()
276 if ((parser->ip4->ip_hl << 2) != sizeof (*parser->ip4)) in tcp_lro_low_level_parser()
279 if (parser->ip4->ip_off & htons(IP_MF|IP_OFFMASK)) in tcp_lro_low_level_parser()
282 if (__predict_false(parser->ip4->ip_src.s_addr == INADDR_ANY || in tcp_lro_low_level_parser()
283 parser->ip4->ip_dst.s_addr == INADDR_ANY)) in tcp_lro_low_level_parser()
285 ptr = (uint8_t *)ptr + (parser->ip4->ip_hl << 2); in tcp_lro_low_level_parser()
[all …]
/freebsd/tests/sys/opencrypto/
H A Dcryptotest.py103 with cryptodev.KATParser(fname, columns) as parser:
104 self.runGCMWithParser(parser, mode)
106 def runGCMWithParser(self, parser, mode): argument
107 for _, lines in next(parser):
167 with cryptodev.KATParser(fname, columns) as parser:
168 self.runCBCWithParser(parser)
170 def runCBCWithParser(self, parser): argument
172 for mode, lines in next(parser):
199 with cryptodev.KATParser(fname, columns) as parser:
200 self.runXTSWithParser(parser, meth)
[all …]
/freebsd/cddl/contrib/opensolaris/lib/pyzfs/common/
H A Dallow.py134 def args_to_perms(parser, options, who, perms): argument
169 parser.error(fmt % w)
197 parser.error(_("invalid user/group %s") % w)
276 parser.print_help()
280 parser.exit("zfs: error: " + msg)
282 parser.exit()
302 parser = optparse.OptionParser(usage=u, prog="zfs")
304 parser.add_option("-l", action="store_true", dest="local",
306 parser.add_option("-d", action="store_true", dest="descend",
308 parser.add_option("-u", action="store_true", dest="user",
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/ubsan/
H A Dubsan_flags.cpp41 void RegisterUbsanFlags(FlagParser *parser, Flags *f) { in RegisterUbsanFlags() argument
43 RegisterFlag(parser, #Name, Description, &f->Name); in RegisterUbsanFlags()
60 FlagParser parser; in InitializeFlags() local
61 RegisterCommonFlags(&parser); in InitializeFlags()
62 RegisterUbsanFlags(&parser, f); in InitializeFlags()
65 parser.ParseString(__ubsan_default_options()); in InitializeFlags()
67 parser.ParseStringFromEnv("UBSAN_OPTIONS"); in InitializeFlags()
71 if (common_flags()->help) parser.PrintFlagDescriptions(); in InitializeFlags()

12345678910>>...20