@@ -148,14 +148,14 @@ enum class atok_t_vpr_constraints { TOOL_NAME };
148148constexpr const char * atok_lookup_t_vpr_constraints[] = {" tool_name" };
149149
150150/* Internal lexers. These convert the PugiXML node names to input tokens. */
151- inline atok_t_add_atom lex_attr_t_add_atom (const char * in, const std::function<void (const char *)>* report_error) {
152- unsigned int len = strlen (in);
151+ inline atok_t_add_atom lex_attr_t_add_atom (const char * in, const std::function<void (const char *)>* report_error) {std::printf ( " lex_attr_t_add_atom 151 errno: %d \n " , errno);
152+ unsigned int len = strlen (in);std::printf ( " lex_attr_t_add_atom 152 errno: %d \n " , errno);
153153 switch (len) {
154154 case 12 :
155155 switch (*((triehash_uu64*)&in[0 ])) {
156- case onechar (' n' , 0 , 64 ) | onechar (' a' , 8 , 64 ) | onechar (' m' , 16 , 64 ) | onechar (' e' , 24 , 64 ) | onechar (' _' , 32 , 64 ) | onechar (' p' , 40 , 64 ) | onechar (' a' , 48 , 64 ) | onechar (' t' , 56 , 64 ):
157- switch (*((triehash_uu32*)&in[8 ])) {
158- case onechar (' t' , 0 , 32 ) | onechar (' e' , 8 , 32 ) | onechar (' r' , 16 , 32 ) | onechar (' n' , 24 , 32 ):
156+ case onechar (' n' , 0 , 64 ) | onechar (' a' , 8 , 64 ) | onechar (' m' , 16 , 64 ) | onechar (' e' , 24 , 64 ) | onechar (' _' , 32 , 64 ) | onechar (' p' , 40 , 64 ) | onechar (' a' , 48 , 64 ) | onechar (' t' , 56 , 64 ):std::printf ( " lex_attr_t_add_atom 156 errno: %d \n " , errno);
157+ switch (*((triehash_uu32*)&in[8 ])) {std::printf ( " lex_attr_t_add_atom 157 errno: %d \n " , errno);
158+ case onechar (' t' , 0 , 32 ) | onechar (' e' , 8 , 32 ) | onechar (' r' , 16 , 32 ) | onechar (' n' , 24 , 32 ):std::printf ( " lex_attr_t_add_atom 158 errno: %d \n " , errno);
159159 return atok_t_add_atom::NAME_PATTERN;
160160 break ;
161161 default :
@@ -168,8 +168,8 @@ inline atok_t_add_atom lex_attr_t_add_atom(const char* in, const std::function<v
168168 break ;
169169 default :
170170 break ;
171- }
172- noreturn_report (report_error, (" Found unrecognized attribute " + std::string (in) + " of <add_atom>." ).c_str ());
171+ }std::printf ( " lex_attr_t_add_atom 171 errno: %d \n " , errno);
172+ noreturn_report (report_error, (" Found unrecognized attribute " + std::string (in) + " of <add_atom>." ).c_str ());std::printf ( " lex_attr_t_add_atom 172 errno: %d \n " , errno);
173173}
174174
175175inline atok_t_add_region lex_attr_t_add_region (const char * in, const std::function<void (const char *)>* report_error) {
@@ -472,23 +472,23 @@ inline void load_add_atom(const pugi::xml_node& root, T& out, Context& context,
472472 (void )root;
473473 (void )out;
474474 (void )context;
475- (void )report_error;
475+ (void )report_error;std::printf ( " load_add_atom 475 errno: %d \n " , errno);
476476 // Update current file offset in case an error is encountered.
477- *offset_debug = root.offset_debug ();
477+ *offset_debug = root.offset_debug ();std::printf ( " load_add_atom 477 errno: %d \n " , errno);
478478
479- for (pugi::xml_attribute attr = root.first_attribute (); attr; attr = attr.next_attribute ()) {
480- atok_t_add_atom in = lex_attr_t_add_atom (attr.name (), report_error);
479+ for (pugi::xml_attribute attr = root.first_attribute (); attr; attr = attr.next_attribute ()) {std::printf ( " load_add_atom 479 errno: %d \n " , errno);
480+ atok_t_add_atom in = lex_attr_t_add_atom (attr.name (), report_error);std::printf ( " load_add_atom 480 errno: %d \n " , errno);
481481 switch (in) {
482- case atok_t_add_atom::NAME_PATTERN:
483- out.set_add_atom_name_pattern (attr.value (), context);
482+ case atok_t_add_atom::NAME_PATTERN:std::printf ( " load_add_atom 482 errno: %d \n " , errno);
483+ out.set_add_atom_name_pattern (attr.value (), context);std::printf ( " load_add_atom 483 errno: %d \n " , errno);
484484 break ;
485485 default :
486486 break ; /* Not possible. */
487487 }
488488 }
489489
490- if (root.first_child ().type () == pugi::node_element)
491- noreturn_report (report_error, " Unexpected child element in <add_atom>." );
490+ if (root.first_child ().type () == pugi::node_element) { std::printf ( " load_add_atom 490 errno: %d \n " , errno);
491+ noreturn_report (report_error, " Unexpected child element in <add_atom>." );std::printf ( " load_add_atom 491 errno: %d \n " , errno);}
492492}
493493
494494template <class T , typename Context>
0 commit comments