void print_entries(llist l) { node* window; window = l.head; printf("<dl>\n"); while (window != NULL) { printf(" <dt> <b>%s</b>\n",window->entry.name); printf(" <dd> %s\n",replace_ltgt(window->entry.value)); window = window->next; } printf("</dl>\n"); }
void print_entries(JSContext *cx, llist l) { node* window; window = l.head; gpsee_printf(cx, "<dl>\n"); while (window != NULL) { gpsee_printf(cx, " <dt> <b>%s</b>\n",window->entry.name); gpsee_printf(cx, " <dd> %s\n",replace_ltgt(window->entry.value)); window = window->next; } gpsee_printf(cx, "</dl>\n"); }