| /plan9/sys/src/cmd/gs/src/ |
| H A D | ostack.h | 28 #define o_stack (iop_stack.stack) macro 30 #define osbot (o_stack.bot) 31 #define osp (o_stack.p) 32 #define ostop (o_stack.top) 37 { o_stack.requested = (n); return_error(e_stackoverflow); } 45 { o_stack.requested = (n); return_error(e_stackoverflow); }\
|
| H A D | zstack.c | 77 elt = ref_stack_index(&o_stack, op->value.intval + 1); in zindex() 111 op1->value.intval + 2 > ref_stack_count(&o_stack) in zroll() 129 ref *elt = ref_stack_index(&o_stack, i + 2); in zroll() 139 next = ref_stack_index(&o_stack, k + 2); in zroll() 200 o_stack.requested = mod; in zroll() 212 o_stack.requested = mod; in zroll() 231 ref_stack_clear(&o_stack); in zclear_stack() 242 make_int(op, ref_stack_count(&o_stack) - 1); in zcount() 261 uint count = ref_stack_counttomark(&o_stack); in zcleartomark() 265 ref_stack_pop(&o_stack, count); in zcleartomark() [all …]
|
| H A D | zarray.c | 60 int code = ref_stack_push(&o_stack, asize); in zaload() 67 packed_get(imemory, packed, ref_stack_index(&o_stack, i)); in zaload() 100 if (size >= ref_stack_count(&o_stack)) in zastore() 103 code = ref_stack_store(&o_stack, &arr, size, 1, 0, true, idmemory, in zastore() 107 ref_stack_pop(&o_stack, size); in zastore() 108 *ref_stack_index(&o_stack, 0) = arr; in zastore()
|
| H A D | zdevice.c | 225 stack_param_list_write(&list, &o_stack, &rkeys, iimemory); in zget_device_params() 231 ref_stack_pop(&o_stack, list.count * 2 - 1); in zget_device_params() 233 ref_stack_push(&o_stack, 1); in zget_device_params() 237 pmark = ref_stack_index(&o_stack, list.count * 2); in zget_device_params() 346 uint count = ref_stack_counttomark(&o_stack); in zputdeviceparams() 358 prequire_all = ref_stack_index(&o_stack, count); in zputdeviceparams() 359 ppolicy = ref_stack_index(&o_stack, count + 1); in zputdeviceparams() 360 pdev = ref_stack_index(&o_stack, count + 2); in zputdeviceparams() 366 code = stack_param_list_read(&list, &o_stack, 0, ppolicy, in zputdeviceparams() 376 *ref_stack_index(&o_stack, dest) = in zputdeviceparams() [all …]
|
| H A D | ziodev2.c | 75 stack_param_list_write(&list, &o_stack, NULL, iimemory); in zgetdevparams() 77 ref_stack_pop(&o_stack, list.count * 2); in zgetdevparams() 80 pmark = ref_stack_index(&o_stack, list.count * 2); in zgetdevparams() 100 code = stack_param_list_read(&list, &o_stack, 1, NULL, false, iimemory); in zputdevparams() 116 ref_stack_pop(&o_stack, list.count * 2 + 2); in zputdevparams()
|
| H A D | iscan.c | 413 else if ( (retcode = ref_stack_push(&o_stack, 1)) >= 0 )\ in scan_token() 418 else ref_stack_pop(&o_stack, 1) in scan_token() 606 pdepth = ref_stack_count_inline(&o_stack); in scan_token() 609 pstack = ref_stack_count_inline(&o_stack); in scan_token() 628 uint size = ref_stack_count_inline(&o_stack) - pstack; in scan_token() 634 ref_stack_index(&o_stack, size)->value.intval), in scan_token() 639 ref_stack_pop(&o_stack, size); in scan_token() 641 retcode = make_packed_array(myref, &o_stack, size, in scan_token() 660 retcode = ref_stack_store(&o_stack, myref, size, 0, 1, in scan_token() 666 ref_stack_pop(&o_stack, size); in scan_token() [all …]
|
| H A D | ztoken.c | 59 int orig_ostack_depth = ref_stack_count(&o_stack); in ztoken() 69 if (orig_ostack_depth < ref_stack_count(&o_stack)) in ztoken() 70 pop(ref_stack_count(&o_stack)- orig_ostack_depth); in ztoken() 280 code = ref_stack_extend(&o_stack, 2); in ztoken_handle_comment()
|
| H A D | interp.c | 374 ref_stack_clear(&o_stack); in gs_interp_reset() 472 o_stack.requested = e_stack.requested = d_stack.requested = 0; in gs_call_interp() 545 if ((ccode = ref_stack_extend(&o_stack, 1)) < 0) in gs_call_interp() 569 if ((ccode = ref_stack_extend(&o_stack, 1)) < 0) in gs_call_interp() 601 …if (ref_stack_extend(&o_stack, o_stack.requested) >= 0) { /* We can't just re-execute the object, … in gs_call_interp() 612 ccode = copy_stack(i_ctx_p, &o_stack, &saref); in gs_call_interp() 615 ref_stack_clear(&o_stack); in gs_call_interp() 619 if (ref_stack_pop_block(&o_stack) >= 0) { in gs_call_interp() 798 { o_stack.requested = 1; return_with_error(e_stackoverflow, objp); } in interp() 800 { o_stack.requested = 1; return_with_error_iref(e_stackoverflow); } in interp() [all …]
|
| H A D | zvmem.c | 57 ref_stack_cleanup(&o_stack); in ivalidate_clean_spaces() 126 if ((code = restore_check_stack(&o_stack, asave, false)) < 0 || in zrestore() 136 restore_fix_stack(&o_stack, asave, false); in zrestore() 362 restore_fix_stack(&o_stack, asave, false); in zforgetsave()
|
| H A D | zdict.c | 364 uint count2 = ref_stack_counttomark(&o_stack); in zdicttomark() 381 ref_stack_index(&o_stack, idx + 1), in zdicttomark() 382 ref_stack_index(&o_stack, idx)); in zdicttomark() 387 ref_stack_pop(&o_stack, count2); in zdicttomark()
|
| H A D | imain.c | 623 int code = ref_stack_push(&o_stack, 1); in push_value() 627 *ref_stack_index(&o_stack, 0L) = *pvalue; in push_value() 672 if (!ref_stack_count(&o_stack)) in pop_value() 674 *pvalue = *ref_stack_index(&o_stack, 0L); in pop_value() 689 ref_stack_pop(&o_stack, 1); in gs_pop_boolean() 704 ref_stack_pop(&o_stack, 1); in gs_pop_integer() 727 ref_stack_pop(&o_stack, 1); in gs_pop_real() 753 ref_stack_pop(&o_stack, 1); in gs_pop_string() 965 debug_dump_stack(minst->heap, &o_stack, "Operand stack"); in gs_main_dump_stack()
|
| H A D | zcolor.c | 433 if (ref_stack_count(&o_stack) < transfer_map_size) in zcolor_remap_one_store() 438 real_param(ref_stack_index(&o_stack, transfer_map_size - 1 - i), in zcolor_remap_one_store() 448 ref_stack_pop(&o_stack, transfer_map_size); in zcolor_remap_one_store() 492 if (ref_stack_count(&o_stack) < ncomp) in zcolor_test() 543 if (ref_stack_count(&o_stack) < 1) in zcolor_test_all()
|
| H A D | zmisc.c | 134 code = ref_stack_push(&o_stack, 1); in zbind() 136 ref_stack_pop(&o_stack, depth); in zbind() 152 ref_stack_pop_block(&o_stack); in zbind()
|
| H A D | zpacked.c | 53 op->value.intval >= ref_stack_count(&o_stack)) in zpackedarray() 57 code = make_packed_array(&parr, &o_stack, (uint) op->value.intval, in zpackedarray()
|
| H A D | zchar.c | 444 make_int(&esodepth(ep), ref_stack_count_inline(&o_stack) - npop); /* Save stack depth for */ in op_show_finish_setup() 582 sodepth.value.intval = ref_stack_count(&o_stack) - 2; in op_show_continue_dispatch() 710 ocount = ref_stack_count(&o_stack) - (uint) esodepth(ep).value.intval; in op_show_return_width() 723 ref_stack_pop(&o_stack, ocount); in op_show_return_width() 744 uint count = ref_stack_count(&o_stack); in op_show_restore() 747 ref_stack_pop(&o_stack, count - saved_count); in op_show_restore()
|
| H A D | zgeneric.c | 79 check_int_ltu(*op, ref_stack_count(&o_stack)); in zcopy_integer() 88 code = ref_stack_push(&o_stack, count - 1); in zcopy_integer() 92 *ref_stack_index(&o_stack, i) = in zcopy_integer() 93 *ref_stack_index(&o_stack, i + count); in zcopy_integer()
|
| H A D | zcontext.c | 540 uint mcount = ref_stack_counttomark(&o_stack); in zfork() 552 uint mcount = ref_stack_counttomark(&o_stack); in zlocalfork() 557 code = values_older_than(&o_stack, 1, mcount - 1, avm_local); in zlocalfork() 717 stack_copy(ostack, &o_stack, count, osp - op + 1); in do_fork() 777 ref_stack_clear(&o_stack); /* help avoid invalidrestore */ in fork_done() 794 ref_stack_clear(&o_stack); in fork_done() 868 ref *rp = ref_stack_index(&o_stack, count); in zjoin() 872 stack_copy(&o_stack, ostack, count, 0); in zjoin()
|
| H A D | zfsample.c | 419 penum->o_stack_depth = ref_stack_count(&o_stack); in sampled_data_setup() 491 if (num_out + O_STACK_PAD + penum->o_stack_depth != ref_stack_count(&o_stack)) { in sampled_data_continue() 492 int stack_depth_adjust = ref_stack_count(&o_stack) - penum->o_stack_depth; in sampled_data_continue()
|
| H A D | ziodev.c | 224 uint depth = ref_stack_count(&o_stack); in zfilelineedit() 253 ref_stack_pop_to(&o_stack, depth); in zfilelineedit()
|
| H A D | zpcolor.c | 274 make_int(esp, ref_stack_count(&o_stack)); in pattern_paint_prepare() 285 int o_stack_adjust = ref_stack_count(&o_stack) - esp->value.intval; in pattern_paint_finish()
|
| H A D | zusparam.c | 332 return ref_stack_max_count(&o_stack); in current_MaxOpStack() 337 return ref_stack_set_max_count(&o_stack, val); in set_MaxOpStack() 646 stack_param_list_write(&list, &o_stack, NULL, iimemory); in current_param_list()
|
| H A D | zht2.c | 273 uint odepth = ref_stack_count(&o_stack); in zsethalftone5() 328 ref_stack_pop_to(&o_stack, odepth); in zsethalftone5()
|
| H A D | zcrd.c | 409 uint count = ref_stack_counttomark(&o_stack); in cie_post_exec_tpqr() 415 ref_stack_pop(&o_stack, count - 1); in cie_post_exec_tpqr()
|
| H A D | zcie.c | 621 code = float_param(ref_stack_index(&o_stack, in cie_cache_finish_store() 638 ref_stack_pop(&o_stack, (replicate ? 1 : gx_cie_cache_size)); in cie_cache_finish_store()
|
| H A D | zcontrol.c | 131 const ref *rp = ref_stack_index(&o_stack, (long)(i + 1)); in zexecn()
|