/* * Copyright (c) 1996, 1997, 1998, 1999 The University of Utah and * the Computer Systems Laboratory at the University of Utah (CSL). * * This file is part of Flick, the Flexible IDL Compiler Kit. * * Flick is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * Flick is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Flick; see the file COPYING. If not, write to * the Free Software Foundation, 59 Temple Place #330, Boston, MA 02111, USA. */ #include #include #include #include void mu_state::mu_server_func_target(pres_c_server_func *sfunc) { target_mu_state *must_target = mu_make_target_mu_state(state, op, assumptions, get_which_stub()); /* * Make sure that the `target_mu_state' shares the required contextual * structures with the current `mu_state'. */ must_target->formal_func_invocation_cexpr = formal_func_invocation_cexpr; must_target->actual_func_invocation_cexpr = actual_func_invocation_cexpr; must_target->arglist = arglist; must_target->abort_block = abort_block; /* Create the CAST code to encode or decode the target object that is being operated upon. */ must_target->mu_func_params(sfunc->c_func, sfunc->target_itype, sfunc->target_i); must_target->mu_end(); /* Now take that CAST code and add it to the code in `this'. */ absorb_stmt(must_target->c_block); } /* End of file. */