mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-18 12:22:10 +03:00
Merge branch 'master' of https://github.com/urbit/urbit
This commit is contained in:
commit
cc48117291
10
f/nash.c
10
f/nash.c
@ -60,6 +60,7 @@ u2_na_put(struct u2_nash* nash, u2_noun key, u2_noun val)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
sot_w = buc_u->con_w;
|
||||
buc_u->con_w++;
|
||||
|
||||
@ -75,6 +76,8 @@ u2_na_put(struct u2_nash* nash, u2_noun key, u2_noun val)
|
||||
buc_u->sto_u = nuu_u;
|
||||
}
|
||||
|
||||
/* u2_na_get(): get from a nounhash table
|
||||
**/
|
||||
u2_weak
|
||||
u2_na_get(struct u2_nash* nash, u2_noun key)
|
||||
{
|
||||
@ -92,11 +95,18 @@ u2_na_get(struct u2_nash* nash, u2_noun key)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* u2_na_take(): destroy a nounhash table
|
||||
**/
|
||||
void
|
||||
u2_na_take(struct u2_nash* nash)
|
||||
{
|
||||
c3_w i;
|
||||
for(i=0; i < nash->cap_w; i++) {
|
||||
#if 0
|
||||
fprintf(stderr, "%s%d%s", nash->sto_u[i].con_w,
|
||||
0==i? "[%%nash-pop " :"",
|
||||
i+1==nash->cap_w? "]\r\n" :" ");
|
||||
#endif
|
||||
free(nash->sto_u[i].sto_u);
|
||||
}
|
||||
free(nash->sto_u);
|
||||
|
4
v/cttp.c
4
v/cttp.c
@ -1463,9 +1463,9 @@ _cttp_ccon_fire(u2_ccon* coc_u, u2_creq* ceq_u)
|
||||
|
||||
snprintf(buf_c, 80, "content-length: %u\r\n", ceq_u->bod_u->len_w);
|
||||
_cttp_ccon_fire_str(coc_u, buf_c);
|
||||
_cttp_ccon_fire_body(coc_u, ceq_u->bod_u);
|
||||
|
||||
_cttp_ccon_fire_str(coc_u, "\r\n");
|
||||
|
||||
_cttp_ccon_fire_body(coc_u, ceq_u->bod_u);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user