Lines Matching refs:sec_node

535    BmSec *sec_node;  in Bms_sec_add()  local
537 sec_node = dNew(BmSec, 1); in Bms_sec_add()
538 sec_node->section = sec_key++; in Bms_sec_add()
539 sec_node->title = Escape_html_str(title); in Bms_sec_add()
540 dList_append(B_secs, sec_node); in Bms_sec_add()
566 BmSec *sec_node; in Bms_sec_del() local
569 sec_node = dList_find_custom(B_secs, INT2VOIDP(section), in Bms_sec_del()
571 if (sec_node) { in Bms_sec_del()
572 dList_remove(B_secs, sec_node); in Bms_sec_del()
573 dFree(sec_node->title); in Bms_sec_del()
574 dFree(sec_node); in Bms_sec_del()
618 BmSec *sec_node; in Bms_update_sec_title() local
620 sec_node = dList_find_custom(B_secs, INT2VOIDP(key), Bms_sec_by_number_cmp); in Bms_update_sec_title()
621 if (sec_node) { in Bms_update_sec_title()
622 dFree(sec_node->title); in Bms_update_sec_title()
623 sec_node->title = Escape_html_str(n_title); in Bms_update_sec_title()
633 BmSec *sec_node; in Bms_free() local
640 while ((sec_node = dList_nth_data(B_secs, 0))) { in Bms_free()
641 Bms_sec_del(sec_node->section); in Bms_free()
651 BmSec *sec_node; in Bms_normalize() local
659 for (i = 0; (sec_node = dList_nth_data(B_secs, i)); ++i) { in Bms_normalize()
660 sec_node->o_sec = sec_node->section; in Bms_normalize()
661 sec_node->section = i; in Bms_normalize()
665 for (i = 0; (sec_node = dList_nth_data(B_secs, i)); ++i) { in Bms_normalize()
666 if (sec_node->section != sec_node->o_sec) { in Bms_normalize()
669 if (bm_node->section == sec_node->o_sec) in Bms_normalize()
670 bm_node->section = sec_node->section; in Bms_normalize()
808 BmSec *sec_node; in Bms_save() local
831 for (i = 0; (sec_node = dList_nth_data(B_secs, i)); ++i) { in Bms_save()
832 u_title = Unescape_html_str(sec_node->title); in Bms_save()
833 dStr_sprintf(dstr, ":s%d: %s\n", sec_node->section, u_title); in Bms_save()
839 for (i = 0; (sec_node = dList_nth_data(B_secs, i)); ++i) { in Bms_save()
841 if (bm_node->section == sec_node->section) { in Bms_save()
933 BmSec *sec_node; in Bmsrv_send_modify_page() local
948 for (i = 0; (sec_node = dList_nth_data(B_secs, i)); ++i) { in Bmsrv_send_modify_page()
950 sec_node->section, sec_node->section, sec_node->title); in Bmsrv_send_modify_page()
963 for (i = 0; (sec_node = dList_nth_data(B_secs, i)); ++i) { in Bmsrv_send_modify_page()
965 l_title = make_one_line_str(sec_node->title); in Bmsrv_send_modify_page()
967 sec_node->section, l_title); in Bmsrv_send_modify_page()
974 if (bm_node->section == sec_node->section) { in Bmsrv_send_modify_page()
1032 BmSec *sec_node; in Bmsrv_send_modify_update() local
1063 if ((sec_node = Bms_get_sec(key))) { in Bmsrv_send_modify_update()
1065 sec_node->section, sec_node->title); in Bmsrv_send_modify_update()
1494 BmSec *sec_node; in send_bm_page() local
1508 for (i = 0; (sec_node = dList_nth_data(B_secs, i)); ++i) { in send_bm_page()
1510 sec_node->section, sec_node->title); in send_bm_page()
1523 for (i = 0; (sec_node = dList_nth_data(B_secs, i)); ++i) { in send_bm_page()
1525 l_title = make_one_line_str(sec_node->title); in send_bm_page()
1527 sec_node->section, l_title); in send_bm_page()
1534 if (bm_node->section == sec_node->section) { in send_bm_page()