Look for named field in procedure output fields.
| 774 | |
| 775 | // Look for named field in procedure output fields. |
| 776 | SSHORT PAR_find_proc_field(const jrd_prc* procedure, const MetaName& name) |
| 777 | { |
| 778 | const Array<NestConst<Parameter> >& list = procedure->getOutputFields(); |
| 779 | |
| 780 | Array<NestConst<Parameter> >::const_iterator ptr = list.begin(); |
| 781 | for (const Array<NestConst<Parameter> >::const_iterator end = list.end(); ptr < end; ++ptr) |
| 782 | { |
| 783 | const Parameter* param = *ptr; |
| 784 | if (name == param->prm_name) |
| 785 | return param->prm_number; |
| 786 | } |
| 787 | |
| 788 | return -1; |
| 789 | } |
| 790 | |
| 791 | |
| 792 | // Parse a counted argument list, given the count. |
no test coverage detected