Home
last modified time | relevance | path

Searched refs:typeMalloc (Results 1 – 25 of 35) sorted by relevance

12

/openbsd-src/lib/libform/
H A Dfty_regex.c161 if (((preg->pRegExp = typeMalloc(regex_t, 1)) != 0) in Generic_RegularExpression_Type()
166 if ((preg->refCount = typeMalloc(unsigned long, 1)) != 0) in Generic_RegularExpression_Type()
185 pArg = typeMalloc(RegExp_Arg, 1); in Generic_RegularExpression_Type()
193 if ((pArg->refCount = typeMalloc(unsigned long, 1)) != 0) in Generic_RegularExpression_Type()
198 char *buf = typeMalloc(char, blen); in Generic_RegularExpression_Type()
H A Dfty_enum.c74 argp = typeMalloc(enumARG, 1); in Generic_Enum_Type()
105 argp->kwds = typeMalloc(char *, cnt + 1); in Generic_Enum_Type()
159 result = typeMalloc(enumARG, 1); in Copy_Enum_Type()
170 result->kwds = typeMalloc(char *, 1 + ap->count); in Copy_Enum_Type()
H A Dfty_alpha.c64 argp = typeMalloc(thisARG, 1); in Generic_This_Type()
103 thisARG *result = typeMalloc(thisARG, 1); in Copy_This_Type()
H A Dfty_alnum.c64 argp = typeMalloc(thisARG, 1); in Generic_This_Type()
103 thisARG *result = typeMalloc(thisARG, 1); in Copy_This_Type()
H A Dfld_def.c96 TypeArgument *p = typeMalloc(TypeArgument, 1); in _nc_Make_Argument()
143 TypeArgument *p = typeMalloc(TypeArgument, 1); in _nc_Copy_Argument()
293 (New_Field = typeMalloc(FIELD, 1)) != 0) in new_field()
H A Dfty_generic.c125 res = typeMalloc(FIELDTYPE, 1); in _nc_generic_fieldtype()
178 TypeArgument *p = typeMalloc(TypeArgument, 1); in GenericArgument()
H A Dfty_int.c81 argp = typeMalloc(thisARG, 1); in Generic_This_Type()
128 result = typeMalloc(thisARG, 1); in Copy_This_Type()
H A Dfty_num.c92 argn = typeMalloc(thisARG, 1); in Generic_This_Type()
147 result = typeMalloc(thisARG, 1); in Copy_This_Type()
H A Dfld_ftlink.c61 nftyp = typeMalloc(FIELDTYPE, 1); in FORM_EXPORT()
H A Dfrm_def.c190 if ((pg = typeMalloc(_PAGE, page_nr)) != (_PAGE *) 0) in Connect_Fields()
311 form = typeMalloc(FORM, 1); in NCURSES_SP_NAME()
H A Dfld_newftyp.c89 nftyp = typeMalloc(FIELDTYPE, 1); in new_fieldtype()
H A Dfld_link.c62 (New_Field = typeMalloc(FIELD, 1))) in FORM_EXPORT()
H A Dfld_dup.c61 (New_Field = typeMalloc(FIELD, 1))) in FORM_EXPORT()
/openbsd-src/lib/libpanel/
H A Dp_new.c53 PANEL *result = typeMalloc(PANEL, 1); in AllocPanel()
64 #define AllocPanel(name) typeMalloc(PANEL, 1)
/openbsd-src/lib/libcurses/base/
H A Dsafe_sprintf.c68 if ((format = typeMalloc(char, fmt_len)) == 0) in _nc_printf_length()
70 if ((buffer = typeMalloc(char, length)) == 0) { in _nc_printf_length()
H A Dlib_insnstr.c68 wchar_t *buffer = typeMalloc(wchar_t, nn + 1); in NCURSES_EXPORT()
H A Dwresize.c177 s = typeMalloc(NCURSES_CH_T, (unsigned) ToCols + 1); in wresize()
197 s = typeMalloc(NCURSES_CH_T, (unsigned) ToCols + 1); in wresize()
/openbsd-src/lib/libcurses/tinfo/
H A Dsetbuf.c121 if ((buf_ptr = typeMalloc(char, buf_len)) == NULL) in NCURSES_EXPORT()
H A Dlib_print.c77 || (mybuf = typeMalloc(char, need + 1)) == 0) { in NCURSES_EXPORT()
H A Dname_match.c73 FirstName = typeMalloc(char, MAX_NAME_SIZE + 1); in _nc_first_name()
H A Dcomp_error.c81 TermType = typeMalloc(char, MY_SIZE + 1); in _nc_set_type()
H A Dcomp_scan.c489 tok_buf = typeMalloc(char, TOK_BUF_SIZE); in _nc_get_token()
1029 pushname = typeMalloc(char, MAX_NAME_SIZE + 1); in _nc_push_token()
/openbsd-src/lib/libcurses/
H A Dnc_alloc.h119 #define typeMalloc(type,elts) (type *)malloc((size_t)(elts)*sizeof(type)) macro
/openbsd-src/lib/libmenu/
H A Dm_global.c215 if ((menu->pattern = typeMalloc(char, (unsigned)(1 + menu->namelen)))) in _nc_Connect_Items()
267 && (temp = typeMalloc(wchar_t, 2 + count)) != 0) in _nc_Calculate_Text_Width()
/openbsd-src/lib/libcurses/tty/
H A Dhardscroll.c317 if ((buf = typeMalloc(char, want)) != 0) { in NCURSES_SP_NAME()

12