Home
last modified time | relevance | path

Searched refs:code (Results 1 – 25 of 817) sorted by relevance

12345678910>>...33

/plan9/sys/src/cmd/gs/src/
H A Dgdevpdft.c34 int code; in pdf_make_soft_mask_dict() local
37 code = pdf_alloc_resource(pdev, resourceSoftMaskDict, gs_no_id, &pres_soft_mask_dict, -1); in pdf_make_soft_mask_dict()
38 if (code < 0) in pdf_make_soft_mask_dict()
39 return code; in pdf_make_soft_mask_dict()
43 code = cos_dict_put_c_key_string(soft_mask_dict, "/S", in pdf_make_soft_mask_dict()
46 if (code < 0) in pdf_make_soft_mask_dict()
47 return code; in pdf_make_soft_mask_dict()
55 code = cos_dict_put_c_key_object(soft_mask_dict, "/BC", (cos_object_t *)Background); in pdf_make_soft_mask_dict()
56 if (code < 0) in pdf_make_soft_mask_dict()
57 return code; in pdf_make_soft_mask_dict()
[all …]
H A Dzmatrix.c55 int code = gs_currentmatrix(igs, &mat); in zcurrentmatrix() local
57 if (code < 0) in zcurrentmatrix()
58 return code; in zcurrentmatrix()
60 code = make_floats(op - 5, &mat.xx, 6); in zcurrentmatrix()
61 if (code < 0) in zcurrentmatrix()
63 return code; in zcurrentmatrix()
72 int code = float_params(op, 6, &mat.xx); in zsetmatrix() local
74 if (code < 0) in zsetmatrix()
75 return code; in zsetmatrix()
76 if ((code = gs_setmatrix(igs, &mat)) < 0) in zsetmatrix()
[all …]
H A Dzfdecode.c72 int code = dict_param_list_read(&list, op, NULL, false, imem); in zcf_setup() local
74 if (code < 0) in zcf_setup()
75 return code; in zcf_setup()
77 code = s_CF_put_params((gs_param_list *)&list, pcfs); in zcf_setup()
79 return code; in zcf_setup()
90 int code; in zCFD() local
97 code = zcf_setup(dop, (stream_CF_state *)&cfs, iimemory); in zCFD()
98 if (code < 0) in zCFD()
99 return code; in zCFD()
110 int predictor, code; in filter_read_predictor() local
[all …]
H A Dgsdparam.c47 int code; in gs_get_device_or_hw_params() local
52 code = gs_copydevice(&dev, orig_dev, plist->memory); in gs_get_device_or_hw_params()
53 if (code < 0) in gs_get_device_or_hw_params()
54 return code; in gs_get_device_or_hw_params()
60 code = (is_hardware ? in gs_get_device_or_hw_params()
65 return code; in gs_get_device_or_hw_params()
72 int code; in gx_default_get_params() local
127 (code = param_write_name(plist, "OutputDevice", &dns)) < 0 || in gx_default_get_params()
129 (code = param_write_float_array(plist, "PageSize", &msa)) < 0 || in gx_default_get_params()
131 (code = (pcms.data == 0 ? 0 : in gx_default_get_params()
[all …]
H A Dgserver.c122 int code, exit_code;
135 code = gs_server_initialize(fileno(cin), sout, serr,
137 fprintf(stdout, "init: code %d\n", code);
138 if (code < 0)
140 code = gs_server_run_string("fubar == flush", &exit_code,
142 fprintf(stdout, "print: code %d\n", code);
143 if (code < 0)
145 code = gs_server_run_files(fnames, 0, &exit_code,
147 fprintf(stdout, "golfer: code %d\n", code);
148 if (code < 0)
[all …]
H A Dztrans.c46 int code; in set_float_value() local
50 if ((code = set_value(igs, value)) < 0) in set_float_value()
51 return code; in set_float_value()
94 int code; in zsetblendmode() local
97 if ((code = enum_param(imemory, op, blend_mode_names)) < 0 || in zsetblendmode()
98 (code = gs_setblendmode(igs, code)) < 0 in zsetblendmode()
100 return code; in zsetblendmode()
112 int code = name_enter_string(imemory, mode_name, &nref); in zcurrentblendmode() local
114 if (code < 0) in zcurrentblendmode()
115 return code; in zcurrentblendmode()
[all …]
H A Dgdevijs.c225 int code = 0; in gsijs_set_generic_params_hpijs() local
230 code = gsijs_client_set_param(ijsdev, "IjsParams", ijsdev->IjsParams); in gsijs_set_generic_params_hpijs()
233 if (code == 0 && ijsdev->Duplex_set) { in gsijs_set_generic_params_hpijs()
238 code = gsijs_client_set_param(ijsdev, "Duplex", buf); in gsijs_set_generic_params_hpijs()
240 return code; in gsijs_set_generic_params_hpijs()
250 int code = 0; in gsijs_set_generic_params() local
282 code = gsijs_client_set_param(ijsdev, buf, value); in gsijs_set_generic_params()
284 if (code == 0 && ijsdev->Duplex_set) { in gsijs_set_generic_params()
285 code = gsijs_client_set_param(ijsdev, "PS:Duplex", in gsijs_set_generic_params()
288 if (code == 0 && ijsdev->IjsTumble_set) { in gsijs_set_generic_params()
[all …]
H A Dgspath.c45 int code = gx_path_close_subpath(ppath); in gs_closepath() local
47 if (code < 0) in gs_closepath()
48 return code; in gs_closepath()
50 return code; in gs_closepath()
101 int code = gs_point_transform2fixed(m, x, y, &p); in gs_point_transform_compat() local
103 if (code < 0) in gs_point_transform_compat()
104 return code; in gs_point_transform_compat()
118 int code = gs_distance_transform2fixed(m, x, y, &p); in gs_distance_transform_compat() local
120 if (code < 0) in gs_distance_transform_compat()
121 return code; in gs_distance_transform_compat()
[all …]
H A Dzupath.c106 int code = gs_gsave(igs); in zinustroke() local
111 if (code < 0) in zinustroke()
112 return code; in zinustroke()
122 code = gs_concat(igs, &mat); in zinustroke()
123 if (code >= 0) in zinustroke()
124 code = gs_stroke(igs); in zinustroke()
125 return in_upath_result(i_ctx_p, npop + spop, code); in zinustroke()
137 int code; in in_test() local
141 code = (*paintproc)(igs); in in_test()
142 return in_path_result(i_ctx_p, npop, code); in in_test()
[all …]
H A Dzshade.c62 int code; in zsetsmoothness() local
66 if ((code = gs_setsmoothness(igs, smoothness)) < 0) in zsetsmoothness()
67 return code; in zsetsmoothness()
78 int code = shading_param(op, &psh); in zshfill() local
80 if (code < 0 || (code = gs_shfill(igs, psh)) < 0) in zshfill()
81 return code; in zshfill()
98 int code; in zbuildshadingpattern() local
103 if ((code = read_matrix(imemory, op - 1, &mat)) < 0 || in zbuildshadingpattern()
104 (code = dict_uid_param(op2, &template.uid, 1, imemory, i_ctx_p)) != 1 || in zbuildshadingpattern()
105 (code = shading_param(op, &template.Shading)) < 0 || in zbuildshadingpattern()
[all …]
H A Dgdevpdfv.c115 int code = pdf_alloc_resource(pdev, resourcePattern, pdc->mask.id, ppres, in pdf_pattern() local
126 if (code < 0) in pdf_pattern()
127 return code; in pdf_pattern()
157 if ((code = cos_dict_put(pcd_XObject, (byte *)key, strlen(key), &v)) < 0 || in pdf_pattern()
158 (code = cos_dict_put_c_key_object(pcd_Resources, "/XObject", in pdf_pattern()
161 return code; in pdf_pattern()
163 if ((code = cos_dict_put_c_strings(pcd_Resources, "/ProcSet", in pdf_pattern()
166 return code; in pdf_pattern()
170 if ((code = cos_dict_put_c_key_int(pcd, "/PatternType", 1)) < 0 || in pdf_pattern()
171 (code = cos_dict_put_c_key_int(pcd, "/PaintType", in pdf_pattern()
[all …]
H A Dzchar1.c184 int code = font_param(op - 3, &pfont); in charstring_execchar() local
192 if (code < 0) in charstring_execchar()
193 return code; in charstring_execchar()
232 code = zchar_get_metrics(pbfont, op - 1, cxs.sbw); in charstring_execchar()
233 if (code < 0) in charstring_execchar()
234 return code; in charstring_execchar()
235 cxs.present = code; in charstring_execchar()
245 code = gs_moveto(igs, 0.0, 0.0); in charstring_execchar()
246 if (code < 0) in charstring_execchar()
247 return code; in charstring_execchar()
[all …]
H A Dgxshade4.c56 int code = shade_next_vertex(cs, vertex); in Gt_next_vertex() local
58 if (code >= 0 && psh->params.Function) { in Gt_next_vertex()
62 code = gs_function_evaluate(psh->params.Function, vertex->c.t, in Gt_next_vertex()
65 return code; in Gt_next_vertex()
73 int code = 0; in Gt_fill_triangle() local
78 code = init_patch_fill_state(&pfs1); in Gt_fill_triangle()
79 if (code < 0) in Gt_fill_triangle()
80 return code; in Gt_fill_triangle()
82 code = mesh_padding(&pfs1, &va->p, &vb->p, &va->c, &vb->c); in Gt_fill_triangle()
83 if (code >= 0) in Gt_fill_triangle()
[all …]
H A Dzpcolor.c87 int code; in zbuildpattern1() local
98 if ((code = read_matrix(imemory, op, &mat)) < 0 || in zbuildpattern1()
99 (code = dict_uid_param(op1, &template.uid, 1, imemory, i_ctx_p)) != 1 || in zbuildpattern1()
100 (code = dict_int_param(op1, "PaintType", 1, 2, 0, &template.PaintType)) < 0 || in zbuildpattern1()
101 (code = dict_int_param(op1, "TilingType", 1, 3, 0, &template.TilingType)) < 0 || in zbuildpattern1()
102 (code = dict_floats_param(imemory, op1, "BBox", 4, BBox, NULL)) < 0 || in zbuildpattern1()
103 (code = dict_float_param(op1, "XStep", 0.0, &template.XStep)) != 0 || in zbuildpattern1()
104 (code = dict_float_param(op1, "YStep", 0.0, &template.YStep)) != 0 || in zbuildpattern1()
105 (code = dict_find_string(op1, "PaintProc", &pPaintProc)) <= 0 in zbuildpattern1()
107 return_error((code < 0 ? code : e_rangecheck)); in zbuildpattern1()
[all …]
H A Dgscscie.c247 int code = gs_cspace_alloc(&pcspace, pcstype, pmem); in gx_build_cie_space() local
250 if (code < 0) in gx_build_cie_space()
381 int code; in gx_serialize_cie_cache() local
383 code = sputs(s, (const byte *)&c->params.is_identity, sizeof(c->params.is_identity), &n); in gx_serialize_cie_cache()
386 code = sputs(s, (const byte *)&cache_size, sizeof(cache_size), &n); in gx_serialize_cie_cache()
387 if (code < 0) in gx_serialize_cie_cache()
388 return code; in gx_serialize_cie_cache()
397 int code = gx_serialize_cspace_type(pcs, s); in gx_serialize_cie_common_elements() local
399 if (code < 0) in gx_serialize_cie_common_elements()
400 return code; in gx_serialize_cie_common_elements()
[all …]
H A Dgdevvec.c67 int code; in gdev_vector_dopath() local
89 code = vdev_proc(vdev, dorect)(vdev, (fixed)p.x, (fixed)p.y, in gdev_vector_dopath()
91 if (code >= 0) in gdev_vector_dopath()
92 return code; in gdev_vector_dopath()
95 code = vdev_proc(vdev, beginpath)(vdev, type); in gdev_vector_dopath()
96 if (code < 0) in gdev_vector_dopath()
97 return code; in gdev_vector_dopath()
134 code = gdev_vector_dopath_segment(&state, gs_pe_moveto, in gdev_vector_dopath()
136 if (code < 0) in gdev_vector_dopath()
137 return code; in gdev_vector_dopath()
[all …]
H A Dgxclrect.c59 int code; in cmd_write_rect_cmd() local
76 code = set_cmd_put_op(dp, cldev, pcls, op_tiny + 8, 1); in cmd_write_rect_cmd()
77 if (code < 0) in cmd_write_rect_cmd()
78 return code; in cmd_write_rect_cmd()
80 code = set_cmd_put_op(dp, cldev, pcls, op_tiny, 2); in cmd_write_rect_cmd()
81 if (code < 0) in cmd_write_rect_cmd()
82 return code; in cmd_write_rect_cmd()
95 code = set_cmd_put_op(dp, cldev, pcls, op + 0x10, 3); in cmd_write_rect_cmd()
96 if (code < 0) in cmd_write_rect_cmd()
97 return code; in cmd_write_rect_cmd()
[all …]
H A Dzfcid1.c46 int code = build_gs_font_procs(op, &build); in zbuildfont10() local
50 if (code < 0) in zbuildfont10()
51 return code; in zbuildfont10()
52 code = cid_font_system_info_param(&cidsi, op); in zbuildfont10()
53 if (code < 0) in zbuildfont10()
54 return code; in zbuildfont10()
56 code = build_gs_simple_font(i_ctx_p, op, &pfont, ft_CID_user_defined, in zbuildfont10()
60 if (code < 0) in zbuildfont10()
61 return code; in zbuildfont10()
79 int i, code; in z11_CIDMap_proc() local
[all …]
H A Dzdps1.c48 int code = zcopy(i_ctx_p); in z1copy() local
50 if (code >= 0) in z1copy()
51 return code; in z1copy()
53 return code; in z1copy()
117 int code = gstate_check_space(i_ctx_p, istate, icurrent_space); in zgstate() local
122 if (code < 0) in zgstate()
123 return code; in zgstate()
157 int code; in zcopy_gstate() local
162 code = gstate_unshare(i_ctx_p); in zcopy_gstate()
163 if (code < 0) in zcopy_gstate()
[all …]
H A Dgstype1.c80 int code = 0; in gs_type1_interpret() local
90 code = t1_hinter__set_mapping(h, &pcis->pis->ctm, in gs_type1_interpret()
97 if (code < 0) in gs_type1_interpret()
98 return code; in gs_type1_interpret()
99 code = t1_hinter__set_font_data(h, 1, pdata, pcis->no_grid_fitting); in gs_type1_interpret()
100 if (code < 0) in gs_type1_interpret()
101 return code; in gs_type1_interpret()
200 code = pdata->procs.subr_data in gs_type1_interpret()
202 if (code < 0) in gs_type1_interpret()
203 return_error(code); in gs_type1_interpret()
[all …]
H A Dzcrd.c62 int code; in zbuildcolorrendering1() local
69 code = gs_cie_render1_build(&pcrd, mem, ".buildcolorrendering1"); in zbuildcolorrendering1()
70 if (code < 0) in zbuildcolorrendering1()
71 return code; in zbuildcolorrendering1()
72 code = zcrd1_params(op, pcrd, &procs, mem); in zbuildcolorrendering1()
73 if (code < 0 || in zbuildcolorrendering1()
74 (code = cache_colorrendering1(i_ctx_p, pcrd, &procs, in zbuildcolorrendering1()
79 return code; in zbuildcolorrendering1()
96 int code; in zbuilddevicecolorrendering1() local
99 code = dict_param_list_read(&list, op, NULL, false, iimemory); in zbuilddevicecolorrendering1()
[all …]
H A Diccfont.c94 int code; in cfont_next_string() local
97 code = cfont_ref_from_string(pse->i_ctx_p, &pse->next, in cfont_next_string()
99 if (code < 0) in cfont_next_string()
100 return code; in cfont_next_string()
117 int code; in cfont_put_next() local
121 code = dict_create(kp->num_enc_keys + kp->num_str_keys + in cfont_put_next()
123 if (code < 0) in cfont_put_next()
124 return code; in cfont_put_next()
132 code = gs_note_error(e_undefined); in cfont_put_next()
133 else if ((code = gs_c_glyph_name(glyph, &gstr)) >= 0) in cfont_put_next()
[all …]
H A Dgdevpdtc.c47 int code = 0; in process_composite_text() local
60 code = gx_path_current_point(penum->path, &penum->origin); in process_composite_text()
61 if (code < 0) in process_composite_text()
62 return code; in process_composite_text()
139 code = pdf_encode_process_string(&out, &str, NULL, &fmat, &text_state); in process_composite_text()
140 if (code < 0) in process_composite_text()
141 return code; in process_composite_text()
219 int code; in attach_cmap_resource() local
241 code = pdf_cmap_alloc(pdev, pcmap, &pcmres, font_index_only); in attach_cmap_resource()
242 if (code < 0) in attach_cmap_resource()
[all …]
H A Dgdevpdfg.c272 int code; in pdf_reset_color() local
298 code = pdf_open_page(pdev, PDF_IN_STREAM); in pdf_reset_color()
299 if (code < 0) in pdf_reset_color()
300 return code; in pdf_reset_color()
349 code = pdf_color_space(pdev, &cs_value, NULL, pcs, in pdf_reset_color()
352 if (code == gs_error_rangecheck) { in pdf_reset_color()
356 if (code < 0) in pdf_reset_color()
357 return code; in pdf_reset_color()
358 code = cos_value_write(&cs_value, pdev); in pdf_reset_color()
359 if (code < 0) in pdf_reset_color()
[all …]
/plan9/sys/lib/acid/
H A Dsyscall79 defn code(*e) { return e; }
82 { 0, {"sysr1", "s", code(0)}},
83 { 1, {"_errstr", "s", code(*sys_errstr:arg)}},
84 { 2, {"bind", "ssX", code(*sysbind:arg)}},
85 { 3, {"chdir", "s", code(*sysbind:arg)}},
86 { 4, {"close", "D", code(*sysclose:arg)}},
87 { 5, {"dup", "DD", code(*sysdup:arg)}},
88 { 6, {"alarm", "D", code(*sysalarm:arg)}},
89 { 7, {"exec", "sS", code(*sysexec:arg)}},
90 { 8, {"exits", "s", code(*sysexits:arg)}},
[all …]

12345678910>>...33