mirror of
git://git.psyced.org/git/psyclpc
synced 2024-08-15 03:20:16 +00:00
libpsyc refactoring
This commit is contained in:
parent
24abe02441
commit
86f45a5d4f
1 changed files with 9 additions and 9 deletions
|
@ -176,7 +176,7 @@ fill_header_from_mapping (svalue_t *key, svalue_t *val, void *extra) {
|
|||
}
|
||||
}
|
||||
|
||||
list = psyc_list_new(elems, VEC_SIZE(val->u.vec), PSYC_LIST_CHECK_LENGTH);
|
||||
psyc_list_init(&list, elems, VEC_SIZE(val->u.vec), PSYC_LIST_CHECK_LENGTH);
|
||||
valuelen = list.length;
|
||||
value = pxalloc(valuelen);
|
||||
if (!value) {
|
||||
|
@ -192,8 +192,8 @@ fill_header_from_mapping (svalue_t *key, svalue_t *val, void *extra) {
|
|||
return; // not reached
|
||||
}
|
||||
|
||||
m->header->modifiers[m->header->lines++] =
|
||||
psyc_modifier_new(oper, name, namelen, value, valuelen, m->flag);
|
||||
psyc_modifier_init(&m->header->modifiers[m->header->lines++],
|
||||
oper, name, namelen, value, valuelen, m->flag);
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
@ -259,7 +259,7 @@ f_psyc_render(svalue_t *sp) {
|
|||
blen = 0;
|
||||
}
|
||||
|
||||
packet = psyc_packet_new(headers[PACKET_ROUTING].modifiers,
|
||||
psyc_packet_init(&packet, headers[PACKET_ROUTING].modifiers,
|
||||
headers[PACKET_ROUTING].lines,
|
||||
headers[PACKET_ENTITY].modifiers,
|
||||
headers[PACKET_ENTITY].lines,
|
||||
|
|
Loading…
Reference in a new issue