Home
last modified time | relevance | path

Searched refs:items (Results 1 – 25 of 58) sorted by relevance

123

/plan9/sys/src/cmd/gs/zlib/
H A Dzutil.c217 voidpf zcalloc (voidpf opaque, unsigned items, unsigned size) in zcalloc() argument
220 ulg bsize = (ulg)items*size; in zcalloc()
276 voidpf zcalloc (voidpf opaque, unsigned items, unsigned size) in zcalloc() argument
279 return _halloc((long)items, size); in zcalloc()
297 extern voidp calloc OF((uInt items, uInt size));
301 voidpf zcalloc (opaque, items, size) in zcalloc() argument
303 unsigned items;
306 if (opaque) items += size - size; /* make compiler happy */
307 return sizeof(uInt) > 2 ? (voidpf)malloc(items * size) :
308 (voidpf)calloc(items, size);
H A Dzutil.h255 voidpf zcalloc OF((voidpf opaque, unsigned items, unsigned size));
258 #define ZALLOC(strm, items, size) \ argument
259 (*((strm)->zalloc))((strm)->opaque, (items), (size))
/plan9/sys/src/cmd/gs/src/
H A Dgschar0.c36 gs_font *cfont = pte->fstack.items[fdepth].font; in gs_stack_modal_fonts()
47 pte->fstack.items[fdepth].font = cfont; in gs_stack_modal_fonts()
48 pte->fstack.items[fdepth].index = 0; in gs_stack_modal_fonts()
65 pte->fstack.items[0].font = pfont; in gs_type0_init_fstack()
66 pte->fstack.items[0].index = 0; in gs_type0_init_fstack()
79 if (++fdepth > orig_depth || pfont != pte->fstack.items[fdepth].font ||\
81 pte->fstack.items[fdepth].font = pfont, changed = 1;\
82 pte->fstack.items[fdepth].index = fidx
89 return ((gs_font_type0 *) (pte->fstack.items[0].font))->data.EscChar; in root_esc_char()
105 int orig_index = pte->fstack.items[fdepth].index; in gs_type0_next_char_glyph()
[all …]
H A Dgenconf.c262 string_item_t *items; member
551 list->items = in alloc_list()
553 assert(list->items != NULL); in alloc_list()
577 strcpy(bufname, pconf->replaces.items[i].str); in process_replaces()
581 const char *fname = pconf->file_names.items[j].str; in process_replaces()
591 string_item_t *items = pconf->lists.indexed[rn].items; in process_replaces() local
596 if (items[tn].file_index == j) { in process_replaces()
606 items[tn].str); in process_replaces()
607 items[tn--] = items[--count]; in process_replaces()
613 pconf->file_names.items[j].str = ""; in process_replaces()
[all …]
H A Dsiscale.c115 CONTRIB *items; member
129 dst, src, tmp, contrib, items);
197 CONTRIB * items, in calculate_contrib() argument
268 p = items + contrib[i].index; in calculate_contrib()
300 const CONTRIB * items) in zoom_x() argument
320 const CONTRIB *cp = items + clp->index;\ in zoom_x()
365 int Colors, const CLIST * contrib, const CONTRIB * items) in zoom_y() argument
370 const CONTRIB *cbp = items + contrib->index; in zoom_y()
457 ss->items = 0; in s_IScale_set_defaults()
487 ss->items = (CONTRIB *) gs_alloc_byte_array(mem, in s_IScale_init()
[all …]
H A Dgdevpsdp.c115 gs_param_item_t items[8]; /* AutoFilter (not used for mono), */ member
281 const gs_param_item_t *items = in psdf_get_image_params() local
282 (pnames->items[0].key == 0 ? pnames->items + 1 : pnames->items); in psdf_get_image_params()
291 (code = gs_param_write_items(plist, params, NULL, items)) < 0 || in psdf_get_image_params()
679 const gs_param_item_t *items = in psdf_put_image_params() local
680 (pnames->items[0].key == 0 ? pnames->items + 1 : pnames->items); in psdf_put_image_params()
681 int code = gs_param_read_items(plist, params, items); in psdf_put_image_params()
H A Dzdevcal.c46 static const gs_param_item_t items[] = { in calendar_get_params() local
68 if ((code = gs_param_write_items(plist, &ltime, NULL, items)) < 0) in calendar_get_params()
H A Dszlibc.c83 s_zlib_alloc(void *zmem, uint items, uint size) in s_zlib_alloc() argument
91 gs_alloc_byte_array_immovable(mem, items, size, "s_zlib_alloc(data)"); in s_zlib_alloc()
H A Dgsparam.c106 const gs_param_item_t * items) in gs_param_read_items() argument
111 for (pi = items; pi->key != 0; ++pi) { in gs_param_read_items()
135 const void *default_obj, const gs_param_item_t * items) in gs_param_write_items() argument
140 for (pi = items; pi->key != 0; ++pi) { in gs_param_write_items()
H A Dszlibxx.h58 void *s_zlib_alloc(void *mem, uint items, uint size);
H A Dgdevpdtc.c101 new_font = curr.fstack.items[curr.fstack.depth].font; in process_composite_text()
111 psmat = &curr.fstack.items[curr.fstack.depth - 1].font->FontMatrix; in process_composite_text()
133 out.fstack.items[out.fstack.depth].font = out.current_font = prev_font; in process_composite_text()
157 psmat = &curr.fstack.items[curr.fstack.depth - 1].font->FontMatrix; in process_composite_text()
351 subfont = scan.fstack.items[scan.fstack.depth].font; in scan_cmap_text()
352 font_index = scan.fstack.items[scan.fstack.depth].index; in scan_cmap_text()
H A Dgdevpsf2.c53 cff_string_item_t *items; member
84 cff_string_table_init(cff_string_table_t *pcst, cff_string_item_t *items, in cff_string_table_init() argument
89 memset(items, 0, size * sizeof(*items)); in cff_string_table_init()
90 pcst->items = items; in cff_string_table_init()
108 pcst->items[index].key.data = data; in cff_string_add()
109 pcst->items[index].key.size = size; in cff_string_add()
124 while ((index = pcst->items[j %= pcst->size].index1) != 0) { in cff_string_index()
126 if (!bytes_compare(pcst->items[index].key.data, in cff_string_index()
127 pcst->items[index].key.size, data, size)) { in cff_string_index()
140 pcst->items[j].index1 = index + 1; in cff_string_index()
[all …]
H A Dgdevx.h225 XTextItem items[MAX_TEXT_ITEMS]; member
236 xdev->text.origin.y, xdev->text.items, xdev->text.item_count)
H A Dgstext.c91 ENUM_RETURN(eptr->fstack.items[index].font); in ENUM_PTRS_WITH()
114 RELOC_PTR(gs_text_enum_t, fstack.items[i].font); in RELOC_PTRS_WITH()
210 memcpy(pto->fstack.items, pfrom->fstack.items, in gs_text_enum_copy_dynamic()
211 (depth + 1) * sizeof(pto->fstack.items[0])); in gs_text_enum_copy_dynamic()
H A Dgxchar.c339 penum->fstack.items[penum->fstack.depth].font->FontType == ft_CID_encrypted) { in set_char_width()
347 const gx_font_stack_item_t *pfsi = &penum->fstack.items[penum->fstack.depth]; in set_char_width()
838 uint fidx = penum->fstack.items[fdepth].index; in gx_current_char()
840 switch (((gs_font_type0 *) (penum->fstack.items[fdepth - 1].font))->data.FMapType) { in gx_current_char()
917 (penum->fstack.depth < 0 ? pgs->font : penum->fstack.items[0].font); in show_proceed()
936 penum->fstack.items[penum->fstack.depth].font); in show_proceed()
951 pfont = penum->fstack.items[penum->fstack.depth].font; in show_proceed()
1108 pfont = penum->fstack.items[penum->fstack.depth].font; in show_proceed()
1351 penum->fstack.items[penum->fstack.depth].font); in gs_show_current_font()
1390 &penum->fstack.items[penum->fstack.depth]; in show_state_setup()
H A Dgsparam.h469 const gs_param_item_t * items);
472 const gs_param_item_t * items);
H A Dgxtext.h63 gx_font_stack_item_t items[1 + MAX_FONT_STACK]; member
H A Dzcfont.c109 gs_font * immediate_parent = penum->fstack.items[fdepth - 1].font; in cshow_continue()
/plan9/sys/src/cmd/bzip2/lib/
H A Dbzlib.c101 void* default_bzalloc ( void* opaque, Int32 items, Int32 size ) in default_bzalloc() argument
103 void* v = malloc ( items * size ); in default_bzalloc()
/plan9/sys/src/cmd/htmlfmt/
H A Dhtml.c191 render(URLwin *u, Bytes *t, Item *items, int curanchor) in render() argument
208 for(il=items; il!=nil; il=il->next){ in render()
286 render(u, t, u->items, 0); in rerender()
327 u->items = parsehtml(b->b, b->n, rurl, u->type, charset((char*)b->b), &u->docinfo); in rendertext()
337 freeitems(u->items); in freeurlwin()
338 u->items = nil; in freeurlwin()
H A Ddat.h24 Item *items; member
/plan9/sys/lib/man/permind/
H A Dignore90 items
/plan9/sys/src/cmd/gs/libpng/
H A Dpng.c143 png_zalloc(voidpf png_ptr, uInt items, uInt size) in png_zalloc() argument
150 if (items > PNG_UINT_32_MAX/size) in png_zalloc()
155 num_bytes = (png_uint_32)items * size; in png_zalloc()
/plan9/sys/src/libhtml/
H A Dbuild.c35 Item* items; // dummy head of item list we're building member
750 curtab->caption = ps->items->next; in getitems()
979 if(ps->items == ps->lastit) in getitems()
1801 ans = outerps->items->next; in getitems()
1802 freeitem(outerps->items); in getitems()
1804 outerps->items = newispacer(ISPnull); in getitems()
1805 outerps->lastit = outerps->items; in getitems()
1895 c->content = psstk->items->next; in finishcell()
1945 ps->items = newispacer(ISPnull); in newpstate()
1946 ps->lastit = ps->items; in newpstate()
[all …]
/plan9/sys/src/cmd/plot/
H A Dplot.c133 char *items[]={ variable
137 Menu menu={items};

123