static long get_add(const char **s) { long v; v = get_mul(s); if ( (**s) == '+' ) { (*s)++; skip_space(s); v += get_mul(s); } return v; }
int main(int argc, char** argv) { const int minp = 2 ; const int dinp = 0 ; strcpy(myname, name) ; if( minp ) { std::map<int, std::vector<int> > tagbufs ; while(1) { std::vector<int> inputs = get_inputs(minp, dinp, tagbufs) ; //input0 int inp0 ; int inp0buf = inputs[0] ; pvm_setrbuf(inp0buf) ; pvm_upkint(&inp0, 1 ,1 ) ; pvm_freebuf(inp0buf) ; //input1 int inp1 ; int inp1buf = inputs[1] ; pvm_setrbuf(inp1buf) ; pvm_upkint(&inp1, 1 ,1 ) ; pvm_freebuf(inp1buf) ; get_mul(inp0, inp1) ; } } return 0 ; }