00001 00002 #include "type.h" 00003 #include "sym.h" 00004 00005 pSym type_record::find_elem( STRING name ) 00006 { 00007 FIFO_LIST<pSym>::handle h; 00008 pSym elem_sym; 00009 pSym tmp; 00010 00011 elem_sym = NULL; 00012 for (h = elem_list.first(); h != NULL; h = elem_list.next( h )) { 00013 tmp = elem_list.get_item( h ); 00014 if (tmp->get_name().GetText() == name.GetText()) { 00015 elem_sym = tmp; 00016 break; 00017 } 00018 } 00019 return elem_sym; 00020 } // find_elem