| 2058 | // |
| 2059 | |
| 2060 | static act* par_erase() |
| 2061 | { |
| 2062 | gpre_sym* symbol = gpreGlob.token_global.tok_symbol; |
| 2063 | if (!symbol || symbol->sym_type != SYM_context) |
| 2064 | CPR_s_error("context variable"); |
| 2065 | |
| 2066 | gpre_ctx* source = symbol->sym_object; |
| 2067 | gpre_req* request = source->ctx_request; |
| 2068 | if (request->req_type != REQ_for && request->req_type != REQ_cursor) |
| 2069 | PAR_error("invalid context for modify"); |
| 2070 | |
| 2071 | PAR_get_token(); |
| 2072 | PAR_end(); |
| 2073 | |
| 2074 | // Make an update block to hold everything known about the modify |
| 2075 | |
| 2076 | upd* erase = (upd*) MSC_alloc(UPD_LEN); |
| 2077 | erase->upd_request = request; |
| 2078 | erase->upd_source = source; |
| 2079 | |
| 2080 | act* action = MSC_action(request, ACT_erase); |
| 2081 | action->act_object = (ref*) erase; |
| 2082 | |
| 2083 | return action; |
| 2084 | } |
| 2085 | |
| 2086 | |
| 2087 | //____________________________________________________________ |
no test coverage detected