示例#1
0
const char *
po_message_extracted_comments (po_message_t message)
{
  /* FIXME: memory leak.  */
  message_ty *mp = (message_ty *) message;

  if (mp->comment_dot == NULL || mp->comment_dot->nitems == 0)
    return "";
  else
    return string_list_join (mp->comment_dot, '\n', '\n', true);
}
示例#2
0
文件: peer.c 项目: andrey-str/ccnet
void
ccnet_peer_get_myroles_str (CcnetPeer *peer, GString* buf)
{
    string_list_join (peer->myrole_list, buf, ",");
}