void logevent(void *frontend, char *str)
void logevent(void *frontend, const char *str)
void logevent(void *frontend, char *str){    Session *s = frontend;    ListBounds bounds, visible;    Cell cell = { 0, 0 };    if (s->eventlog == NULL)	mac_createeventlog(s);    if (s->eventlog == NULL)	return;#if TARGET_API_MAC_CARBON    GetListDataBounds(s->eventlog, &bounds);    GetListVisibleCells(s->eventlog, &visible);#else    bounds = (*s->eventlog)->dataBounds;    visible = (*s->eventlog)->visible;#endif    cell.v = bounds.bottom;    LAddRow(1, cell.v, s->eventlog);    LSetCell(str, strlen(str), cell, s->eventlog);    /* ">=" and "2" because there can be a blank cell below the last one. */    if (visible.bottom >= bounds.bottom)	LScroll(0, 2, s->eventlog);}